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.

AM62P: j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5

Part Number: AM62P

Tool/software:

I write an application to implement a surround view system with 4 CSI-2 Cameras.I use V4L2 to get the camera data and gpu to render the data,the CPU will also process the data at the same time.
There is about a 5% chance that  the kernel prints “j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5” when the application begins to process the camera data.the kernel and the applicaiton are both alive.
[   12.300439] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.308988] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.340201] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.348656] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.356977] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.365278] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5

sometimes, the kernel crashes after the prints:

[   12.231154] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.272619] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.281605] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.290444] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.299284] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.311782] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.320773] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.329853] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.339248] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.352418] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.362069] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5
[   12.372079] Unable to handle kernel paging request at virtual address dead000000000108
[   12.379993] Mem abort info:
[   12.382780]   ESR = 0x0000000096000044
[   12.386522]   EC = 0x25: DABT (current EL), IL = 32 bits
[   12.391821]   SET = 0, FnV = 0
[   12.394866]   EA = 0, S1PTW = 0
[   12.397996]   FSC = 0x04: level 0 translation fault
[   12.402860] Data abort info:
[   12.405729]   ISV = 0, ISS = 0x00000044, ISS2 = 0x00000000
[   12.411199]   CM = 0, WnR = 1, TnD = 0, TagAccess = 0
[   12.416238]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[   12.421538] [dead000000000108] address between user and kernel address ranges
[   12.428660] Internal error: Oops: 0000000096000044 [#1] PREEMPT SMP
[   12.434915] Modules linked in: ox01g10 max96701 pvrsrvkm(O) rti_wdt sa2ul mcrc64 wave5 v4l2_mem2mem max96755r max96724
[   12.445628] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G        W  O       6.12.17+ #7
[   12.453792] Tainted: [W]=WARN, [O]=OOT_MODULE
[   12.458136] Hardware name: Texas Instruments AM62P5 SK (DT)
[   12.463694] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   12.470640] pc : ti_csi2rx_dma_callback+0x70/0xe8
[   12.475343] lr : ti_csi2rx_dma_callback+0x68/0xe8
[   12.480039] sp : ffff800080003e20
[   12.483343] x29: ffff800080003e20 x28: 0000000000000101 x27: 0000000000000040
[   12.490472] x26: ffff000000f5e378 x25: dead000000000122 x24: ffff000001a21c78
[   12.497600] x23: ffff000001a21c50 x22: 0000000000000000 x21: ffff0000049dd400
[   12.504728] x20: ffff000001a21570 x19: ffff0000049dd000 x18: 0000000000000006
[   12.511855] x17: 2072656666756220 x16: 7478656e20656874 x15: 206575657571206f
[   12.518983] x14: 742064656c696146 x13: ffff800080d8cd38 x12: 00000000000009ab
[   12.526111] x11: 0000000000000339 x10: ffff800080de4d38 x9 : ffff800080d8cd38
[   12.533239] x8 : 00000000ffffefff x7 : ffff800080de4d38 x6 : 80000000fffff000
[   12.540367] x5 : ffff8000806b2f2c x4 : 0000000000000000 x3 : dead000000000100
[   12.547494] x2 : dead000000000122 x1 : 0000000000000100 x0 : 0000000000000005
[   12.554623] Call trace:
[   12.557061]  ti_csi2rx_dma_callback+0x70/0xe8
[   12.561411]  udma_vchan_complete+0x20c/0x258
[   12.565676]  tasklet_action_common+0xf8/0x11c
[   12.570027]  tasklet_action+0x2c/0x38
[   12.573682]  handle_softirqs+0x104/0x248
[   12.577598]  __do_softirq+0x14/0x20
[   12.581077]  ____do_softirq+0x10/0x1c
[   12.584731]  call_on_irq_stack+0x24/0x4c
[   12.588645]  do_softirq_own_stack+0x1c/0x28
[   12.592819]  irq_exit_rcu+0x8c/0xc4
[   12.596301]  el1_interrupt+0x38/0x68
[   12.599869]  el1h_64_irq_handler+0x18/0x24
[   12.603956]  el1h_64_irq+0x64/0x68
[   12.607348]  default_idle_call+0x28/0x3c
[   12.611264]  do_idle+0x200/0x258
[   12.614484]  cpu_startup_entry+0x38/0x3c
[   12.618398]  kernel_init+0x0/0x1d4
[   12.621793]  start_kernel+0x54c/0x694
[   12.625447]  __primary_switched+0x80/0x88
[   12.629454] Code: 528000a1 97ffbd90 a9428aa3 d2802001 (f9000462) 
[   12.635533] ---[ end trace 0000000000000000 ]---
[   12.640140] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[   12.647000] SMP: stopping secondary CPUs
[   13.723945] SMP: failed to stop secondary CPUs 1
[   13.728556] Kernel Offset: disabled
[   13.732032] CPU features: 0x00,00000000,00200000,4200420b
[   13.737418] Memory Limit: none
[   13.740463] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---

It works well If the application just keep getting the camera data and do nothing with them.

the applicaton works well on other platforms.

what does this failure means? and What are the potential reasons for this failure?

  • Hello Linyang,

    Which version of SDK are you using? Is this on TI's AM62P EVM or your custom board?

    “j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA ret:-5”

    This error is reported here (SDK 10.1 code): https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c?h=ti-linux-6.6.y#n731

    I assume you added the return error code to this error print. The error code "5" is returned by function dmaengine_prep_slave_single(), which should be calling the following function:

    https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/dma/ti/k3-udma.c?h=ti-linux-6.6.y#n3234

    Can you add some more debug info to this function udma_prep_slave_sg_pkt(), to find out what caused this function to return error?

    1. add a debug print at the begging of this function to make sure this is indeed the function called by dmaengine_prep_slave_single(). 
    2. Add a dev_err before this line: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/dma/ti/k3-udma.c?h=ti-linux-6.6.y#n3247. Most likely this function returned from here, because every other "return NULL" has a dev_err print and I didn't see those messages in your log. If that's the case, udma_prep_slave_sg_pkt() returned error because system is out of memory.

    Regards,

    Jianzhong

  • [2025-04-14 10:45:37.171]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:37.171]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:37.171]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:37.171]  process_one_work+0x138/0x248
    [2025-04-14 10:45:37.171]  worker_thread+0x320/0x438
    [2025-04-14 10:45:37.171]  kthread+0x110/0x114
    [2025-04-14 10:45:37.172]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:37.172] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:37.172] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA
    [2025-04-14 10:45:37.172] ------------[ cut here ]------------
    [2025-04-14 10:45:37.173] Failed to get suitable pool for 4e230000.dma-controller
    [2025-04-14 10:45:37.173] WARNING: CPU: 0 PID: 8 at kernel/dma/pool.c:279 dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.214] Modules linked in: ox01g10 max96701 pvrsrvkm rti_wdt sa2ul sha256_generic wave5 libsha256 authenc v44
    [2025-04-14 10:45:37.214] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:37.214] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:37.215] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:37.215] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:37.215] pc : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.215] lr : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.215] sp : ffff800080003b60
    [2025-04-14 10:45:37.257] x29: ffff800080003b60 x28: ffff800080003be0 x27: ffff800080a59000
    [2025-04-14 10:45:37.257] x26: ffff8000800b3c1c x25: ffff800080d80000 x24: fffffc0000000000
    [2025-04-14 10:45:37.257] x23: ffff800080a59440 x22: 0000000000001000 x21: ffff0000002d3c10
    [2025-04-14 10:45:37.257] x20: 0000000000000000 x19: ffff00000018fe40 x18: ffffffffffff7df8
    [2025-04-14 10:45:37.258] x17: 2072656666756220 x16: 7478656e20656874 x15: 0000000000000048
    [20 
    [2025-04-14 10:45:37.387] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA
    [2025-04-14 10:45:37.388] ------------[ cut here ]------------
    [2025-04-14 10:45:37.388] Failed to get suitable pool for 4e230000.dma-controller
    [2025-04-14 10:45:37.388] ------------[ cut here ]------------
    [2025-04-14 10:45:37.388] WARNING: CPU: 0 PID: 8 at kernel/dma/pool.c:279 dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.388] Failed to get suitable pool for 4e230000.dma-controller
    [2025-04-14 10:45:37.430] Modules linked in: ox01g10 max96701 pvrsrvkm rti_wdt sa2ul sha256_generic wave5 libsha256 authenc v44
    [2025-04-14 10:45:37.430] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:37.430] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:37.431] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:37.431] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:37.431] pc : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.431] lr : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.431] sp : ffff800080003b60
    [2025-04-14 10:45:37.473] x29: ffff800080003b60 x28: ffff800080003be0 x27: ffff800080a59000
    [2025-04-14 10:45:37.473] x26: ffff8000800b3c1c x25: ffff800080d80000 x24: fffffc0000000000
    [2025-04-14 10:45:37.474] x23: ffff800080a59440 x22: 0000000000001000 x21: ffff0000002d3c10
    [2025-04-14 10:45:37.474] x20: 0000000000000000 x19: ffff00000018fe40 x18: ffffffffffff89e8
    [2025-04-14 10:45:37.474] x17: 2072656666756220 x16: 7478656e20656874 x15: 0000000000000048
    [2025-04-14 10:45:37.474] x14: 0000000000000000 x13: 72656c6c6f72746e x12: 6f632d616d642e30
    [2025-04-14 10:45:37.475] x11: 3030303332653420 x10: 726f66206c6f6f70 x9 : 20726f66206c6f6f
    [2025-04-14 10:45:37.475] x8 : 7020656c62617469 x7 : 757320746567206f x6 : 742064656c696146
    [2025-04-14 10:45:37.516] x5 : ffff00003fd96a08 x4 : 0000000000000000 x3 : 0000000000000027
    [2025-04-14 10:45:37.516] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000000fd940
    [2025-04-14 10:45:37.517] Call trace:
    [2025-04-14 10:45:37.517]  dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.517]  dma_direct_alloc+0x1c0/0x328
    [2025-04-14 10:45:37.517]  dma_alloc_attrs+0x88/0xfc
    [2025-04-14 10:45:37.517]  udma_alloc_tr_desc+0x94/0x18c
    [2025-04-14 10:45:37.517]  udma_prep_slave_sg+0xd4/0xa90
    [2025-04-14 10:45:37.517]  ti_csi2rx_start_dma+0x98/0x10c
    [2025-04-14 10:45:37.518]  ti_csi2rx_dma_submit_pending+0x7c/0xe8
    [2025-04-14 10:45:37.518]  ti_csi2rx_dma_callback+0x8c/0xd0
    [2025-04-14 10:45:37.518]  udma_vchan_complete+0x218/0x2bc
    [2025-04-14 10:45:37.560]  tasklet_action_common.isra.0+0xf8/0x11c
    [2025-04-14 10:45:37.560]  tasklet_action+0x24/0x30
    [2025-04-14 10:45:37.560]  __do_softirq+0x100/0x26c
    [2025-04-14 10:45:37.560]  ____do_softirq+0x10/0x1c
    [2025-04-14 10:45:37.560]  call_on_irq_stack+0x24/0x4c
    [2025-04-14 10:45:37.560]  do_softirq_own_stack+0x1c/0x28
    [2025-04-14 10:45:37.560]  irq_exit_rcu+0xc0/0xdc
    [2025-04-14 10:45:37.560]  el1_interrupt+0x38/0x68
    [2025-04-14 10:45:37.560]  el1h_64_irq_handler+0x18/0x24
    [2025-04-14 10:45:37.561]  el1h_64_irq+0x64/0x68
    [2025-04-14 10:45:37.561]  _raw_spin_unlock_irqrestore+0x8/0x44
    [2025-04-14 10:45:37.561]  drain_pages_zone+0x5c/0x74
    [2025-04-14 10:45:37.561]  __drain_all_pages+0x188/0x234
    [2025-04-14 10:45:37.561]  alloc_contig_range+0x138/0x288
    [2025-04-14 10:45:37.561]  cma_alloc+0x118/0x324
    [2025-04-14 10:45:37.561]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:37.561]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:37.603]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:37.603]  process_one_work+0x138/0x248
    [2025-04-14 10:45:37.603]  worker_thread+0x320/0x438
    [2025-04-14 10:45:37.603]  kthread+0x110/0x114
    [2025-04-14 10:45:37.604]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:37.604] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:37.604] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA
    [2025-04-14 10:45:37.604] ------------[ cut here ]------------
    [2025-04-14 10:45:37.604] WARNING: CPU: 0 PID: 8 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:762 ti_csi2rx_dma_ca0
    [2025-04-14 10:45:37.605] Modules linked in: ox01g10 max96701 pvrsrvkm rti_wdt sa2ul sha256_generic wave5 libsha256 authenc v44
    [2025-04-14 10:45:37.646] WARNING: CPU: 1 PID: 1035 at kernel/dma/pool.c:279 dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.647] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:37.647] Modules linked in:
    [2025-04-14 10:45:37.647] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:37.647]  ox01g10
    [2025-04-14 10:45:37.647] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:37.647]  max96701
    [2025-04-14 10:45:37.647] 
    [2025-04-14 10:45:37.647]  pvrsrvkm
    [2025-04-14 10:45:37.647] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:37.648]  rti_wdt
    [2025-04-14 10:45:37.648] pc : ti_csi2rx_dma_callback+0xc8/0xd0
    [2025-04-14 10:45:37.648]  sa2ul
    [2025-04-14 10:45:37.648] lr : ti_csi2rx_dma_callback+0x4c/0xd0
    [2025-04-14 10:45:37.689]  sha256_generic
    [2025-04-14 10:45:37.689] sp : ffff800080003e30
    [2025-04-14 10:45:37.689]  wave5
    [2025-04-14 10:45:37.689] x29: ffff800080003e30
    [2025-04-14 10:45:37.689]  libsha256
    [2025-04-14 10:45:37.689]  x28: 0000000000000102
    [2025-04-14 10:45:37.690]  authenc
    [2025-04-14 10:45:37.690]  x27: 0000000000000030
    [2025-04-14 10:45:37.690]  v4l2_mem2mem
    [2025-04-14 10:45:37.690] 
    [2025-04-14 10:45:37.690]  mcrc64
    [2025-04-14 10:45:37.690] x26: ffff800080c650d0
    [2025-04-14 10:45:37.690]  max96755r
    [2025-04-14 10:45:37.690]  x25: 0000000000000003
    [2025-04-14 10:45:37.690]  max96724
    [2025-04-14 10:45:37.691]  x24: ffff000001241e10
    [2025-04-14 10:45:37.691] 
    [2025-04-14 10:45:37.691] 
    [2025-04-14 10:45:37.691] CPU: 1 PID: 1035 Comm: avmapp Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:37.691] x23: ffff000001241de8
    [2025-04-14 10:45:37.691] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:37.691]  x22: 0000000000000000
    [2025-04-14 10:45:37.691] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:37.732]  x21: ffff000000fee400
    [2025-04-14 10:45:37.732] pc : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.732] 
    [2025-04-14 10:45:37.732] lr : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.733] x20: ffff000000fee000
    [2025-04-14 10:45:37.733] sp : ffff800081abb7e0
    [2025-04-14 10:45:37.733]  x19: ffff000001241630
    [2025-04-14 10:45:37.733] x29: ffff800081abb7e0
    [2025-04-14 10:45:37.733]  x18: ffffffffffff95c8
    [2025-04-14 10:45:37.734]  x28: ffff800081abb860
    [2025-04-14 10:45:37.734] 
    [2025-04-14 10:45:37.734]  x27: ffff800080a59000
    [2025-04-14 10:45:37.734] x17: 2072656666756220
    [2025-04-14 10:45:37.734] 
    [2025-04-14 10:45:37.734]  x16: 7478656e20656874
    [2025-04-14 10:45:37.734] x26: ffff8000800b3c1c
    [2025-04-14 10:45:37.734]  x15: 206575657571206f
    [2025-04-14 10:45:37.734]  x25: ffff800080d80000
    [2025-04-14 10:45:37.734] 
    [2025-04-14 10:45:37.734]  x24: fffffc0000000000
    [2025-04-14 10:45:37.734] x14: 742064656c696146
    [2025-04-14 10:45:37.734] 
    [2025-04-14 10:45:37.734]  x13: ffff800080c7bfe8
    [2025-04-14 10:45:37.775] x23: ffff800080a59440
    [2025-04-14 10:45:37.775]  x12: 00000000000016fe
    [2025-04-14 10:45:37.775]  x22: 0000000000001000
    [2025-04-14 10:45:37.775] 
    [2025-04-14 10:45:37.775]  x21: ffff0000002d3c10
    [2025-04-14 10:45:37.775] x11: 00000000000007aa
    [2025-04-14 10:45:37.775] 
    [2025-04-14 10:45:37.776]  x10: ffff800080cd3fe8
    [2025-04-14 10:45:37.776] x20: 0000000000000000
    [2025-04-14 10:45:37.776]  x9 : ffff800080c7bfe8
    [2025-04-14 10:45:37.776]  x19: ffff00000018fe40
    [2025-04-14 10:45:37.776] 
    [2025-04-14 10:45:37.776]  x18: 0000000000000000
    [2025-04-14 10:45:37.776] x8 : 00000000ffffefff
    [2025-04-14 10:45:37.776] 
    [2025-04-14 10:45:37.776]  x7 : ffff800080cd3fe8
    [2025-04-14 10:45:37.776] x17: 0000000000000000
    [2025-04-14 10:45:37.777]  x6 : 0000000119659d94
    [2025-04-14 10:45:37.777]  x16: 0000000000000000
    [2025-04-14 10:45:37.777] 
    [2025-04-14 10:45:37.777]  x15: 0000027f4699ec48
    [2025-04-14 10:45:37.777] x5 : 03ffffffffffffff
    [2025-04-14 10:45:37.777] 
    [2025-04-14 10:45:37.777]  x4 : 0000000000000000
    [2025-04-14 10:45:37.777] x14: 0009fffa4652d542
    [2025-04-14 10:45:37.777]  x3 : 0000000000000001
    [2025-04-14 10:45:37.777]  x13: 0000000000000006
    [2025-04-14 10:45:37.818] 
    [2025-04-14 10:45:37.819]  x12: 00000000e0ccdeeb
    [2025-04-14 10:45:37.819] x2 : 0000000000000000
    [2025-04-14 10:45:37.819] 
    [2025-04-14 10:45:37.819]  x1 : 0000000000000000
    [2025-04-14 10:45:37.819] x11: 0000000000000197
    [2025-04-14 10:45:37.819]  x0 : ffff0000012163a8
    [2025-04-14 10:45:37.819]  x10: 0000000000000970
    [2025-04-14 10:45:37.819] 
    [2025-04-14 10:45:37.819]  x9 : ffff800081abb650
    [2025-04-14 10:45:37.819] Call trace:
    [2025-04-14 10:45:37.819] 
    [2025-04-14 10:45:37.819]  ti_csi2rx_dma_callback+0xc8/0xd0
    [2025-04-14 10:45:37.819] x8 : ffff000004b5a350
    [2025-04-14 10:45:37.820]  udma_vchan_complete+0x218/0x2bc
    [2025-04-14 10:45:37.820]  x7 : 000000000000b42b
    [2025-04-14 10:45:37.820]  tasklet_action_common.isra.0+0xf8/0x11c
    [2025-04-14 10:45:37.820]  x6 : 000000000000b6b2
    [2025-04-14 10:45:37.820]  tasklet_action+0x24/0x30
    [2025-04-14 10:45:37.820] 
    [2025-04-14 10:45:37.820]  __do_softirq+0x100/0x26c
    [2025-04-14 10:45:37.820] x5 : 00000004c4c0d000
    [2025-04-14 10:45:37.820]  ____do_softirq+0x10/0x1c
    [2025-04-14 10:45:37.820]  x4 : 0000000000000001
    [2025-04-14 10:45:37.862]  call_on_irq_stack+0x24/0x4c
    [2025-04-14 10:45:37.862]  x3 : 000000000000000c
    [2025-04-14 10:45:37.862]  do_softirq_own_stack+0x1c/0x28
    [2025-04-14 10:45:37.862] 
    [2025-04-14 10:45:37.862]  irq_exit_rcu+0xc0/0xdc
    [2025-04-14 10:45:37.862] x2 : 0000000000000000
    [2025-04-14 10:45:37.862]  el1_interrupt+0x38/0x68
    [2025-04-14 10:45:37.862]  x1 : 0000000000000000
    [2025-04-14 10:45:37.862]  el1h_64_irq_handler+0x18/0x24
    [2025-04-14 10:45:37.862]  x0 : ffff000004b59980
    [2025-04-14 10:45:37.863]  el1h_64_irq+0x64/0x68
    [2025-04-14 10:45:37.863] 
    [2025-04-14 10:45:37.863]  _raw_spin_unlock_irqrestore+0x8/0x44
    [2025-04-14 10:45:37.863] Call trace:
    [2025-04-14 10:45:37.863]  drain_pages_zone+0x5c/0x74
    [2025-04-14 10:45:37.863]  dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.864]  __drain_all_pages+0x188/0x234
    [2025-04-14 10:45:37.864]  dma_direct_alloc+0x1c0/0x328
    [2025-04-14 10:45:37.864]  alloc_contig_range+0x138/0x288
    [2025-04-14 10:45:37.904]  dma_alloc_attrs+0x88/0xfc
    [2025-04-14 10:45:37.904]  cma_alloc+0x118/0x324
    [2025-04-14 10:45:37.905]  udma_alloc_tr_desc+0x94/0x18c
    [2025-04-14 10:45:37.905]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:37.905]  udma_prep_slave_sg+0xd4/0xa90
    [2025-04-14 10:45:37.905]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:37.905]  ti_csi2rx_drain_dma+0xac/0x16c
    [2025-04-14 10:45:37.905]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:37.906]  ti_csi2rx_buffer_queue+0x98/0x170
    [2025-04-14 10:45:37.906]  process_one_work+0x138/0x248
    [2025-04-14 10:45:37.906]  __enqueue_in_driver+0x3c/0x74
    [2025-04-14 10:45:37.906]  worker_thread+0x320/0x438
    [2025-04-14 10:45:37.906]  vb2_core_qbuf+0x498/0x5a8
    [2025-04-14 10:45:37.907]  kthread+0x110/0x114
    [2025-04-14 10:45:37.907]  vb2_qbuf+0x9c/0xf8
    [2025-04-14 10:45:37.907]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:37.907]  vb2_ioctl_qbuf+0x60/0x74
    [2025-04-14 10:45:37.948] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:37.948]  v4l_qbuf+0x48/0x5c
    [2025-04-14 10:45:37.948] ------------[ cut here ]------------
    [2025-04-14 10:45:37.948]  __video_do_ioctl+0x330/0x3fc
    [2025-04-14 10:45:37.948] Failed to get suitable pool for 4e230000.dma-controller
    [2025-04-14 10:45:37.948]  video_usercopy+0x230/0x550
    [2025-04-14 10:45:37.948] WARNING: CPU: 0 PID: 8 at kernel/dma/pool.c:279 dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.949]  video_ioctl2+0x18/0x24
    [2025-04-14 10:45:37.949] Modules linked in:
    [2025-04-14 10:45:37.949]  v4l2_ioctl+0x40/0x60
    [2025-04-14 10:45:37.949]  ox01g10
    [2025-04-14 10:45:37.949]  __arm64_sys_ioctl+0x124/0xc5c
    [2025-04-14 10:45:37.950]  max96701
    [2025-04-14 10:45:37.950]  invoke_syscall.constprop.0+0x50/0xec
    [2025-04-14 10:45:37.950]  pvrsrvkm
    [2025-04-14 10:45:37.950]  do_el0_svc+0x40/0xc4
    [2025-04-14 10:45:37.991]  rti_wdt
    [2025-04-14 10:45:37.991]  el0_svc+0x2c/0x84
    [2025-04-14 10:45:37.991]  sa2ul
    [2025-04-14 10:45:37.991]  el0t_64_sync_handler+0x120/0x12c
    [2025-04-14 10:45:37.991]  sha256_generic
    [2025-04-14 10:45:37.991]  el0t_64_sync+0x190/0x194
    [2025-04-14 10:45:37.991]  wave5
    [2025-04-14 10:45:37.991] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:37.991]  libsha256 authenc v4l2_mem2mem mcrc64 max96755r max96724
    [2025-04-14 10:45:37.991] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:37.992] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:37.992] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:37.992] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:37.992] pc : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:37.992] lr : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:38.034] sp : ffff800080003b60
    [2025-04-14 10:45:38.034] x29: ffff800080003b60 x28: ffff800080003be0 x27: ffff800080a59000
    [2025-04-14 10:45:38.034] x26: ffff8000800b3c1c x25: ffff800080d80000 x24: fffffc0000000000
    [2025-04-14 10:45:38.034] x23: ffff800080a59440 x22: 0000000000001000 x21: ffff0000002d3c10
    [2025-04-14 10:45:38.035] x20: 0000000000000000 x19: ffff00000018fe40 x18: ffffffffffffacc8
    [2025-04-14 10:45:38.035] x17: 2072656666756220 x16: 7478656e20656874 x15: 0000000000000048
    [2025-04-14 10:45:38.035] x14: 0000000000000000 x13: 63663378302f3033 x12: 3378302b6c74636f
    [2025-04-14 10:45:38.035] x11: 0000000000000843 x10: ffff800080ce0630 x9 : ffff800080c7bfe8
    [2025-04-14 10:45:38.077] x8 : 7f7f7f7f7f7f7f7f x7 : 74636f695f6f645f x6 : 6f656469765f5f20
    [2025-04-14 10:45:38.077] x5 : ffff00003fd96a08 x4 : 0000000000000000 x3 : 0000000000000027
    [2025-04-14 10:45:38.077] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000000fd940
    [2025-04-14 10:45:38.077] Call trace:
    [2025-04-14 10:45:38.077]  dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:38.078]  dma_direct_alloc+0x1c0/0x328
    [2025-04-14 10:45:38.078]  dma_alloc_attrs+0x88/0xfc
    [2025-04-14 10:45:38.078]  udma_alloc_tr_desc+0x94/0x18c
    [2025-04-14 10:45:38.078]  udma_prep_slave_sg+0xd4/0xa90
    [2025-04-14 10:45:38.078]  ti_csi2rx_start_dma+0x98/0x10c
    [2025-04-14 10:45:38.078]  ti_csi2rx_dma_submit_pending+0x7c/0xe8
    [2025-04-14 10:45:38.078]  ti_csi2rx_dma_callback+0x8c/0xd0
    [2025-04-14 10:45:38.120]  udma_vchan_complete+0x218/0x2bc
    [2025-04-14 10:45:38.120]  tasklet_action_common.isra.0+0xf8/0x11c
    [2025-04-14 10:45:38.120]  tasklet_action+0x24/0x30
    [2025-04-14 10:45:38.120]  __do_softirq+0x100/0x26c
    [2025-04-14 10:45:38.121]  ____do_softirq+0x10/0x1c
    [2025-04-14 10:45:38.121]  call_on_irq_stack+0x24/0x4c
    [2025-04-14 10:45:38.121]  do_softirq_own_stack+0x1c/0x28
    [2025-04-14 10:45:38.121]  irq_exit_rcu+0xc0/0xdc
    [2025-04-14 10:45:38.121]  el1_interrupt+0x38/0x68
    [2025-04-14 10:45:38.121]  el1h_64_irq_handler+0x18/0x24
    [2025-04-14 10:45:38.121]  el1h_64_irq+0x64/0x68
    [2025-04-14 10:45:38.121]  _raw_spin_unlock_irqrestore+0x8/0x44
    [2025-04-14 10:45:38.121]  drain_pages_zone+0x5c/0x74
    [2025-04-14 10:45:38.122]  __drain_all_pages+0x188/0x234
    [2025-04-14 10:45:38.122]  alloc_contig_range+0x138/0x288
    [2025-04-14 10:45:38.122]  cma_alloc+0x118/0x324
    [2025-04-14 10:45:38.164]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:38.164]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:38.164]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:38.164]  process_one_work+0x138/0x248
    [2025-04-14 10:45:38.164]  worker_thread+0x320/0x438
    [2025-04-14 10:45:38.164]  kthread+0x110/0x114
    [2025-04-14 10:45:38.164]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:38.164] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:38.164] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA
    [2025-04-14 10:45:38.165] ------------[ cut here ]------------
    [2025-04-14 10:45:38.165] WARNING: CPU: 0 PID: 8 at drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c:762 ti_csi2rx_dma_ca0
    [2025-04-14 10:45:38.165] Modules linked in: ox01g10 max96701 pvrsrvkm rti_wdt sa2ul sha256_generic wave5 libsha256 authenc v44
    [2025-04-14 10:45:38.207] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:38.207] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:38.207] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:38.208] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:38.208] pc : ti_csi2rx_dma_callback+0xc8/0xd0
    [2025-04-14 10:45:38.208] lr : ti_csi2rx_dma_callback+0x4c/0xd0
    [2025-04-14 10:45:38.208] sp : ffff800080003e30
    [2025-04-14 10:45:38.208] x29: ffff800080003e30 x28: 0000000000000102 x27: 0000000000000030
    [2025-04-14 10:45:38.250] x26: ffff0000001b4370 x25: 0000000000000003 x24: ffff000001241e10
    [2025-04-14 10:45:38.250] x23: ffff000001241de8 x22: 0000000000000000 x21: ffff000000fee400
    [2025-04-14 10:45:38.251] x20: ffff000000fee000 x19: ffff000001241630 x18: ffffffffffffba40
    [2025-04-14 10:45:38.251] x17: 2072656666756220 x16: 7478656e20656874 x15: 206575657571206f
    [2025-04-14 10:45:38.251] x14: 742064656c696146 x13: ffff800080c7bfe8 x12: 00000000000019a4
    [2025-04-14 10:45:38.251] x11: 000000000000088c x10: ffff800080cd3fe8 x9 : ffff800080c7bfe8
    [2025-04-14 10:45:38.252] x8 : 00000000ffffefff x7 : ffff800080cd3fe8 x6 : 00000001201ece94
    [2025-04-14 10:45:38.252] x5 : 03ffffffffffffff x4 : 0000000000000000 x3 : 0000000000000001
    [2025-04-14 10:45:38.293] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000034a2ba8
    [2025-04-14 10:45:38.293] Call trace:
    [2025-04-14 10:45:38.293]  ti_csi2rx_dma_callback+0xc8/0xd0
    [2025-04-14 10:45:38.293]  udma_vchan_complete+0x218/0x2bc
    [2025-04-14 10:45:38.293]  tasklet_action_common.isra.0+0xf8/0x11c
    [2025-04-14 10:45:38.293]  tasklet_action+0x24/0x30
    [2025-04-14 10:45:38.293]  __do_softirq+0x100/0x26c
    [2025-04-14 10:45:38.293]  ____do_softirq+0x10/0x1c
    [2025-04-14 10:45:38.293]  call_on_irq_stack+0x24/0x4c
    [2025-04-14 10:45:38.294]  do_softirq_own_stack+0x1c/0x28
    [2025-04-14 10:45:38.294]  irq_exit_rcu+0xc0/0xdc
    [2025-04-14 10:45:38.294]  el1_interrupt+0x38/0x68
    [2025-04-14 10:45:38.294]  el1h_64_irq_handler+0x18/0x24
    [2025-04-14 10:45:38.294]  el1h_64_irq+0x64/0x68
    [2025-04-14 10:45:38.336]  _raw_spin_unlock_irqrestore+0x8/0x44
    [2025-04-14 10:45:38.336]  drain_pages_zone+0x5c/0x74
    [2025-04-14 10:45:38.336]  __drain_all_pages+0x188/0x234
    [2025-04-14 10:45:38.336]  alloc_contig_range+0x138/0x288
    [2025-04-14 10:45:38.337]  cma_alloc+0x118/0x324
    [2025-04-14 10:45:38.337]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:38.337]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:38.337]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:38.337]  process_one_work+0x138/0x248
    [2025-04-14 10:45:38.337]  worker_thread+0x320/0x438
    [2025-04-14 10:45:38.337]  kthread+0x110/0x114
    [2025-04-14 10:45:38.337]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:38.337] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:38.338] ------------[ cut here ]------------
    [2025-04-14 10:45:38.338] Failed to get suitable pool for 4e230000.dma-controller
    [2025-04-14 10:45:38.379] WARNING: CPU: 0 PID: 8 at kernel/dma/pool.c:279 dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:38.379] Modules linked in: ox01g10 max96701 pvrsrvkm rti_wdt sa2ul sha256_generic wave5 libsha256 authenc v44
    [2025-04-14 10:45:38.380] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:38.380] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:38.380] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:38.380] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:38.380] pc : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:38.380] lr : dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:38.422] sp : ffff800080003b60
    [2025-04-14 10:45:38.422] x29: ffff800080003b60 x28: ffff800080003be0 x27: ffff800080a59000
    [2025-04-14 10:45:38.422] x26: ffff8000800b3c1c x25: ffff800080d80000 x24: fffffc0000000000
    [2025-04-14 10:45:38.423] x23: ffff800080a59440 x22: 0000000000001000 x21: ffff0000002d3c10
    [2025-04-14 10:45:38.423] x20: 0000000000000000 x19: ffff00000018fe40 x18: ffffffffffffc500
    [2025-04-14 10:45:38.423] x17: 2072656666756220 x16: 7478656e20656874 x15: 0000000000000048
    [2025-04-14 10:45:38.424] x14: 0000000000000000 x13: ffff800080c7bfe8 x12: 0000000000001a34
    [2025-04-14 10:45:38.424] x11: 00000000000008bc x10: ffff800080cd3fe8 x9 : ffff800080c7bfe8
    [2025-04-14 10:45:38.465] x8 : 00000000ffffefff x7 : ffff800080cd3fe8 x6 : 80000000fffff000
    [2025-04-14 10:45:38.465] x5 : ffff00003fd96a08 x4 : 0000000000000000 x3 : 0000000000000027
    [2025-04-14 10:45:38.466] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000000fd940
    [2025-04-14 10:45:38.466] Call trace:
    [2025-04-14 10:45:38.466]  dma_alloc_from_pool+0x10c/0x1a4
    [2025-04-14 10:45:38.466]  dma_direct_alloc+0x1c0/0x328
    [2025-04-14 10:45:38.466]  dma_alloc_attrs+0x88/0xfc
    [2025-04-14 10:45:38.466]  udma_alloc_tr_desc+0x94/0x18c
    [2025-04-14 10:45:38.466]  udma_prep_slave_sg+0xd4/0xa90
    [2025-04-14 10:45:38.467]  ti_csi2rx_start_dma+0x98/0x10c
    [2025-04-14 10:45:38.467]  ti_csi2rx_dma_submit_pending+0x7c/0xe8
    [2025-04-14 10:45:38.467]  ti_csi2rx_dma_callback+0x8c/0xd0
    [2025-04-14 10:45:38.509]  udma_vchan_complete+0x218/0x2bc
    [2025-04-14 10:45:38.509]  tasklet_action_common.isra.0+0xf8/0x11c
    [2025-04-14 10:45:38.509]  tasklet_action+0x24/0x30
    [2025-04-14 10:45:38.509]  __do_softirq+0x100/0x26c
    [2025-04-14 10:45:38.509]  ____do_softirq+0x10/0x1c
    [2025-04-14 10:45:38.509]  call_on_irq_stack+0x24/0x4c
    [2025-04-14 10:45:38.509]  do_softirq_own_stack+0x1c/0x28
    [2025-04-14 10:45:38.509]  irq_exit_rcu+0xc0/0xdc
    [2025-04-14 10:45:38.509]  el1_interrupt+0x38/0x68
    [2025-04-14 10:45:38.509]  el1h_64_irq_handler+0x18/0x24
    [2025-04-14 10:45:38.509]  el1h_64_irq+0x64/0x68
    [2025-04-14 10:45:38.510]  _raw_spin_unlock_irqrestore+0x8/0x44
    [2025-04-14 10:45:38.510]  drain_pages_zone+0x5c/0x74
    [2025-04-14 10:45:38.510]  __drain_all_pages+0x188/0x234
    [2025-04-14 10:45:38.510]  alloc_contig_range+0x138/0x288
    [2025-04-14 10:45:38.510]  cma_alloc+0x118/0x324
    [2025-04-14 10:45:38.510]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:38.552]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:38.552]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:38.552]  process_one_work+0x138/0x248
    [2025-04-14 10:45:38.552]  worker_thread+0x320/0x438
    [2025-04-14 10:45:38.553]  kthread+0x110/0x114
    [2025-04-14 10:45:38.553]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:38.553] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:38.553] j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA
    [2025-04-14 10:45:38.553] ------------[ cut here ]------------
    [2025-04-14 10:45:38.553] WARNING: CPU: 0 PID: 8 at drivers/media/common/videobuf2/videobuf2-core.c:1049 vb2_buffer_done+0x1f80
    [2025-04-14 10:45:38.554] Modules linked in: ox01g10 max96701 pvrsrvkm rti_wdt sa2ul sha256_generic wave5 libsha256 authenc v44
    [2025-04-14 10:45:38.595] CPU: 0 PID: 8 Comm: kworker/0:0 Tainted: G        W          6.6.32+ #1
    [2025-04-14 10:45:38.596] Hardware name: Texas Instruments AM62P5 SK (DT)
    [2025-04-14 10:45:38.596] Workqueue: events atomic_pool_work_fn
    [2025-04-14 10:45:38.596] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [2025-04-14 10:45:38.596] pc : vb2_buffer_done+0x1f8/0x240
    [2025-04-14 10:45:38.596] lr : ti_csi2rx_dma_submit_pending+0xa4/0xe8
    [2025-04-14 10:45:38.597] sp : ffff800080003da0
    [2025-04-14 10:45:38.597] x29: ffff800080003da0 x28: 0000000000000102 x27: 0000000000000030
    [2025-04-14 10:45:38.638] x26: ffff000000fee000 x25: ffff000001241e10 x24: ffff000001241de8
    [2025-04-14 10:45:38.638] x23: ffff000001241df8 x22: ffff000001241aa0 x21: ffff000001241e30
    [2025-04-14 10:45:38.639] x20: 00000000fffffffb x19: ffff000000fee000 x18: ffffffffffffd068
    [2025-04-14 10:45:38.639] x17: 2072656666756220 x16: 7478656e20656874 x15: 206575657571206f
    [2025-04-14 10:45:38.639] x14: 742064656c696146 x13: ffff800080c7bfe8 x12: 0000000000001ad3
    [2025-04-14 10:45:38.639] x11: 00000000000008f1 x10: ffff800080cd3fe8 x9 : ffff800080c7bfe8
    [2025-04-14 10:45:38.640] x8 : 00000000ffffefff x7 : ffff800080cd3fe8 x6 : 80000000fffff000
    [2025-04-14 10:45:38.640] x5 : ffff00003fd96a08 x4 : 0000000000000000 x3 : 0000000000000000
    [2025-04-14 10:45:38.681] x2 : 0000000000000000 x1 : 0000000000000006 x0 : 0000000000000005
    [2025-04-14 10:45:38.681] Call trace:
    [2025-04-14 10:45:38.681]  vb2_buffer_done+0x1f8/0x240
    [2025-04-14 10:45:38.682]  ti_csi2rx_dma_submit_pending+0xa4/0xe8
    [2025-04-14 10:45:38.682]  ti_csi2rx_dma_callback+0x8c/0xd0
    [2025-04-14 10:45:38.682]  udma_vchan_complete+0x218/0x2bc
    [2025-04-14 10:45:38.682]  tasklet_action_common.isra.0+0xf8/0x11c
    [2025-04-14 10:45:38.682]  tasklet_action+0x24/0x30
    [2025-04-14 10:45:38.682]  __do_softirq+0x100/0x26c
    [2025-04-14 10:45:38.682]  ____do_softirq+0x10/0x1c
    [2025-04-14 10:45:38.683]  call_on_irq_stack+0x24/0x4c
    [2025-04-14 10:45:38.683]  do_softirq_own_stack+0x1c/0x28
    [2025-04-14 10:45:38.683]  irq_exit_rcu+0xc0/0xdc
    [2025-04-14 10:45:38.683]  el1_interrupt+0x38/0x68
    [2025-04-14 10:45:38.725]  el1h_64_irq_handler+0x18/0x24
    [2025-04-14 10:45:38.725]  el1h_64_irq+0x64/0x68
    [2025-04-14 10:45:38.725]  _raw_spin_unlock_irqrestore+0x8/0x44
    [2025-04-14 10:45:38.725]  drain_pages_zone+0x5c/0x74
    [2025-04-14 10:45:38.726]  __drain_all_pages+0x188/0x234
    [2025-04-14 10:45:38.726]  alloc_contig_range+0x138/0x288
    [2025-04-14 10:45:38.726]  cma_alloc+0x118/0x324
    [2025-04-14 10:45:38.726]  dma_alloc_from_contiguous+0x44/0x50
    [2025-04-14 10:45:38.726]  atomic_pool_expand+0x94/0x268
    [2025-04-14 10:45:38.726]  atomic_pool_work_fn+0xd4/0xf4
    [2025-04-14 10:45:38.726]  process_one_work+0x138/0x248
    [2025-04-14 10:45:38.726]  worker_thread+0x320/0x438
    [2025-04-14 10:45:38.726]  kthread+0x110/0x114
    [2025-04-14 10:45:38.726]  ret_from_fork+0x10/0x20
    [2025-04-14 10:45:38.726] ---[ end trace 0000000000000000 ]---
    [2025-04-14 10:45:38.726] j721e-csi2rx 30102000.ticsi2rx: Failed to drain DMA. Next frame might be bogus
    [2025-04-14 10:45:40.756] sched: RT throttling activated
    

  • this can be occured in sdk evm-10.01.10.04 and  evm-11.00.09.04. 

  • Hell Linyang,

    Is this on TI's AM62P EVM or your custom board?

    I didn't see much additional information from your latest log, but the error "j721e-csi2rx 30102000.ticsi2rx: Failed to queue the next buffer for DMA" was possibly due to out-of-memory. Were you able to add the debug info I asked earlier?

    Thank you.

    Jianzhong