This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm368-ipnc kernel panic when using h264.

Expert 1060 points

 

Hi, experts.

 

I have a problem to encode 2048 * 1536 resolutions with h264 codec.

During the test kernel panic or block come in 15 minutes.

When I set 640 * 480 encode with h264 it is working fine. But over the 640 * 480, the kernel panic or block comes.

And if I test 1280 * 1024 encoding with MPEG4 and 2048*1536 with Mjpeg works fine.

Kernel Block comes at VIDENC1_process() and Kernel panic log as below. 

 

Unable to handle kernel paging request at virtual address ba043e60

 pgd = c0004000

Internal error: Oops: 5 [#1]

Modules linked in: sbull iscsi_tcp libiscsi scsi_transport_iscsi ppp_deflate ppp_async ppp_synctty ppp_generic slhc tun loop nfsd exportfs nls_utf8 nls_ascii sha1 md5 des deflate crc32c cfq_iosched deadline_iosched libcrc32c crc_ccitt dm365mmap irqk edmak cmemk drv csl

CPU: 0

PC is at read_cycles+0x24/0x38

LR is at getnstimeofday+0x50/0x1ac

pc : [<c0046f14>]    lr : [<c0059608>]    Not tainted

sp : c0359da8  ip : c0359db8  fp : c0359db4 r10: c03d8cf4  r9 : c03d7cb0  r8 : c0359e18 r7 : 00000093  r6 : 00056508  r5 : c0359e18  r4 : 00056508 r3 : ba043e60  r2 : 00000001  r1 : 245bdc80  r0 : 386eaf51

Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  Segment kernel

 


Unable to handle kernel paging request at virtual address ba043e60
pgd = c0004000
[ba043e60] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in: sbull iscsi_tcp libiscsi scsi_transport_iscsi ppp_deflate ppp_async ppp_synctty ppp_generic slhc tun loop nfsd exportfs nls_utf8 nls_ascii sha1 md5 des deflate crc32c cfq_iosched deadline_iosched libcrc32c crc_ccitt dm365mmap irqk edmak cmemk drv csl
CPU: 0
PC is at read_cycles+0x24/0x38
LR is at getnstimeofday+0x50/0x1ac
pc : [<c0046f14>]    lr : [<c0059608>]    Not tainted
sp : c0359da8  ip : c0359db8  fp : c0359db4
r10: c03d8cf4  r9 : c03d7cb0  r8 : c0359e18
r7 : 00000093  r6 : 00056508  r5 : c0359e18  r4 : 00056508
r3 : ba043e60  r2 : 00000001  r1 : 245bdc80  r0 : 386eaf51
Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  Segment kernel
Control: 5317F
Table: 82378000  DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc0358258)
Stack: (0xc0359da8 to 0xc035a000)
9da0:                   c0359df4 c0359db8 c0059608 c0046f00 c0359e00 c03d7cc0 
9dc0: 00000000 00000000 c035db20 00056508 c0359e18 c03d7cc0 c03d7ca0 258e555e 
9de0: 00000374 00000000 c0359e14 c0359df8 c006894c c00595c8 c0359e38 00000374 
9e00: 24f5f9a0 00000374 c0359e34 c0359e18 c00689a0 c0068938 386eaf51 245bdc80 
9e20: 00989680 258e555e c0359e64 c0359e38 c006ab7c c0068994 c0359e64 c0359e48 
9e40: c03631c0 c0363170 24f5f9a0 00000374 258e555e c0358000 c0359eac c0359e68 
9e60: c006947c c006ab68 24f5f9a0 00000374 0000103d 00000000 24f5f9a0 00000374 
9e80: 00000000 00010002 c0358000 c036173c c036173c 00000000 00000020 c0359f40 
9ea0: c0359ebc c0359eb0 c0046e58 c006929c c0359ef4 c0359ec0 c00732ec c0046e4c 
9ec0: c0054468 00000000 00000020 c035a800 c0358000 00000020 c036173c c0359f40 
9ee0: c0358000 c03da998 c0359f1c c0359ef8 c0074f3c c0073224 00000020 c035a800 
9f00: c0359f40 00000002 00000001 80030f00 c0359f3c c0359f20 c0038bc0 c0074e34 
9f20: c0f51200 ffffffff fbc48000 c0039638 c0359f94 c0359f40 c0037a04 c0038b90 
9f40: 00000000 0005317f 0005217f 60000013 c0358000 c0039638 c0039638 c03d184c 
9f60: 80030f34 41069265 80030f00 c0359f94 c0359f98 c0359f88 c0039688 c0039694 
9f80: 60000013 ffffffff c0359fb4 c0359f98 c00393d0 c0039648 c0358000 c03d13fc 
9fa0: c035e804 c03fb760 c0359fcc c0359fb8 c0037300 c00393a4 c035e804 c03dabb4 
9fc0: c0359ff4 c0359fd0 c00088dc c00372b8 c00083b4 00000000 00000000 c03d1928 
9fe0: 00053175 c03d18c4 00000000 c0359ff8 80008030 c00086d0 00000000 00000000 
Backtrace: 
[<c0046ef0>] (read_cycles+0x0/0x38) from [<c0059608>] (getnstimeofday+0x50/0x1ac)
[<c00595b8>] (getnstimeofday+0x0/0x1ac) from [<c006894c>] (ktime_get_ts+0x24/0x5c)
[<c0068928>] (ktime_get_ts+0x0/0x5c) from [<c00689a0>] (ktime_get+0x1c/0x34)
 r7 = 00000374  r6 = 24F5F9A0  r5 = 00000374  r4 = C0359E38
[<c0068984>] (ktime_get+0x0/0x34) from [<c006ab7c>] (clockevents_set_next_event+0x24/0x12c)
 r4 = 258E555E 
[<c006ab58>] (clockevents_set_next_event+0x0/0x12c) from [<c006947c>] (hrtimer_interrupt+0x1f0/0x230)
[<c006928c>] (hrtimer_interrupt+0x0/0x230) from [<c0046e58>] (timer_interrupt+0x1c/0x28)
[<c0046e3c>] (timer_interrupt+0x0/0x28) from [<c00732ec>] (handle_IRQ_event+0xd8/0x1c4)
[<c0073214>] (handle_IRQ_event+0x0/0x1c4) from [<c0074f3c>] (handle_edge_irq+0x118/0x1cc)
[<c0074e24>] (handle_edge_irq+0x0/0x1cc) from [<c0038bc0>] (asm_do_IRQ+0x40/0x50)
[<c0038b80>] (asm_do_IRQ+0x0/0x50) from [<c0037a04>] (__irq_svc+0x44/0x70)
 r6 = C0039638  r5 = FBC48000  r4 = FFFFFFFF 
[<c0039638>] (default_idle+0x0/0x64) from [<c00393d0>] (cpu_idle+0x3c/0x94)
[<c0039394>] (cpu_idle+0x0/0x94) from [<c0037300>] (rest_init+0x58/0x64)
 r7 = C03FB760  r6 = C035E804  r5 = C03D13FC  r4 = C0358000
[<c00372a8>] (rest_init+0x0/0x64) from [<c00088dc>] (start_kernel+0x21c/0x27c)
 r4 = C03DABB4 
[<c00086c0>] (start_kernel+0x0/0x27c) from [<80008030>] (0x80008030)
Code: e59f3018 e7933102 e5933014 e28334fa (e5930000) 
 <1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 817 [#2]
Modules linked in: sbull iscsi_tcp libiscsi scsi_transport_iscsi ppp_deflate ppp_async ppp_synctty ppp_generic slhc tun loop nfsd exportfs nls_utf8 nls_ascii sha1 md5 des deflate crc32c cfq_iosched deadline_iosched libcrc32c crc_ccitt dm365mmap irqk edmak cmemk drv csl
CPU: 0
PC is at do_exit+0x58/0xa24
LR is at compat_up_read+0x10/0x14
pc : [<c0051798>]    lr : [<c00694f4>]    Not tainted
sp : c0359bf8  ip : 00000000  fp : c0359c14
r10: c030b730  r9 : 00000000  r8 : 0000000b
r7 : 00000000  r6 : 00000001  r5 : c035db20  r4 : c0358000
r3 : 00000000  r2 : 00010002  r1 : c0361d00  r0 : 00000000
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 5317F
Table: 82378000  DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc0358258)
Stack: (0xc0359bf8 to 0xc035a000)
9be0:                                                       c030b730 c0359c2c 
9c00: 60000093 c0359c18 c0359c2c c0359c18 c003c5bc c0051750 00000000 00000008 
9c20: c0359c4c c0359c30 c003eb20 c003c24c ffffffff c035eb08 00000005 c035db20 
9c40: c0359c94 c0359c50 c003edc4 c003eac4 00000000 c21a6480 a0000013 c04db1c0 
9c60: 00000005 00000000 c0359c94 ffffffff c035eb08 00000005 c0359d60 ba043e60 
9c80: 40000093 c03d8cf4 c0359cac c0359c98 c003ee94 c003eb40 c04db1c0 ffffffff 
9ca0: c0359d5c c0359cb0 c003ef84 c003ee88 c02b2078 c21a6480 c04db1c0 c04db1c0 
9cc0: c21a6480 00000014 c04db1f0 c0581854 c0359d0c c0359ce0 c02ae830 c02a91ac 
9ce0: c0359d2c c0358000 c21a6480 c04db1c0 c21a6480 7a01a8c0 c035ca14 c0581854 
9d00: c0359d4c c0359d10 c02b509c c02ae70c c03d2780 c0635c20 c0359d3c c0359d28 
9d20: c0048700 c0048614 c0635c20 c03d2780 c0359d5c c0359d40 c00487a0 ffffffff 
9d40: c0359d94 00056508 00000093 c0359e18 c0359db4 c0359d60 c00379ac c003ef58 
9d60: 386eaf51 245bdc80 00000001 ba043e60 00056508 c0359e18 00056508 00000093 
9d80: c0359e18 c03d7cb0 c03d8cf4 c0359db4 c0359db8 c0359da8 c0059608 c0046f14 
9da0: 00000093 ffffffff c0359df4 c0359db8 c0059608 c0046f00 c0359e00 c03d7cc0 
9dc0: 00000000 00000000 c035db20 00056508 c0359e18 c03d7cc0 c03d7ca0 258e555e 
9de0: 00000374 00000000 c0359e14 c0359df8 c006894c c00595c8 c0359e38 00000374 
9e00: 24f5f9a0 00000374 c0359e34 c0359e18 c00689a0 c0068938 386eaf51 245bdc80 
9e20: 00989680 258e555e c0359e64 c0359e38 c006ab7c c0068994 c0359e64 c0359e48 
9e40: c03631c0 c0363170 24f5f9a0 00000374 258e555e c0358000 c0359eac c0359e68 
9e60: c006947c c006ab68 24f5f9a0 00000374 0000103d 00000000 24f5f9a0 00000374 
9e80: 00000000 00010002 c0358000 c036173c c036173c 00000000 00000020 c0359f40 
9ea0: c0359ebc c0359eb0 c0046e58 c006929c c0359ef4 c0359ec0 c00732ec c0046e4c 
9ec0: c0054468 00000000 00000020 c035a800 c0358000 00000020 c036173c c0359f40 
9ee0: c0358000 c03da998 c0359f1c c0359ef8 c0074f3c c0073224 00000020 c035a800 
9f00: c0359f40 00000002 00000001 80030f00 c0359f3c c0359f20 c0038bc0 c0074e34 
9f20: c0f51200 ffffffff fbc48000 c0039638 c0359f94 c0359f40 c0037a04 c0038b90 
9f40: 00000000 0005317f 0005217f 60000013 c0358000 c0039638 c0039638 c03d184c 
9f60: 80030f34 41069265 80030f00 c0359f94 c0359f98 c0359f88 c0039688 c0039694 
9f80: 60000013 ffffffff c0359fb4 c0359f98 c00393d0 c0039648 c0358000 c03d13fc 
9fa0: c035e804 c03fb760 c0359fcc c0359fb8 c0037300 c00393a4 c035e804 c03dabb4 
9fc0: c0359ff4 c0359fd0 c00088dc c00372b8 c00083b4 00000000 00000000 c03d1928 
9fe0: 00053175 c03d18c4 00000000 c0359ff8 80008030 c00086d0 00000000 00000000 
Backtrace: 
[<c0051740>] (do_exit+0x0/0xa24) from [<c003c5bc>] (die+0x380/0x3e8)
[<c003c23c>] (die+0x0/0x3e8) from [<c003eb20>] (__do_kernel_fault+0x6c/0x7c)
[<c003eab4>] (__do_kernel_fault+0x0/0x7c) from [<c003edc4>] (do_page_fault+0x294/0x2c4)
 r7 = C035DB20  r6 = 00000005  r5 = C035EB08  r4 = FFFFFFFF
[<c003eb30>] (do_page_fault+0x0/0x2c4) from [<c003ee94>] (do_translation_fault+0x1c/0xb4)
[<c003ee78>] (do_translation_fault+0x0/0xb4) from [<c003ef84>] (do_DataAbort+0x3c/0xa0)
 r4 = FFFFFFFF 
[<c003ef48>] (do_DataAbort+0x0/0xa0) from [<c00379ac>] (__dabt_svc+0x4c/0x60)
 r8 = C0359E18  r7 = 00000093  r6 = 00056508  r5 = C0359D94
 r4 = FFFFFFFF 
[<c0046ef0>] (read_cycles+0x0/0x38) from [<c0059608>] (getnstimeofday+0x50/0x1ac)
[<c00595b8>] (getnstimeofday+0x0/0x1ac) from [<c006894c>] (ktime_get_ts+0x24/0x5c)
[<c0068928>] (ktime_get_ts+0x0/0x5c) from [<c00689a0>] (ktime_get+0x1c/0x34)
 r7 = 00000374  r6 = 24F5F9A0  r5 = 00000374  r4 = C0359E38
[<c0068984>] (ktime_get+0x0/0x34) from [<c006ab7c>] (clockevents_set_next_event+0x24/0x12c)
 r4 = 258E555E 
[<c006ab58>] (clockevents_set_next_event+0x0/0x12c) from [<c006947c>] (hrtimer_interrupt+0x1f0/0x230)
[<c006928c>] (hrtimer_interrupt+0x0/0x230) from [<c0046e58>] (timer_interrupt+0x1c/0x28)
[<c0046e3c>] (timer_interrupt+0x0/0x28) from [<c00732ec>] (handle_IRQ_event+0xd8/0x1c4)
[<c0073214>] (handle_IRQ_event+0x0/0x1c4) from [<c0074f3c>] (handle_edge_irq+0x118/0x1cc)
[<c0074e24>] (handle_edge_irq+0x0/0x1cc) from [<c0038bc0>] (asm_do_IRQ+0x40/0x50)
[<c0038b80>] (asm_do_IRQ+0x0/0x50) from [<c0037a04>] (__irq_svc+0x44/0x70)
 r6 = C0039638  r5 = FBC48000  r4 = FFFFFFFF 
[<c0039638>] (default_idle+0x0/0x64) from [<c00393d0>] (cpu_idle+0x3c/0x94)
[<c0039394>] (cpu_idle+0x0/0x94) from [<c0037300>] (rest_init+0x58/0x64)
 r7 = C03FB760  r6 = C035E804  r5 = C03D13FC  r4 = C0358000
[<c00372a8>] (rest_init+0x0/0x64) from [<c00088dc>] (start_kernel+0x21c/0x27c)
 r4 = C03DABB4 
[<c00086c0>] (start_kernel+0x0/0x27c) from [<80008030>] (0x80008030)
Code: e3c334ff e3c330ff e3530000 13a03000 (15833000) 


I attached the full error log.

please let me know how to solve this error.

 

Best regards.

Jay.