Part Number: TDA4VM
Hello,
I am developiung ADAS sw using TDA4VM SK board. I am facing kernal panic issue and need your help in resolving.
Board: TDA4VM / J721E SK EVM
Kernel: 6.12.17-ti-00773-gcdcaeac783e3-dirty (SRCREV cdcaeac783e31f18edb6cb44b526228f44023b45, tag 11.00.10)
Camera: e-con NeduCAM57 (OX05B1S sensor), on /dev/video19, CSI receiver 4510000.ticsi2rx
Summary :
During continuous camera capture, the board crashes with a kernel panic. It happens anywhere from ~16 seconds to ~29 minutes after streaming starts. We are capturing video with OpenCV (cv::VideoCapture, CAP_V4L2 backend), format pinned to 1920x1080 UYVY.
Crash log (from serial console):
[ 3637.786959] j721e-csi2rx 4510000.ticsi2rx: Failed to queue the next buffer for DMA
[ 3637.868214] j721e-csi2rx 4510000.ticsi2rx: Failed to queue the next buffer for DMA
[ 3637.911614] WARNING: CPU: 0 PID: 0 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:820 ti_csi2rx_dma_callback+0xe0/0xe8 [j721e_csi2rx]
[ 3638.198417] WARNING: CPU: 0 PID: 0 at drivers/media/common/videobuf2/videobuf2-core.c:1187 vb2_buffer_done+0x1f8/0x240 [videobuf2_common]
...lr : ti_csi2rx_dma_callback+0x68/0xe8 [j721e_csi2rx]
[ 3638.498655] WARNING: CPU: 0 PID: 0 at drivers/media/common/videobuf2/videobuf2-core.c:1187 vb2_buffer_done+0x1f8/0x240 [videobuf2_common]
...lr : ti_csi2rx_dma_submit_pending+0xac/0xf8 [j721e_csi2rx]
[ 3639.044188] Unable to handle kernel paging request at virtual address dead000000000122
[ 3639.070064] FSC = 0x04: level 0 translation fault
[ 3639.083260] ISV = 0, ISS = 0x00000044 ... WnR = 1
[ 3639.100702] Internal error: Oops: 0000000096000044 [#1] PREEMPT SMP
[ 3639.203204] pc : ti_csi2rx_dma_submit_pending+0x50/0xf8 [j721e_csi2rx]
Call trace:
ti_csi2rx_dma_submit_pending+0x50/0xf8 [j721e_csi2rx]
ti_csi2rx_dma_callback+0x8c/0xe8 [j721e_csi2rx]
udma_vchan_complete+0x20c/0x258
tasklet_action_common+0xf8/0x11c
[ 3639.353151] Kernel panic - not syncing: Oops: Fatal exception in interrupt
Why we think this is a buffer-handling bug
The address dead000000000122 is Linux’s own marker for a list entry that was already removed (list_del()). The crash happens when the driver writes to that marker, inside the DMA completion path (ti_csi2rx_dma_callback → ti_csi2rx_dma_submit_pending, called from udma_vchan_complete). This suggests a video buffer is being completed or re-queued for DMA more than once, or after it has already been removed from the driver’s buffer list.
What we checked and ruled out before posting:
Not thermal — added active cooling, crash timing did not change, all zones stayed well below the critical limit
Not power — the one PMIC undervoltage event we saw is on the SD-card rail (vdd_sd_dv), a one-time boot event, confirmed unrelated
Not memory exhaustion — tracked CMA/cache closely; a separate cache-growth trend (from video recording) is reclaimable and plateaus safely on its own
Not our application code — same crash happens whether we are recording to disk or not, and the fault is entirely inside the kernel’s V4L2/DMA interrupt path
Driver info:
j721e_csi2rx
intree: Y
author: Jai Luthra <j-luthra@ti.com>
Question: Has this been seen before? Is there a known fix for the buffer-completion handling in ti_csi2rx_dma_callback/ti_csi2rx_dma_submit_pending?
We can share the full serial log if useful.
