AGX has some issues receiving MIPI signals

Hello NVIDIA Developers,
When I use AGX to receive MIPI signals, the same signals and instructions can sometimes be received and saved normally. Sometimes, after successful reception, only a portion of the data is saved, and sometimes, the data cannot be accepted, which can cause the system to freeze.
mipi_frame_right.txt (48.8 MB)
dmesg_wrong.txt (7.0 KB)
mipi_frame_partial.txt (14.4 KB)
I want to know what problem caused this issue.
Any help or feedback would be greatly apprecited.

Thanks!

hello Xwln,

please give it a try to boost those VI/CSI/ISP clocks as following commands.

sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

Thanks for your replying!
I have tried it, and the issues as follows:

[  324.598142] [RCE] vi5_hwinit: firmware CL2018101701 protocol version 2.2
[  325.658613] L1SS : srcID 2 destID 1 cmdID 9 ClassID 1 is_resp=0
[  325.658627] L1SS : cmd_resp_l1_user_rcv_FuSa_state_notification FuSa State = 2
[  328.266732] tegra194-vi5 15c10000.vi: no reply from camera processor
[  328.266911] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms
[  328.267048] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[  328.269565] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[  328.269734] Mem abort info:
[  328.269788]   ESR = 0x96000005
[  328.269867]   Exception class = DABT (current EL), IL = 32 bits
[  328.269972]   SET = 0, FnV = 0
[  328.270029]   EA = 0, S1PTW = 0
[  328.270087] Data abort info:
[  328.270140]   ISV = 0, ISS = 0x00000005
[  328.270207]   CM = 0, WnR = 0
[  328.270269] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc6740cd000
[  328.270405] [0000000000000010] *pgd=0000000000000000, *pud=0000000000000000
[  328.270553] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[  328.270653] Modules linked in: bnep fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack br_netfilter zram overlay bluedroid_pm userspace_alert nvgpu binfmt_misc ip_tables x_tables
[  328.282450] CPU: 6 PID: 9654 Comm: vi-output, ov56 Not tainted 4.9.253 #3
[  328.289338] Hardware name: Jetson-AGXi (DT)
[  328.293540] task: ffffffc6cc820000 task.stack: ffffffc6bad8c000
[  328.299501] PC is at _raw_write_lock+0x30/0x58
[  328.303524] LR is at destroy_buffer_table+0x40/0xd8
[  328.308525] pc : [<ffffff8008f6db50>] lr : [<ffffff8008b4e6e8>] pstate: 20c00045
[  328.315775] sp : ffffffc6bad8fc70
[  328.319270] x29: ffffffc6bad8fc70 x28: 0000000000000000 
[  328.324444] x27: 0000000000000000 x26: 0000000000000000 
[  328.329959] x25: 0000000000000010 x24: 0000000000000098 
[  328.335981] x23: 0000000000000018 x22: ffffff8009087830 
[  328.340896] x21: 0000000000000000 x20: ffffffc684464980 
[  328.346315] x19: 0000000000000010 x18: 0000000000006ce8 
[  328.352003] x17: 0000000000000002 x16: 0000000000000003 
[  328.357511] x15: 0000000000000034 x14: 0000000000000000 
[  328.363536] x13: 0000000000000000 x12: 0000000000000400 
[  328.368976] x11: 0000000000000400 x10: 0000000000000000 
[  328.374661] x9 : ffffffc6bad8fa80 x8 : 0000000000000000 
[  328.380437] x7 : ffffffc62055d4c0 x6 : ffffffc602137b81 
[  328.385951] x5 : ffffff800852d904 x4 : ffffffbf18084dd0 
[  328.391290] x3 : 0000000000000000 x2 : ffffffc602137b80 
[  328.396876] x1 : 0000000000000000 x0 : 0000000080000000 

[  328.403620] Process vi-output, ov56 (pid: 9654, stack limit = 0xffffffc6bad8c000)
[  328.410532] Call trace:
[  328.413159] [<ffffff8008f6db50>] _raw_write_lock+0x30/0x58
[  328.418232] [<ffffff8008b4e6e8>] destroy_buffer_table+0x40/0xd8
[  328.423833] [<ffffff8008b4098c>] vi_capture_shutdown+0xd4/0x130
[  328.429172] [<ffffff8008b40fe4>] vi_channel_close_ex+0x34/0x88
[  328.434773] [<ffffff8008b424f0>] vi5_channel_error_recover+0x48/0x1c8
[  328.440723] [<ffffff8008b375c0>] tegra_channel_error_recover+0x58/0x90
[  328.446848] [<ffffff8008b42db0>] tegra_channel_kthread_capture_dequeue+0xf8/0x1c0
[  328.453763] [<ffffff80080db09c>] kthread+0xec/0xf0
[  328.458573] [<ffffff80080838a0>] ret_from_fork+0x10/0x30
[  328.463908] ---[ end trace 1258ad13be06b2f8 ]---
[  328.481975] note: vi-output, ov56[9654] exited with preempt_count 1
[  328.681869] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  328.682099] Mem abort info:
[  328.682161]   ESR = 0x96000005
[  328.682227]   Exception class = DABT (current EL), IL = 32 bits
[  328.682332]   SET = 0, FnV = 0
[  328.682391]   EA = 0, S1PTW = 0
[  328.682472] Data abort info:
[  328.682526]   ISV = 0, ISS = 0x00000005
[  328.682594]   CM = 0, WnR = 0
[  328.682658] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc602b69000
[  328.683416] [0000000000000000] *pgd=0000000000000000, *pud=0000000000000000
[  328.683573] Internal error: Oops: 96000005 [#2] PREEMPT SMP
[  328.683677] Modules linked in: bnep fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack br_netfilter zram overlay bluedroid_pm userspace_alert nvgpu binfmt_misc ip_tables x_tables
[  328.684405] CPU: 2 PID: 9651 Comm: v4l2-ctl Tainted: G      D         4.9.253 #3
[  328.684857] Hardware name: Jetson-AGXi (DT)
[  328.687587] task: ffffffc634d02a00 task.stack: ffffffc60211c000
[  328.693112] PC is at exit_creds+0x2c/0x78
[  328.697562] LR is at __put_task_struct+0x4c/0x140
[  328.702287] pc : [<ffffff80080de15c>] lr : [<ffffff80080aee9c>] pstate: 60400045
[  328.709288] sp : ffffffc60211fa40
[  328.712784] x29: ffffffc60211fa40 x28: 0000000000000000 
[  328.717958] x27: ffffffc6bad20000 x26: 0000000000000001 
[  328.723470] x25: ffffff800a00e1b0 x24: 0000000000000013 
[  328.729493] x23: 0000000000000000 x22: ffffffc60211fd10 
[  328.734320] x21: ffffffc6cc820030 x20: 000000000000000b 
[  328.739818] x19: ffffffc6cc820000 x18: 0000007f88e24a70 
[  328.745505] x17: 0000007f6205e880 x16: ffffff800814eaf8 
[  328.750856] x15: 00000e813d3368b8 x14: 00086e0968560242 
[  328.756881] x13: 00000000000050c5 x12: 071c71c71c71c71c 
[  328.762398] x11: 000000000000000b x10: 0000000000000a10 
[  328.767920] x9 : ffffffc60211f890 x8 : ffffffc634d03470 
[  328.773943] x7 : fefefeff646c606d x6 : 00000002914cd996 
[  328.779456] x5 : 0000000000000800 x4 : 0000000000000000 
[  328.784793] x3 : 00000000000000d2 x2 : 0000000000000000 
[  328.789883] x1 : 0000000000000000 x0 : 00000000ffffffff 

[  328.796886] Process v4l2-ctl (pid: 9651, stack limit = 0xffffffc60211c000)
[  328.803521] Call trace:
[  328.805633] [<ffffff80080de15c>] exit_creds+0x2c/0x78
[  328.810445] [<ffffff80080aee9c>] __put_task_struct+0x4c/0x140
[  328.816038] [<ffffff80080dbbfc>] kthread_stop+0x1e4/0x1e8
[  328.821116] [<ffffff8008b42708>] vi5_channel_stop_kthreads+0x40/0x58
[  328.826981] [<ffffff8008b427ec>] vi5_channel_stop_streaming+0xcc/0xd0
[  328.833108] [<ffffff8008b3445c>] tegra_channel_stop_streaming+0x34/0x48
[  328.839576] [<ffffff8008b2c774>] __vb2_queue_cancel+0x34/0x188
[  328.845174] [<ffffff8008b2cb24>] vb2_core_streamoff+0x54/0xb8
[  328.850513] [<ffffff8008b3144c>] vb2_streamoff+0x54/0x88
[  328.855589] [<ffffff8008b314d4>] vb2_ioctl_streamoff+0x54/0x60
[  328.861017] [<ffffff8008b0afe4>] v4l_streamoff+0x3c/0x50
[  328.866614] [<ffffff8008b10094>] __video_do_ioctl+0x204/0x2c8
[  328.872212] [<ffffff8008b0fa40>] video_usercopy+0x2a0/0x6a0
[  328.877812] [<ffffff8008b0fe7c>] video_ioctl2+0x3c/0x50
[  328.883065] [<ffffff8008b098e0>] v4l2_ioctl+0x88/0x118
[  328.888228] [<ffffff8008271538>] do_vfs_ioctl+0xb0/0x8d8
[  328.893561] [<ffffff8008271dec>] SyS_ioctl+0x8c/0xa8
[  328.898463] [<ffffff8008083900>] el0_svc_naked+0x34/0x38
[  328.903722] ---[ end trace 1258ad13be06b2f9 ]---

# tracer: nop
#
# entries-in-buffer/entries-written: 14/14   #P:8
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
     kworker/0:0-4     [000] ....   571.807806: rtos_queue_peek_from_isr_failed: tstamp:18624156015 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   571.975843: rtos_queue_peek_from_isr_failed: tstamp:18629156020 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   572.087802: rtos_queue_peek_from_isr_failed: tstamp:18634156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   572.255827: rtos_queue_peek_from_isr_failed: tstamp:18639156020 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   572.423805: rtos_queue_peek_from_isr_failed: tstamp:18644156015 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   572.591809: rtos_queue_peek_from_isr_failed: tstamp:18649156028 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   572.759820: rtos_queue_peek_from_isr_failed: tstamp:18654156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   572.927793: rtos_queue_peek_from_isr_failed: tstamp:18659156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   573.095816: rtos_queue_peek_from_isr_failed: tstamp:18664156018 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   573.207797: rtos_queue_peek_from_isr_failed: tstamp:18669156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   573.375778: rtos_queue_peek_from_isr_failed: tstamp:18674156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   573.543759: rtos_queue_peek_from_isr_failed: tstamp:18679156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   573.711767: rtos_queue_peek_from_isr_failed: tstamp:18684156019 queue:0x0bcbbbb8
     kworker/0:0-4     [000] ....   573.879755: rtos_queue_peek_from_isr_failed: tstamp:18689156015 queue:0x0bcbbbb8

hello Xwln,

there’s an error no reply from camera processor which means VI engine cannot receive camera frames correctly.
according to VI tracing logs… there’s no camera related packets.
is there an intermittent signaling? please double check your MIPI signaling is sending to CSI channel without failures.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.