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.

[J6] VIP kernel panic issue

Other Parts Discussed in Thread: TVP5158

Hi ,

We have our J6 custom board + sdk 7.04.00.03 ,  we use tvp5158 to capture a video BT656 source from FPGA.

But sometimes kernel panic will pop up when I use gst-launch  or ffmpeg capture command.

My capture command:

gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1 ! jpegenc ! filesink loc x.jpeg

ffmpeg -f video4linux2 -s 720*480 -i /dev/video1 -vframes 1 y.jpeg

kernel panic

[ 1668.490202] tvp5158 1-0058: Currently only D1 resolution is supported
[ 1668.498968] tvp5158 1-0058: Currently only D1 resolution is supported
[ 1668.543227] vip 48990000.vip: dma_alloc_coherent of size 692224 failed
[ 1668.551461] <1>V4L2_MBUS_BT656
[ 1668.554617] <1>EMBEDDED_SYNC_SINGLE_YUV422
[ 1668.558838] <1>EMBEDDED_SYNC_SINGLE_YUV422
Step 1 ok
Step 2 ok
[ 1668.683163] swap_free: Bad swap file entry 281c0005
[ 1668.688070] BUG: Bad page map in process videoin_test_gr pte:1c0005a0 pmd:a8f3f831
[ 1668.695789] addr:b6f78000 vm_flags:00000075 anon_vma: (null) mapping:e904d8fc index:11
[ 1668.703876] vma->vm_ops->fault: filemap_fault+0x0/0x464
[ 1668.709157] vma->vm_file->f_op->mmap: ext4_file_mmap+0x0/0x58
[ 1668.714936] CPU: 0 PID: 14485 Comm: videoin_test_gr Tainted: G D O 3.14.63 #9
[ 1668.722797] Backtrace:
[ 1668.725272] [<c0012138>] (dump_backtrace) from [<c00122d4>] (show_stack+0x18/0x1c)
[ 1668.732873] r6:200f0013 r5:ffffffff r4:00000000 r3:00000000
[ 1668.738596] [<c00122bc>] (show_stack) from [<c06a1724>] (dump_stack+0x80/0xa0)
[ 1668.745855] [<c06a16a4>] (dump_stack) from [<c00dd1f0>] (print_bad_pte+0x104/0x1a4)
[ 1668.753542] r7:b6f78000 r6:00000011 r5:e8e04370 r4:e904d8fc
[ 1668.759265] [<c00dd0ec>] (print_bad_pte) from [<c00de774>] (unmap_single_vma+0x2e4/0x62c)
[ 1668.767475] r10:e9bc9ec0 r8:b6f80000 r7:c09b6894 r6:1c0005a0 r5:e8f3f5e0 r4:e8f3f5e4
[ 1668.775385] [<c00de490>] (unmap_single_vma) from [<c00df41c>] (unmap_vmas+0x5c/0x70)
[ 1668.783159] r10:e8a04078 r9:e9bc8000 r8:00000000 r7:00000000 r6:e9bc9ec0 r5:ffffffff
[ 1668.791062] r4:e8e04370
[ 1668.793617] [<c00df3c0>] (unmap_vmas) from [<c00e58f0>] (exit_mmap+0xe0/0x204)
[ 1668.800868] r8:e9bc8000 r7:e8a04040 r6:e8a04040 r5:e9bc9ee8 r4:e9fc5528
[ 1668.807643] [<c00e5810>] (exit_mmap) from [<c0044838>] (mmput+0x48/0xec)
[ 1668.814370] r7:e8a04040 r6:e9974dc0 r5:00000000 r4:e8a04040
[ 1668.820091] [<c00447f0>] (mmput) from [<c0048b40>] (do_exit+0x258/0x8cc)
[ 1668.826818] r5:00000000 r4:e9975178
[ 1668.830423] [<c00488e8>] (do_exit) from [<c00492c8>] (do_group_exit+0x44/0xb8)
[ 1668.837673] r7:000000f8
[ 1668.840226] [<c0049284>] (do_group_exit) from [<c0049354>] (__wake_up_parent+0x0/0x28)
[ 1668.848173] r7:000000f8 r6:b6f61760 r5:b6f61760 r4:000700de
[ 1668.853892] [<c004933c>] (SyS_exit_group) from [<c000eb80>] (ret_fast_syscall+0x0/0x38)
[ 1668.861990] ------------[ cut here ]------------
[ 1668.866632] Kernel BUG at c00deaac [verbose debug info unavailable]
[ 1668.872926] Internal error: Oops - BUG: 0 [#2] PREEMPT SMP ARM
[ 1668.878781] Modules linked in: xhci_plat_hcd omapdrm_pvr(O) [last unloaded: dwc3]
[ 1668.886330] CPU: 0 PID: 14485 Comm: videoin_test_gr Tainted: G B D O 3.14.63 #9
[ 1668.894192] task: e9974dc0 ti: e9bc8000 task.ti: e9bc8000
[ 1668.899615] PC is at unmap_single_vma+0x61c/0x62c
[ 1668.904339] LR is at unmap_single_vma+0x194/0x62c
[ 1668.909063] pc : [<c00deaac>] lr : [<c00de624>] psr: 600f0013
[ 1668.909063] sp : e9bc9e20 ip : c0a7a380 fp : e9bc9e84
[ 1668.920588] r10: e9bc9ec0 r9 : b6f79000 r8 : b6f80000
[ 1668.925834] r7 : c09b6894 r6 : 02d000f0 r5 : e8f3f5e4 r4 : e8f3f5e8
[ 1668.932388] r3 : e9d4a000 r2 : fffad000 r1 : 00000000 r0 : 3c02d000
[ 1668.938942] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 1668.946108] Control: 10c5387d Table: a797806a DAC: 00000015
[ 1668.951877] Process videoin_test_gr (pid: 14485, stack limit = 0xe9bc8240)
[ 1668.958779] Stack: (0xe9bc9e20 to 0xe9bca000)
[ 1668.963155] 9e20: e9bc9e4c b6f7ffff b6f80000 e797adbc e8a04040 fe98f59f e8e04370 e797adbc
[ 1668.971369] 9e40: 00000000 e8a04074 c007befc fffffff3 00000000 ffffffff c06a8eb8 e8e04370
[ 1668.979582] 9e60: ffffffff e9bc9ec0 00000000 00000000 e9bc8000 e8a04078 e9bc9eb4 e9bc9e88
[ 1668.987794] 9e80: c00df41c c00de49c 00000000 e8a04040 e8a04040 e9fc5528 e9bc9ee8 e8a04040
[ 1668.996007] 9ea0: e8a04040 e9bc8000 e9bc9f24 e9bc9eb8 c00e58f0 c00df3cc e9bc9ed4 e9bc9ec8
[ 1669.004220] 9ec0: e8a04040 00000001 00000000 00000000 ffffffff c00898d0 00000000 000000db
[ 1669.012433] 9ee0: 00000400 e7880000 00000000 00000000 e9bc9ee0 e9bc9ee0 c06a6510 e8a04040
[ 1669.020646] 9f00: 00000000 e9974dc0 e8a04040 00000000 e9974dc0 e8a04040 e9bc9f3c e9bc9f28
[ 1669.028858] 9f20: c0044838 c00e581c e9975178 00000000 e9bc9f74 e9bc9f40 c0048b40 c00447fc
[ 1669.037071] 9f40: c00fa188 00000001 c0113eac c0113e2c 000002e0 00000000 e9d23300 e9d23300
[ 1669.045284] 9f60: 000002e0 000000f8 e9bc9f94 e9bc9f78 c00492c8 c00488f4 000700de b6f61760
[ 1669.053498] 9f80: b6f61760 000000f8 e9bc9fa4 e9bc9f98 c0049354 c0049290 00000000 e9bc9fa8
[ 1669.061710] 9fa0: c000eb80 c0049348 000700de b6f61760 00000000 000700ca b6fd64c0 00000000
[ 1669.069922] 9fc0: 000700de b6f61760 b6f61760 000000f8 000bd828 00000000 00093d54 00000000
[ 1669.078135] 9fe0: 000000f8 beb4db34 b6ef2fc3 b6e9c276 600f0030 00000000 fa79efdb a568efd9
[ 1669.086344] Backtrace:
[ 1669.088811] [<c00de490>] (unmap_single_vma) from [<c00df41c>] (unmap_vmas+0x5c/0x70)
[ 1669.096584] r10:e8a04078 r9:e9bc8000 r8:00000000 r7:00000000 r6:e9bc9ec0 r5:ffffffff
[ 1669.104485] r4:e8e04370
[ 1669.107039] [<c00df3c0>] (unmap_vmas) from [<c00e58f0>] (exit_mmap+0xe0/0x204)
[ 1669.114290] r8:e9bc8000 r7:e8a04040 r6:e8a04040 r5:e9bc9ee8 r4:e9fc5528
[ 1669.121065] [<c00e5810>] (exit_mmap) from [<c0044838>] (mmput+0x48/0xec)
[ 1669.127791] r7:e8a04040 r6:e9974dc0 r5:00000000 r4:e8a04040
[ 1669.133509] [<c00447f0>] (mmput) from [<c0048b40>] (do_exit+0x258/0x8cc)
[ 1669.140236] r5:00000000 r4:e9975178
[ 1669.143842] [<c00488e8>] (do_exit) from [<c00492c8>] (do_group_exit+0x44/0xb8)
[ 1669.151091] r7:000000f8
[ 1669.153643] [<c0049284>] (do_group_exit) from [<c0049354>] (__wake_up_parent+0x0/0x28)
[ 1669.161590] r7:000000f8 r6:b6f61760 r5:b6f61760 r4:000700de
[ 1669.167309] [<c004933c>] (SyS_exit_group) from [<c000eb80>] (ret_fast_syscall+0x0/0x38)
[ 1669.175347] Code: eaffff21 e1a06008 eb00368e eaffff07 (e7f001f2)
[ 1669.181468] ---[ end trace ca0a12d4c468139e ]---
[ 1669.186103] Fixing recursive fault but reboot is needed!

Attachment 1.txt is the full kernel panic log.


[WMDP_data.c, _WMDP_transceiver_CB, 953] *********[ 1668.478312] tvp5158 1-0058: Currently only D1 resolution is supported
 [AB] VIDEO IN *********
[ 1668.490202] tvp5158 1-0058: Currently only D1 resolution is supported
[ 1668.498968] tvp5158 1-0058: Currently only D1 resolution is supported
[ 1668.543227] vip 48990000.vip: dma_alloc_coherent of size 692224 failed
[ 1668.551461] <1>V4L2_MBUS_BT656
[ 1668.554617] <1>EMBEDDED_SYNC_SINGLE_YUV422
[ 1668.558838] <1>EMBEDDED_SYNC_SINGLE_YUV422
Step 1 ok
Step 2 ok
[ 1668.683163] swap_free: Bad swap file entry 281c0005
[ 1668.688070] BUG: Bad page map in process videoin_test_gr  pte:1c0005a0 pmd:a8f3f831
[ 1668.695789] addr:b6f78000 vm_flags:00000075 anon_vma:  (null) mapping:e904d8fc index:11
[ 1668.703876] vma->vm_ops->fault: filemap_fault+0x0/0x464
[ 1668.709157] vma->vm_file->f_op->mmap: ext4_file_mmap+0x0/0x58
[ 1668.714936] CPU: 0 PID: 14485 Comm: videoin_test_gr Tainted: G      D    O 3.14.63 #9
[ 1668.722797] Backtrace:
[ 1668.725272] [<c0012138>] (dump_backtrace) from [<c00122d4>] (show_stack+0x18/0x1c)
[ 1668.732873]  r6:200f0013 r5:ffffffff r4:00000000 r3:00000000
[ 1668.738596] [<c00122bc>] (show_stack) from [<c06a1724>] (dump_stack+0x80/0xa0)
[ 1668.745855] [<c06a16a4>] (dump_stack) from [<c00dd1f0>] (print_bad_pte+0x104/0x1a4)
[ 1668.753542]  r7:b6f78000 r6:00000011 r5:e8e04370 r4:e904d8fc
[ 1668.759265] [<c00dd0ec>] (print_bad_pte) from [<c00de774>] (unmap_single_vma+0x2e4/0x62c)
[ 1668.767475]  r10:e9bc9ec0 r8:b6f80000 r7:c09b6894 r6:1c0005a0 r5:e8f3f5e0 r4:e8f3f5e4
[ 1668.775385] [<c00de490>] (unmap_single_vma) from [<c00df41c>] (unmap_vmas+0x5c/0x70)
[ 1668.783159]  r10:e8a04078 r9:e9bc8000 r8:00000000 r7:00000000 r6:e9bc9ec0 r5:ffffffff
[ 1668.791062]  r4:e8e04370
[ 1668.793617] [<c00df3c0>] (unmap_vmas) from [<c00e58f0>] (exit_mmap+0xe0/0x204)
[ 1668.800868]  r8:e9bc8000 r7:e8a04040 r6:e8a04040 r5:e9bc9ee8 r4:e9fc5528
[ 1668.807643] [<c00e5810>] (exit_mmap) from [<c0044838>] (mmput+0x48/0xec)
[ 1668.814370]  r7:e8a04040 r6:e9974dc0 r5:00000000 r4:e8a04040
[ 1668.820091] [<c00447f0>] (mmput) from [<c0048b40>] (do_exit+0x258/0x8cc)
[ 1668.826818]  r5:00000000 r4:e9975178
[ 1668.830423] [<c00488e8>] (do_exit) from [<c00492c8>] (do_group_exit+0x44/0xb8)
[ 1668.837673]  r7:000000f8
[ 1668.840226] [<c0049284>] (do_group_exit) from [<c0049354>] (__wake_up_parent+0x0/0x28)
[ 1668.848173]  r7:000000f8 r6:b6f61760 r5:b6f61760 r4:000700de
[ 1668.853892] [<c004933c>] (SyS_exit_group) from [<c000eb80>] (ret_fast_syscall+0x0/0x38)
[ 1668.861990] ------------[ cut here ]------------
[ 1668.866632] Kernel BUG at c00deaac [verbose debug info unavailable]
[ 1668.872926] Internal error: Oops - BUG: 0 [#2] PREEMPT SMP ARM
[ 1668.878781] Modules linked in: xhci_plat_hcd omapdrm_pvr(O) [last unloaded: dwc3]
[ 1668.886330] CPU: 0 PID: 14485 Comm: videoin_test_gr Tainted: G    B D    O 3.14.63 #9
[ 1668.894192] task: e9974dc0 ti: e9bc8000 task.ti: e9bc8000
[ 1668.899615] PC is at unmap_single_vma+0x61c/0x62c
[ 1668.904339] LR is at unmap_single_vma+0x194/0x62c
[ 1668.909063] pc : [<c00deaac>]    lr : [<c00de624>]    psr: 600f0013
[ 1668.909063] sp : e9bc9e20  ip : c0a7a380  fp : e9bc9e84
[ 1668.920588] r10: e9bc9ec0  r9 : b6f79000  r8 : b6f80000
[ 1668.925834] r7 : c09b6894  r6 : 02d000f0  r5 : e8f3f5e4  r4 : e8f3f5e8
[ 1668.932388] r3 : e9d4a000  r2 : fffad000  r1 : 00000000  r0 : 3c02d000
[ 1668.938942] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[ 1668.946108] Control: 10c5387d  Table: a797806a  DAC: 00000015
[ 1668.951877] Process videoin_test_gr (pid: 14485, stack limit = 0xe9bc8240)
[ 1668.958779] Stack: (0xe9bc9e20 to 0xe9bca000)
[ 1668.963155] 9e20: e9bc9e4c b6f7ffff b6f80000 e797adbc e8a04040 fe98f59f e8e04370 e797adbc
[ 1668.971369] 9e40: 00000000 e8a04074 c007befc fffffff3 00000000 ffffffff c06a8eb8 e8e04370
[ 1668.979582] 9e60: ffffffff e9bc9ec0 00000000 00000000 e9bc8000 e8a04078 e9bc9eb4 e9bc9e88
[ 1668.987794] 9e80: c00df41c c00de49c 00000000 e8a04040 e8a04040 e9fc5528 e9bc9ee8 e8a04040
[ 1668.996007] 9ea0: e8a04040 e9bc8000 e9bc9f24 e9bc9eb8 c00e58f0 c00df3cc e9bc9ed4 e9bc9ec8
[ 1669.004220] 9ec0: e8a04040 00000001 00000000 00000000 ffffffff c00898d0 00000000 000000db
[ 1669.012433] 9ee0: 00000400 e7880000 00000000 00000000 e9bc9ee0 e9bc9ee0 c06a6510 e8a04040
[ 1669.020646] 9f00: 00000000 e9974dc0 e8a04040 00000000 e9974dc0 e8a04040 e9bc9f3c e9bc9f28
[ 1669.028858] 9f20: c0044838 c00e581c e9975178 00000000 e9bc9f74 e9bc9f40 c0048b40 c00447fc
[ 1669.037071] 9f40: c00fa188 00000001 c0113eac c0113e2c 000002e0 00000000 e9d23300 e9d23300
[ 1669.045284] 9f60: 000002e0 000000f8 e9bc9f94 e9bc9f78 c00492c8 c00488f4 000700de b6f61760
[ 1669.053498] 9f80: b6f61760 000000f8 e9bc9fa4 e9bc9f98 c0049354 c0049290 00000000 e9bc9fa8
[ 1669.061710] 9fa0: c000eb80 c0049348 000700de b6f61760 00000000 000700ca b6fd64c0 00000000
[ 1669.069922] 9fc0: 000700de b6f61760 b6f61760 000000f8 000bd828 00000000 00093d54 00000000
[ 1669.078135] 9fe0: 000000f8 beb4db34 b6ef2fc3 b6e9c276 600f0030 00000000 fa79efdb a568efd9
[ 1669.086344] Backtrace:
[ 1669.088811] [<c00de490>] (unmap_single_vma) from [<c00df41c>] (unmap_vmas+0x5c/0x70)
[ 1669.096584]  r10:e8a04078 r9:e9bc8000 r8:00000000 r7:00000000 r6:e9bc9ec0 r5:ffffffff
[ 1669.104485]  r4:e8e04370
[ 1669.107039] [<c00df3c0>] (unmap_vmas) from [<c00e58f0>] (exit_mmap+0xe0/0x204)
[ 1669.114290]  r8:e9bc8000 r7:e8a04040 r6:e8a04040 r5:e9bc9ee8 r4:e9fc5528
[ 1669.121065] [<c00e5810>] (exit_mmap) from [<c0044838>] (mmput+0x48/0xec)
[ 1669.127791]  r7:e8a04040 r6:e9974dc0 r5:00000000 r4:e8a04040
[ 1669.133509] [<c00447f0>] (mmput) from [<c0048b40>] (do_exit+0x258/0x8cc)
[ 1669.140236]  r5:00000000 r4:e9975178
[ 1669.143842] [<c00488e8>] (do_exit) from [<c00492c8>] (do_group_exit+0x44/0xb8)
[ 1669.151091]  r7:000000f8
[ 1669.153643] [<c0049284>] (do_group_exit) from [<c0049354>] (__wake_up_parent+0x0/0x28)
[ 1669.161590]  r7:000000f8 r6:b6f61760 r5:b6f61760 r4:000700de
[ 1669.167309] [<c004933c>] (SyS_exit_group) from [<c000eb80>] (ret_fast_syscall+0x0/0x38)
[ 1669.175347] Code: eaffff21 e1a06008 eb00368e eaffff07 (e7f001f2)
[ 1669.181468] ---[ end trace ca0a12d4c468139e ]---
[ 1669.186103] Fixing recursive fault but reboot is needed!