Tool/software:
Hi team,
I am using SDK 9.1 and kernel 6.1.46.
I'm running 8 camera streaming with ds90ub962 and ds90ub953 by the Gsteamer, but not success every single time.
When a failure occurs, I'll get some logs warning about j721e-csi2rx.c dma callback.
the Gsteamer command:
gst-launch-1.0 \ v4l2src device=/dev/video-tevs-cam0 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_0 \ v4l2src device=/dev/video-tevs-cam1 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_1 \ v4l2src device=/dev/video-tevs-cam2 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_2 \ v4l2src device=/dev/video-tevs-cam3 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_3 \ v4l2src device=/dev/video-tevs-cam4 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_4 \ v4l2src device=/dev/video-tevs-cam5 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_5 \ v4l2src device=/dev/video-tevs-cam6 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_6 \ v4l2src device=/dev/video-tevs-cam7 io-mode=4 ! video/x-raw,width=1280,height=720,format=UYVY ! tiovxldc out-block-width=128 out-block-height=20 ! video/x-raw, format=NV12,! mosaic.sink_7 \ tiovxmosaic name=mosaic latency=1234567890 src::repeat-after-eos=false src::pool-size=10 \ sink_0::startx="<0>" sink_0::starty="<0>" sink_0::widths="<320>" sink_0::heights="<240>" sink_0::repeat-after-eos=false sink_0::pool-size=16 \ sink_1::startx="<320>" sink_1::starty="<0>" sink_1::widths="<320>" sink_1::heights="<240>" sink_1::repeat-after-eos=false sink_1::pool-size=16 \ sink_2::startx="<640>" sink_2::starty="<0>" sink_2::widths="<320>" sink_2::heights="<240>" sink_2::repeat-after-eos=false sink_2::pool-size=16 \ sink_3::startx="<959>" sink_3::starty="<0>" sink_3::widths="<320>" sink_3::heights="<240>" sink_3::repeat-after-eos=false sink_3::pool-size=16 \ sink_4::startx="<0>" sink_4::starty="<320>" sink_4::widths="<320>" sink_4::heights="<240>" sink_4::repeat-after-eos=false sink_4::pool-size=16 \ sink_5::startx="<320>" sink_5::starty="<320>" sink_5::widths="<320>" sink_5::heights="<240>" sink_5::repeat-after-eos=false sink_5::pool-size=16 \ sink_6::startx="<640>" sink_6::starty="<320>" sink_6::widths="<320>" sink_6::heights="<240>" sink_6::repeat-after-eos=false sink_6::pool-size=16 \ sink_7::startx="<959>" sink_7::starty="<320>" sink_7::widths="<320>" sink_7::heights="<240>" sink_7::repeat-after-eos=false sink_7::pool-size=16 ! \ tiperfoverlay overlay-type=0 update-fps-interval=1000 ! video/x-raw, width=1280, height=800, framerate=10/1 ! queue ! waylandsink sync=false --no-position &
Here is the log:
root@rovy-4vm:/opt/edgeai-gst-apps# . ~/run_8_cam.sh Set the resolution=1280x720 WIDTH=1280 & HIGHT=720 .. root@rovy-4vm:/opt/edgeai-gst-apps# APP: Init ... !!! MEM: Init ... !!! MEM: Initialized DMA HEAP (fd=6) !!! MEM: Init ... Done !!! IPC: Init ... !!! IPC: Init ... Done !!! REMOTE_SERVICE: Init ... !!! REMOTE_SERVICE: Init ... Done !!! 249.649106 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 249.649171 s: VX_ZONE_INIT:Enabled 249.649178 s: VX_ZONE_ERROR:Enabled 249.649183 s: VX_ZONE_WARNING:Enabled 249.649900 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!! 249.650410 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!! Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock [ 241.999941] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.007010] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.013921] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.020900] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.021492] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.027791] ds90ub960 5-0030: Mapping sink 0/0 to output VC 0 [ 242.027797] ds90ub960 5-0030: Mapping sink 1/0 to output VC 1 [ 242.027801] ds90ub960 5-0030: Mapping sink 2/0 to output VC 2 [ 242.027805] ds90ub960 5-0030: Mapping sink 3/0 to output VC 3 [ 242.030334] ds90ub960 5-0030: Prepare for streaming [ 242.034702] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.046016] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.046278] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.053517] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.057694] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.063299] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.069840] ds90ub960 3-0030: Mapping sink 0/0 to output VC 0 [ 242.077037] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.088142] ds90ub960 3-0030: Mapping sink 1/0 to output VC 1 [ 242.091964] ds90ub960 5-0030: enable TX port 0 [ 242.097283] ds90ub960 3-0030: Mapping sink 2/0 to output VC 2 [ 242.104864] ds90ub960 5-0030: enable RX port 0 [ 242.109992] ds90ub960 3-0030: Mapping sink 3/0 to output VC 3 [ 242.117378] ds90ub960 5-0030: enable RX port 0 streams 0x1 [ 242.142505] ds90ub960 3-0030: Prepare for streaming [ 242.156045] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.164027] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.171800] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.178727] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.186506] ds90ub960 3-0030: enable TX port 0 [ 242.191184] ds90ub960 3-0030: enable RX port 0 [ 242.195850] ds90ub960 3-0030: enable RX port 0 streams 0x1 [ 242.231706] j721e-csi2rx 4500000.ticsi2rx: Failed to drain DMA. Next frame might be bogus [ 242.252297] ds90ub960 5-0030: enable RX port 1 [ 242.256966] ds90ub960 5-0030: enable RX port 1 streams 0x1 [ 242.300302] ds90ub960 3-0030: enable RX port 1 [ 242.305005] ds90ub960 3-0030: enable RX port 1 streams 0x1 [ 242.367556] ds90ub960 5-0030: enable RX port 2 [ 242.372219] ds90ub960 5-0030: enable RX port 2 streams 0x1 [ 242.415618] ds90ub960 3-0030: enable RX port 2 [ 242.420276] ds90ub960 3-0030: enable RX port 2 streams 0x1 [ 242.482826] ds90ub960 5-0030: enable RX port 3 [ 242.487491] ds90ub960 5-0030: enable RX port 3 streams 0x1 [ 242.530919] ds90ub960 3-0030: enable RX port 3 [ 242.535588] ds90ub960 3-0030: enable RX port 3 streams 0x1 [ 242.598129] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.605006] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.611938] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.618879] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.625846] ds90ub960 5-0030: Mapping sink 0/0 to output VC 0 [ 242.631680] ds90ub960 5-0030: Mapping sink 1/0 to output VC 1 [ 242.637483] ds90ub960 5-0030: Mapping sink 2/0 to output VC 2 [ 242.643272] ds90ub960 5-0030: Mapping sink 3/0 to output VC 3 [ 242.649249] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.656233] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.663172] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.670103] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.677055] ds90ub960 5-0030: Mapping sink 0/0 to output VC 0 [ 242.682862] ds90ub960 5-0030: Mapping sink 1/0 to output VC 1 [ 242.688626] ds90ub960 5-0030: Mapping sink 2/0 to output VC 2 [ 242.694393] ds90ub960 5-0030: Mapping sink 3/0 to output VC 3 [ 242.700286] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.707286] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.715451] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.715673] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.724173] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.738053] ds90ub960 5-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.740427] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.750412] ds90ub960 5-0030: Mapping sink 0/0 to output VC 0 [ 242.753176] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.759029] ds90ub960 5-0030: Mapping sink 1/0 to output VC 1 [ 242.765517] ds90ub960 3-0030: Mapping sink 0/0 to output VC 0 [ 242.770423] ds90ub960 5-0030: Mapping sink 2/0 to output VC 2 [ 242.776765] ds90ub960 3-0030: Mapping sink 1/0 to output VC 1 [ 242.788285] ds90ub960 3-0030: Mapping sink 2/0 to output VC 2 [ 242.795136] ds90ub960 3-0030: Mapping sink 3/0 to output VC 3 [ 242.801822] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.809812] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.817715] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.825630] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.828475] ds90ub960 5-0030: Mapping sink 3/0 to output VC 3 [ 242.835236] ds90ub960 3-0030: Mapping sink 0/0 to output VC 0 [ 242.845077] ds90ub960 3-0030: Mapping sink 1/0 to output VC 1 [ 242.851887] ds90ub960 3-0030: Mapping sink 2/0 to output VC 2 [ 242.858568] ds90ub960 3-0030: Mapping sink 3/0 to output VC 3 [ 242.864450] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 0 is 0x00 [ 242.867656] ------------[ cut here ]------------ [ 242.871467] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 1 is 0x55 [ 242.875920] WARNING: CPU: 0 PID: 2042 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:709 ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 242.882838] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 2 is 0xaa [ 242.896045] Modules linked in: tevs xhci_plat_hcd pci_endpoint_test rpmsg_ctrl cdns_csi2rx ds90ub953 ti_am335x_adc rpmsg_char kfifo_buf irq_pruss_intc panel_simple pru_rproc omap_rng cdns_pltfrm cdns3 cdns_usb_common spidev overlay crct10dif_ce snd_soc_simple_card snd_soc_simple_card_utils phy_can_transceiver pwm_bl pvrsrvkm(O) ti_k3_r5_remoteproc vxd_dec cfg80211 vxe_enc j721e_csi2rx at24 ds90ub960 videobuf2_dma_sg cdns_mhdp8546 ti_k3_dsp_remoteproc ti_am335x_tscadc [ 242.902948] ds90ub960 3-0030: ub960_get_vc_maps: VC map for port 3 is 0xff [ 242.902950] v4l2_mem2mem [ 242.902955] ds90ub960 3-0030: Mapping sink 0/0 to output VC 0 [ 242.944211] videobuf2_dma_contig drm_display_helper virtio_rpmsg_bus i2c_atr tidss pruss videobuf2_memops bluetooth v4l2_fwnode cdns_dsi ti_j721e_ufs rpmsg_ns videobuf2_v4l2 sa2ul [ 242.953214] ds90ub960 3-0030: Mapping sink 1/0 to output VC 1 [ 242.953687] ti_k3_common drm_dma_helper [ 242.959837] ds90ub960 3-0030: Mapping sink 2/0 to output VC 2 [ 242.975452] v4l2_async videobuf2_common pwm_tiehrpwm cdns_dphy cdns_dphy_rx videodev snd_soc_tlv320aic3x_i2c ecdh_generic ecc mc rfkill cdns3_ti snd_soc_davinci_mcasp rtc_ds1307 snd_soc_tlv320aic3x snd_soc_ti_udma pci_j721e_host snd_soc_ti_edma pci_j721e [ 242.981562] ds90ub960 3-0030: Mapping sink 3/0 to output VC 3 [ 242.985107] snd_soc_ti_sdma pcie_cadence_host pcie_cadence ina2xx m_can_platform m_can can_dev spi_omap2_mcspi optee_rng rti_wdt rng_core fuse ipv6 [ 243.032381] CPU: 0 PID: 2042 Comm: v4l2src2:src Tainted: G W O 6.1.46-ge59371b14a0a-dirty #43 [ 243.042099] Hardware name: TechNexion ROVY-4VM and EVM baseboard with Vizionpanel 10.1 inch LVDS panel (DT) [ 243.051814] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 243.058757] pc : ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.064925] lr : ti_csi2rx_dma_callback+0x48/0x140 [j721e_csi2rx] [ 243.071005] sp : ffff800008003e00 [ 243.074305] x29: ffff800008003e00 x28: 0000000000000000 x27: 0000000000000038 [ 243.081424] x26: 0000000000000003 x25: ffff00082ba48ec0 x24: dead000000000100 [ 243.088542] x23: dead000000000122 x22: 0000000000000000 x21: ffff000830221de8 [ 243.095660] x20: ffff000830221628 x19: ffff00082d8e4400 x18: 0000000000000000 [ 243.102777] x17: ffff800955622000 x16: ffff800008000000 x15: 0000000000000000 [ 243.109895] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 [ 243.117013] x11: 0000000000000040 x10: ffff000827d9f470 x9 : ffff000827d9f468 [ 243.124131] x8 : ffff00095f19a040 x7 : c9943389b496b104 x6 : 0000000bab04e177 [ 243.131248] x5 : 03ffffffffffffff x4 : 0000000000000000 x3 : ffff000830221de8 [ 243.138366] x2 : 0000000000000001 x1 : ffff0008295de800 x0 : 0000000000000000 [ 243.145485] Call trace: [ 243.147918] ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.153736] udma_vchan_complete+0x21c/0x2a0 [ 243.158000] tasklet_action_common.isra.0+0x11c/0x148 [ 243.163041] tasklet_action+0x28/0x38 [ 243.166690] __do_softirq+0x120/0x288 [ 243.170339] ____do_softirq+0x10/0x20 [ 243.173988] call_on_irq_stack+0x24/0x4c [ 243.177897] do_softirq_own_stack+0x1c/0x28 [ 243.182065] irq_exit_rcu+0xe8/0x108 [ 243.185628] el0_interrupt+0x54/0xd8 [ 243.189195] __el0_irq_handler_common+0x18/0x28 [ 243.193712] el0t_64_irq_handler+0x10/0x20 [ 243.197793] el0t_64_irq+0x18c/0x190 [ 243.201354] ---[ end trace 0000000000000000 ]--- [ 243.206319] ------------[ cut here ]------------ [ 243.210930] WARNING: CPU: 0 PID: 534 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:709 ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.224131] Modules linked in: tevs xhci_plat_hcd pci_endpoint_test rpmsg_ctrl cdns_csi2rx ds90ub953 ti_am335x_adc rpmsg_char kfifo_buf irq_pruss_intc panel_simple pru_rproc omap_rng cdns_pltfrm cdns3 cdns_usb_common spidev overlay crct10dif_ce snd_soc_simple_card snd_soc_simple_card_utils phy_can_transceiver pwm_bl pvrsrvkm(O) ti_k3_r5_remoteproc vxd_dec cfg80211 vxe_enc j721e_csi2rx at24 ds90ub960 videobuf2_dma_sg cdns_mhdp8546 ti_k3_dsp_remoteproc ti_am335x_tscadc v4l2_mem2mem videobuf2_dma_contig drm_display_helper virtio_rpmsg_bus i2c_atr tidss pruss videobuf2_memops bluetooth v4l2_fwnode cdns_dsi ti_j721e_ufs rpmsg_ns videobuf2_v4l2 sa2ul ti_k3_common drm_dma_helper v4l2_async videobuf2_common pwm_tiehrpwm cdns_dphy cdns_dphy_rx videodev snd_soc_tlv320aic3x_i2c ecdh_generic ecc mc rfkill cdns3_ti snd_soc_davinci_mcasp rtc_ds1307 snd_soc_tlv320aic3x snd_soc_ti_udma pci_j721e_host snd_soc_ti_edma pci_j721e snd_soc_ti_sdma pcie_cadence_host pcie_cadence ina2xx m_can_platform m_can [ 243.224255] can_dev spi_omap2_mcspi optee_rng rti_wdt rng_core fuse ipv6 [ 243.317968] CPU: 0 PID: 534 Comm: containerd Tainted: G W O 6.1.46-ge59371b14a0a-dirty #43 [ 243.327425] Hardware name: TechNexion ROVY-4VM and EVM baseboard with Vizionpanel 10.1 inch LVDS panel (DT) [ 243.337140] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 243.344083] pc : ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.350252] lr : ti_csi2rx_dma_callback+0x48/0x140 [j721e_csi2rx] [ 243.356330] sp : ffff800008003e00 [ 243.359630] x29: ffff800008003e00 x28: 0000000000000005 x27: 0000000000000018 [ 243.366748] x26: 0000000000000003 x25: ffff000829698000 x24: dead000000000100 [ 243.373866] x23: dead000000000122 x22: 0000000000000000 x21: ffff000830221de8 [ 243.380984] x20: ffff000830221628 x19: ffff0008295de800 x18: 0000000000000000 [ 243.388101] x17: ffff800955622000 x16: ffff800008000000 x15: 0000000000000001 [ 243.395218] x14: ffff800008003978 x13: 000000000a141f86 x12: 0000000000005000 [ 243.402335] x11: 0000000000000040 x10: ffff80000a1f3c38 x9 : ffff80000a1f3c30 [ 243.409451] x8 : ffff000827400270 x7 : 0000000000000000 x6 : 0000000baf127a77 [ 243.416568] x5 : 03ffffffffffffff x4 : 0000000000000000 x3 : ffff000830221de8 [ 243.423685] x2 : 0000000000000001 x1 : ffff0008295ddc00 x0 : 0000000000000000 [ 243.430801] Call trace: [ 243.433235] ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.439053] udma_vchan_complete+0x21c/0x2a0 [ 243.443316] tasklet_action_common.isra.0+0x11c/0x148 [ 243.448354] tasklet_action+0x28/0x38 [ 243.452004] __do_softirq+0x120/0x288 [ 243.455653] ____do_softirq+0x10/0x20 [ 243.459302] call_on_irq_stack+0x24/0x4c [ 243.463209] do_softirq_own_stack+0x1c/0x28 [ 243.467378] do_softirq+0x94/0xa0 [ 243.470680] __local_bh_enable_ip+0xa4/0xb0 [ 243.474849] fpsimd_restore_current_state+0xb8/0xe0 [ 243.479711] do_notify_resume+0xfc/0x448 [ 243.483622] el0_svc+0x74/0x88 [ 243.486668] el0t_64_sync_handler+0xb8/0xc0 [ 243.490835] el0t_64_sync+0x18c/0x190 [ 243.494483] ---[ end trace 0000000000000000 ]--- [ 243.499389] ------------[ cut here ]------------ [ 243.504006] WARNING: CPU: 0 PID: 13 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:709 ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.517129] Modules linked in: tevs xhci_plat_hcd pci_endpoint_test rpmsg_ctrl cdns_csi2rx ds90ub953 ti_am335x_adc rpmsg_char kfifo_buf irq_pruss_intc panel_simple pru_rproc omap_rng cdns_pltfrm cdns3 cdns_usb_common spidev overlay crct10dif_ce snd_soc_simple_card snd_soc_simple_card_utils phy_can_transceiver pwm_bl pvrsrvkm(O) ti_k3_r5_remoteproc vxd_dec cfg80211 vxe_enc j721e_csi2rx at24 ds90ub960 videobuf2_dma_sg cdns_mhdp8546 ti_k3_dsp_remoteproc ti_am335x_tscadc v4l2_mem2mem videobuf2_dma_contig drm_display_helper virtio_rpmsg_bus i2c_atr tidss pruss videobuf2_memops bluetooth v4l2_fwnode cdns_dsi ti_j721e_ufs rpmsg_ns videobuf2_v4l2 sa2ul ti_k3_common drm_dma_helper v4l2_async videobuf2_common pwm_tiehrpwm cdns_dphy cdns_dphy_rx videodev snd_soc_tlv320aic3x_i2c ecdh_generic ecc mc rfkill cdns3_ti snd_soc_davinci_mcasp rtc_ds1307 snd_soc_tlv320aic3x snd_soc_ti_udma pci_j721e_host snd_soc_ti_edma pci_j721e snd_soc_ti_sdma pcie_cadence_host pcie_cadence ina2xx m_can_platform m_can [ 243.517272] can_dev spi_omap2_mcspi optee_rng rti_wdt rng_core fuse ipv6 [ 243.610987] CPU: 0 PID: 13 Comm: ksoftirqd/0 Tainted: G W O 6.1.46-ge59371b14a0a-dirty #43 [ 243.620445] Hardware name: TechNexion ROVY-4VM and EVM baseboard with Vizionpanel 10.1 inch LVDS panel (DT) [ 243.630160] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 243.637103] pc : ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.643273] lr : ti_csi2rx_dma_callback+0x48/0x140 [j721e_csi2rx] [ 243.649351] sp : ffff80000a77bc20 [ 243.652652] x29: ffff80000a77bc20 x28: 0000000000000005 x27: 0000000000000018 [ 243.659770] x26: 0000000000000003 x25: ffff000827113b00 x24: dead000000000100 [ 243.666887] x23: dead000000000122 x22: 0000000000000000 x21: ffff000830221de8 [ 243.674004] x20: ffff000830221628 x19: ffff0008295ddc00 x18: 0000000047706f7d [ 243.681121] x17: 000000004c2d98c8 x16: 000000009248be44 x15: 0000000000000001 [ 243.688238] x14: ffff80000a77b918 x13: 000000000a141e58 x12: 0000000000000080 [ 243.695356] x11: 0000000000000040 x10: ffff80000a1f3c38 x9 : ffff80000a1f3c30 [ 243.702474] x8 : ffff000827400270 x7 : 0000000000000000 x6 : 0000000bb299cc77 [ 243.709592] x5 : 03ffffffffffffff x4 : 0000000000000000 x3 : ffff000830221de8 [ 243.716710] x2 : 0000000000000001 x1 : ffff0008295dd400 x0 : 0000000000000000 [ 243.723828] Call trace: [ 243.726261] ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.732079] udma_vchan_complete+0x21c/0x2a0 [ 243.736343] tasklet_action_common.isra.0+0x11c/0x148 [ 243.741382] tasklet_action+0x28/0x38 [ 243.745032] __do_softirq+0x120/0x288 [ 243.748682] run_ksoftirqd+0x4c/0x60 [ 243.752245] smpboot_thread_fn+0x1bc/0x278 [ 243.756328] kthread+0x110/0x120 [ 243.759544] ret_from_fork+0x10/0x20 [ 243.763106] ---[ end trace 0000000000000000 ]--- [ 243.768012] ------------[ cut here ]------------ [ 243.772622] WARNING: CPU: 0 PID: 180 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:709 ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.785816] Modules linked in: tevs xhci_plat_hcd pci_endpoint_test rpmsg_ctrl cdns_csi2rx ds90ub953 ti_am335x_adc rpmsg_char kfifo_buf irq_pruss_intc panel_simple pru_rproc omap_rng cdns_pltfrm cdns3 cdns_usb_common spidev overlay crct10dif_ce snd_soc_simple_card snd_soc_simple_card_utils phy_can_transceiver pwm_bl pvrsrvkm(O) ti_k3_r5_remoteproc vxd_dec cfg80211 vxe_enc j721e_csi2rx at24 ds90ub960 videobuf2_dma_sg cdns_mhdp8546 ti_k3_dsp_remoteproc ti_am335x_tscadc v4l2_mem2mem videobuf2_dma_contig drm_display_helper virtio_rpmsg_bus i2c_atr tidss pruss videobuf2_memops bluetooth v4l2_fwnode cdns_dsi ti_j721e_ufs rpmsg_ns videobuf2_v4l2 sa2ul ti_k3_common drm_dma_helper v4l2_async videobuf2_common pwm_tiehrpwm cdns_dphy cdns_dphy_rx videodev snd_soc_tlv320aic3x_i2c ecdh_generic ecc mc rfkill cdns3_ti snd_soc_davinci_mcasp rtc_ds1307 snd_soc_tlv320aic3x snd_soc_ti_udma pci_j721e_host snd_soc_ti_edma pci_j721e snd_soc_ti_sdma pcie_cadence_host pcie_cadence ina2xx m_can_platform m_can [ 243.785933] can_dev spi_omap2_mcspi optee_rng rti_wdt rng_core fuse ipv6 [ 243.879643] CPU: 0 PID: 180 Comm: kworker/0:3 Tainted: G W O 6.1.46-ge59371b14a0a-dirty #43 [ 243.889187] Hardware name: TechNexion ROVY-4VM and EVM baseboard with Vizionpanel 10.1 inch LVDS panel (DT) [ 243.898903] Workqueue: events ub960_handler_work [ds90ub960] [ 243.904553] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 243.911495] pc : ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 243.917661] lr : ti_csi2rx_dma_callback+0x48/0x140 [j721e_csi2rx] [ 243.923739] sp : ffff800008003e00 [ 243.927039] x29: ffff800008003e00 x28: 0000000000000005 x27: 0000000000000018 [ 243.934156] x26: 0000000000000003 x25: ffff00082b973b00 x24: dead000000000100 [ 243.941274] x23: dead000000000122 x22: 0000000000000000 x21: ffff000830221de8 [ 243.948392] x20: ffff000830221628 x19: ffff0008295dd400 x18: 0000000000000000 [ 243.955508] x17: ffff800955622000 x16: ffff800008000000 x15: 0000000000000001 [ 243.962625] x14: ffff800008003978 x13: 000000000a141e94 x12: 0000000000000080 [ 243.969743] x11: 0000000000000040 x10: ffff80000a1f3c38 x9 : ffff80000a1f3c30 [ 243.976861] x8 : ffff000827400270 x7 : 0000000000000000 x6 : 0000000bb5cbab77 [ 243.983979] x5 : 03ffffffffffffff x4 : 0000000000000000 x3 : ffff000830221de8 [ 243.991095] x2 : 0000000000000001 x1 : ffff00082d8e4400 x0 : 0000000000000000 [ 243.998212] Call trace: [ 244.000645] ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 244.006463] udma_vchan_complete+0x21c/0x2a0 [ 244.010722] tasklet_action_common.isra.0+0x11c/0x148 [ 244.015762] tasklet_action+0x28/0x38 [ 244.019412] __do_softirq+0x120/0x288 [ 244.023061] ____do_softirq+0x10/0x20 [ 244.026709] call_on_irq_stack+0x24/0x4c [ 244.030617] do_softirq_own_stack+0x1c/0x28 [ 244.034785] irq_exit_rcu+0xe8/0x108 [ 244.038347] el1_interrupt+0x3c/0x70 [ 244.041912] el1h_64_irq_handler+0x18/0x28 [ 244.045996] el1h_64_irq+0x64/0x68 [ 244.049384] _raw_spin_unlock_irq+0x40/0x50 [ 244.053556] omap_i2c_xfer_common+0x424/0x560 [ 244.057903] omap_i2c_xfer_irq+0x14/0x20 [ 244.061812] __i2c_transfer+0x190/0x370 [ 244.065635] i2c_transfer+0xa8/0x120 [ 244.069197] regmap_i2c_read+0x60/0xa8 [ 244.072936] _regmap_raw_read+0xdc/0x160 [ 244.076846] _regmap_bus_read+0x44/0x80 [ 244.080669] _regmap_read+0x64/0xf8 [ 244.084143] regmap_read+0x4c/0x78 [ 244.087532] ub960_read+0x54/0xc8 [ds90ub960] [ 244.091879] ub960_handler_work+0x3c/0x568 [ds90ub960] [ 244.097004] process_one_work+0x1b4/0x310 [ 244.101002] worker_thread+0x4c/0x400 [ 244.104651] kthread+0x110/0x120 [ 244.107867] ret_from_fork+0x10/0x20 [ 244.111430] ---[ end trace 0000000000000000 ]--- [ 244.116183] ------------[ cut here ]------------ [ 244.120788] WARNING: CPU: 0 PID: 13 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:709 ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 244.133895] Modules linked in: tevs xhci_plat_hcd pci_endpoint_test rpmsg_ctrl cdns_csi2rx ds90ub953 ti_am335x_adc rpmsg_char kfifo_buf irq_pruss_intc panel_simple pru_rproc omap_rng cdns_pltfrm cdns3 cdns_usb_common spidev overlay crct10dif_ce snd_soc_simple_card snd_soc_simple_card_utils phy_can_transceiver pwm_bl pvrsrvkm(O) ti_k3_r5_remoteproc vxd_dec cfg80211 vxe_enc j721e_csi2rx at24 ds90ub960 videobuf2_dma_sg cdns_mhdp8546 ti_k3_dsp_remoteproc ti_am335x_tscadc v4l2_mem2mem videobuf2_dma_contig drm_display_helper virtio_rpmsg_bus i2c_atr tidss pruss videobuf2_memops bluetooth v4l2_fwnode cdns_dsi ti_j721e_ufs rpmsg_ns videobuf2_v4l2 sa2ul ti_k3_common drm_dma_helper v4l2_async videobuf2_common pwm_tiehrpwm cdns_dphy cdns_dphy_rx videodev snd_soc_tlv320aic3x_i2c ecdh_generic ecc mc rfkill cdns3_ti snd_soc_davinci_mcasp rtc_ds1307 snd_soc_tlv320aic3x snd_soc_ti_udma pci_j721e_host snd_soc_ti_edma pci_j721e snd_soc_ti_sdma pcie_cadence_host pcie_cadence ina2xx m_can_platform m_can [ 244.134011] can_dev spi_omap2_mcspi optee_rng rti_wdt rng_core fuse ipv6 [ 244.227719] CPU: 0 PID: 13 Comm: ksoftirqd/0 Tainted: G W O 6.1.46-ge59371b14a0a-dirty #43 [ 244.237176] Hardware name: TechNexion ROVY-4VM and EVM baseboard with Vizionpanel 10.1 inch LVDS panel (DT) [ 244.246890] pstate: 000000c5 (nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 244.253832] pc : ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 244.259998] lr : ti_csi2rx_dma_callback+0x48/0x140 [j721e_csi2rx] [ 244.266075] sp : ffff80000a77bc20 [ 244.269375] x29: ffff80000a77bc20 x28: 0000000000000005 x27: 0000000000000028 [ 244.276491] x26: 0000000000000003 x25: ffff000827113b00 x24: dead000000000100 [ 244.283609] x23: dead000000000122 x22: 0000000000000000 x21: ffff000830221de8 [ 244.290726] x20: ffff000830221628 x19: ffff00082d8e4400 x18: 0000000000000000 [ 244.297844] x17: 0000000000000003 x16: 0000000000000000 x15: 00000001fffffffe [ 244.304960] x14: 000000000000031a x13: 0000000000000324 x12: 0000000000000001 [ 244.312077] x11: 0000000000000040 x10: ffff80000a180478 x9 : ffff80000a180470 [ 244.319193] x8 : ffff000827400028 x7 : 0000000000000000 x6 : 0000000bb9f1ae77 [ 244.326311] x5 : 03ffffffffffffff x4 : 0000000000000000 x3 : ffff000830221de8 [ 244.333429] x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 [ 244.340547] Call trace: [ 244.342979] ti_csi2rx_dma_callback+0x108/0x140 [j721e_csi2rx] [ 244.348798] udma_vchan_complete+0x21c/0x2a0 [ 244.353059] tasklet_action_common.isra.0+0x11c/0x148 [ 244.358096] tasklet_action+0x28/0x38 [ 244.361746] __do_softirq+0x120/0x288 [ 244.365394] run_ksoftirqd+0x4c/0x60 [ 244.368957] smpboot_thread_fn+0x1bc/0x278 [ 244.373039] kthread+0x110/0x120 [ 244.376255] ret_from_fork+0x10/0x20 [ 244.379817] ---[ end trace 0000000000000000 ]--- [ 244.559197] ti-udma 31150000.dma-controller: chan26 teardown timeout! [ 244.569396] j721e-csi2rx 4510000.ticsi2rx: Failed to drain DMA. Next frame might be bogus root@rovy-4vm:/opt/edgeai-gst-apps# root@rovy-4vm:/opt/edgeai-gst-apps# root@rovy-4vm:/opt/edgeai-gst-apps#
I decode the log and found it cause by " WARN_ON(dma->curr != buf) "
pc : ti_csi2rx_dma_callback (acpi_sci_irq/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:709 (discriminator 1)) j721e_csi2rx lr : ti_csi2rx_dma_callback (acpi_sci_irq/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:707) j721e_csi2rx

I have no idea what is going on and how to prevent this case happening?