Frame loss after configuring MIPI for 4-lane transmission

Hi,all,
We are using our own carrier board connected to an AGX Orin 64G module running JP6.2;
We have connected an 8MP + 2MP camera via a MAX9296. When configuring MIPI 2-lane, the 8MP camera works normally, but when both the 8MP and 2MP cameras are enabled simultaneously, the data rate is insufficient, resulting in frame drops;
We considered switching to MIPI 4-lane to accommodate the data transfer requirements of the 800W + 200W cameras. However, after configuring 4-lane MIPI, we found that when the 800W camera was enabled alone, the kernel produced consistent error messages. Furthermore, when testing with different baseboards, the camera sometimes failed to start at all;
The system logs are as follows:

$ v4l2-ctl --stream-mmap --verbose -d /dev/video0
VIDIOC_QUERYCAP: ok
                VIDIOC_REQBUFS returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq:      0 bytesused: 16588800 ts: 267.120971 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      1 bytesused: 16588800 ts: 267.154290 delta: 33.319 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      2 bytesused: 16588800 ts: 267.187623 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      3 bytesused: 16588800 ts: 267.220956 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      4 bytesused: 16588800 ts: 267.254289 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      5 bytesused: 16588800 ts: 267.287622 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      6 bytesused: 16588800 ts: 267.320956 delta: 33.334 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      7 bytesused: 16588800 ts: 267.354289 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      8 bytesused: 16588800 ts: 267.387622 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      9 bytesused: 16588800 ts: 267.420955 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     10 bytesused: 16588800 ts: 267.454288 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     11 bytesused: 16588800 ts: 267.487622 delta: 33.334 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:     12 bytesused: 16588800 ts: 267.520955 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:     13 bytesused: 16588800 ts: 267.554288 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     14 bytesused: 16588800 ts: 267.587621 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     15 bytesused: 16588800 ts: 267.620954 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:     16 bytesused: 16588800 ts: 267.654288 delta: 33.334 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:     17 bytesused: 16588800 ts: 267.687621 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:     18 bytesused: 16588800 ts: 267.720954 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:     19 bytesused: 16588800 ts: 267.754287 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:     20 bytesused: 16588800 ts: 267.787620 delta: 33.333 ms (error, ts-monotonic, ts-src-eof)

dmesg log:
[Jun 1 13:29] ar0233yuv 2-001f: ar0233yuv_set_mode: mode index:0
[  +0.000014] ar0233yuv 2-001f: ar0233yuv_start_streaming: start streaming
[  +0.042656] [RCE] ERROR: camera-ip/nvcsi/nvcsi.c:2015 [nvcsi_stream_set_config] "MIPI clock rate not known. Using 250000 kHz
[  +0.000010] [RCE] "
[  +0.067286] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  +0.033322] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033159] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404

···

[  +0.033196] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033484] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033504] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033170] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033327] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033330] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.033176] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 4194404
[  +0.000194] ar0233yuv 2-001f: ar0233yuv_stop_streaming: stop streaming
[Jun 1 13:31] loop8: detected capacity change from 0 to 87312
[  +0.000343] squashfs: SQUASHFS error: Xattrs in filesystem, these will be ignored
[  +0.000002] unable to read xattr id index table
[  +4.467348] loop9: detected capacity change from 0 to 8

rtcpu log:
nvidia@:~$ sudo -s
[sudo] password for nvidia:
root@:/home/nvidia# echo 1 > /sys/kernel/debug/tracing/tracing_on
root@:/home/nvidia# echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
root@:/home/nvidia# echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
root@:/home/nvidia# echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
root@:/home/nvidia# echo 2 > /sys/kernel/debug/camrtc/log-level
bash: /sys/kernel/debug/camrtc/log-level: No such file or directory
root@:/home/nvidia# echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
root@:/home/nvidia# echo > /sys/kernel/debug/tracing/trace
root@:/home/nvidia# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 146/146   #P:12
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
        v4l2-ctl-5233    [002] .......   242.416791: tegra_channel_open: vi-output, ar0233yuv 2-001f
        v4l2-ctl-5233    [002] .......   242.432655: tegra_channel_set_power: ar0233yuv 2-001f : 0x1
        v4l2-ctl-5233    [002] .......   242.432674: camera_common_s_power: status : 0x1
        v4l2-ctl-5233    [002] .......   242.433024: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-5233    [002] .......   242.433026: csi_s_power: enable : 0x1
        v4l2-ctl-5233    [002] .......   242.433524: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt 13
 vi-output, ar02-5234    [005] .......   242.444287: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5234    [005] .......   242.444302: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5234    [005] .......   242.444305: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5234    [005] .......   242.444307: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
        v4l2-ctl-5233    [003] .......   242.444329: tegra_channel_set_stream: enable : 0x1
        v4l2-ctl-5233    [003] .......   242.448447: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-5233    [003] .......   242.448449: csi_s_stream: enable : 0x1
        v4l2-ctl-5233    [002] .......   242.448786: tegra_channel_set_stream: ar0233yuv 2-001f : 0x1
     kworker/9:6-418     [009] .......   242.491466: rtcpu_string: tstamp:8345099431 id:0x04010000 str:"ERROR: camera-ip/nvcsi/nvcsi.c:2015 [nvcsi_strea"
     kworker/9:6-418     [009] .......   242.491471: rtcpu_string: tstamp:8345099536 id:0x04010000 str:"m_set_config] ""
     kworker/9:6-418     [009] .......   242.491472: rtcpu_string: tstamp:8345099781 id:0x04010000 str:"MIPI clock rate not known. Using 250000 kHz
"
     kworker/9:6-418     [009] .......   242.491483: rtcpu_string: tstamp:8345099926 id:0x04010000 str:""
"
 vi-output, ar02-5235    [002] .......   242.558781: tegra_channel_capture_frame: sof:267.120971808
 vi-output, ar02-5235    [002] .......   242.558783: tegra_channel_capture_frame: eof:267.153010624
 vi-output, ar02-5234    [005] .......   242.567827: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.592101: tegra_channel_capture_frame: sof:267.154290208
 vi-output, ar02-5235    [002] .......   242.592103: tegra_channel_capture_frame: eof:267.186283488
 vi-output, ar02-5234    [006] .......   242.592323: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.625262: tegra_channel_capture_frame: sof:267.187623424
 vi-output, ar02-5235    [002] .......   242.625263: tegra_channel_capture_frame: eof:267.219616704
 vi-output, ar02-5234    [006] .......   242.625441: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.658605: tegra_channel_capture_frame: sof:267.220956576
 vi-output, ar02-5235    [002] .......   242.658607: tegra_channel_capture_frame: eof:267.252949920
 vi-output, ar02-5234    [006] .......   242.658786: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.692117: tegra_channel_capture_frame: sof:267.254289792
 vi-output, ar02-5235    [002] .......   242.692119: tegra_channel_capture_frame: eof:267.286283136
 vi-output, ar02-5234    [006] .......   242.692497: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.725452: tegra_channel_capture_frame: sof:267.287622944
 vi-output, ar02-5235    [002] .......   242.725454: tegra_channel_capture_frame: eof:267.319616320
 vi-output, ar02-5234    [006] .......   242.725543: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.758798: tegra_channel_capture_frame: sof:267.320956160
 vi-output, ar02-5235    [002] .......   242.758800: tegra_channel_capture_frame: eof:267.352949472
 vi-output, ar02-5234    [006] .......   242.759295: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.791938: tegra_channel_capture_frame: sof:267.354289376
 vi-output, ar02-5235    [002] .......   242.791940: tegra_channel_capture_frame: eof:267.386282656
 vi-output, ar02-5234    [006] .......   242.792151: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.825282: tegra_channel_capture_frame: sof:267.387622528
 vi-output, ar02-5235    [002] .......   242.825284: tegra_channel_capture_frame: eof:267.419615840
 vi-output, ar02-5234    [006] .......   242.825394: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.858606: tegra_channel_capture_frame: sof:267.420955744
 vi-output, ar02-5235    [002] .......   242.858607: tegra_channel_capture_frame: eof:267.452949056
 vi-output, ar02-5234    [006] .......   242.858713: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.891930: tegra_channel_capture_frame: sof:267.454288960
 vi-output, ar02-5235    [002] .......   242.891931: tegra_channel_capture_frame: eof:267.486282240
 vi-output, ar02-5234    [006] .......   242.892022: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.925258: tegra_channel_capture_frame: sof:267.487622144
 vi-output, ar02-5235    [002] .......   242.925259: tegra_channel_capture_frame: eof:267.519615456
 vi-output, ar02-5234    [006] .......   242.925341: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.958610: tegra_channel_capture_frame: sof:267.520955328
 vi-output, ar02-5235    [002] .......   242.958612: tegra_channel_capture_frame: eof:267.552948640
 vi-output, ar02-5234    [006] .......   242.958714: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   242.991936: tegra_channel_capture_frame: sof:267.554288544
 vi-output, ar02-5235    [002] .......   242.991938: tegra_channel_capture_frame: eof:267.586281792
 vi-output, ar02-5234    [006] .......   242.992128: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.025466: tegra_channel_capture_frame: sof:267.587621728
 vi-output, ar02-5235    [002] .......   243.025468: tegra_channel_capture_frame: eof:267.619615040
 vi-output, ar02-5234    [006] .......   243.026018: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.058771: tegra_channel_capture_frame: sof:267.620954912
 vi-output, ar02-5235    [002] .......   243.058773: tegra_channel_capture_frame: eof:267.652948224
 vi-output, ar02-5234    [006] .......   243.058945: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.092131: tegra_channel_capture_frame: sof:267.654288096
 vi-output, ar02-5235    [002] .......   243.092133: tegra_channel_capture_frame: eof:267.686281408
 vi-output, ar02-5234    [006] .......   243.092398: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.125432: tegra_channel_capture_frame: sof:267.687621248
 vi-output, ar02-5235    [002] .......   243.125433: tegra_channel_capture_frame: eof:267.719614560
 vi-output, ar02-5234    [006] .......   243.125613: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.158772: tegra_channel_capture_frame: sof:267.720954464
 vi-output, ar02-5235    [002] .......   243.158774: tegra_channel_capture_frame: eof:267.752947776
 vi-output, ar02-5234    [006] .......   243.158981: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.192107: tegra_channel_capture_frame: sof:267.754287680
 vi-output, ar02-5235    [002] .......   243.192109: tegra_channel_capture_frame: eof:267.786280992
 vi-output, ar02-5234    [006] .......   243.192317: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.225277: tegra_channel_capture_frame: sof:267.787620832
 vi-output, ar02-5235    [002] .......   243.225280: tegra_channel_capture_frame: eof:267.819614176
 vi-output, ar02-5234    [006] .......   243.225478: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.258775: tegra_channel_capture_frame: sof:267.820954048
 vi-output, ar02-5235    [002] .......   243.258776: tegra_channel_capture_frame: eof:267.852947360
 vi-output, ar02-5234    [006] .......   243.258949: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.292097: tegra_channel_capture_frame: sof:267.854287264
 vi-output, ar02-5235    [002] .......   243.292099: tegra_channel_capture_frame: eof:267.886280544
 vi-output, ar02-5234    [006] .......   243.292269: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.325438: tegra_channel_capture_frame: sof:267.887620448
 vi-output, ar02-5235    [002] .......   243.325440: tegra_channel_capture_frame: eof:267.919613760
 vi-output, ar02-5234    [006] .......   243.325612: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.358764: tegra_channel_capture_frame: sof:267.920953632
 vi-output, ar02-5235    [002] .......   243.358765: tegra_channel_capture_frame: eof:267.952946944
 vi-output, ar02-5234    [006] .......   243.358937: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.392093: tegra_channel_capture_frame: sof:267.954286816
 vi-output, ar02-5235    [002] .......   243.392095: tegra_channel_capture_frame: eof:267.986280128
 vi-output, ar02-5234    [006] .......   243.392155: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.425434: tegra_channel_capture_frame: sof:267.987620000
 vi-output, ar02-5235    [002] .......   243.425436: tegra_channel_capture_frame: eof:268.19613280
 vi-output, ar02-5234    [006] .......   243.425498: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.458761: tegra_channel_capture_frame: sof:268.20953184
 vi-output, ar02-5235    [002] .......   243.458762: tegra_channel_capture_frame: eof:268.52946528
 vi-output, ar02-5234    [006] .......   243.458934: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.492105: tegra_channel_capture_frame: sof:268.54286400
 vi-output, ar02-5235    [002] .......   243.492107: tegra_channel_capture_frame: eof:268.86279712
 vi-output, ar02-5234    [006] .......   243.492316: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.525266: tegra_channel_capture_frame: sof:268.87619584
 vi-output, ar02-5235    [002] .......   243.525268: tegra_channel_capture_frame: eof:268.119612864
 vi-output, ar02-5234    [006] .......   243.525469: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.558766: tegra_channel_capture_frame: sof:268.120952768
 vi-output, ar02-5235    [002] .......   243.558768: tegra_channel_capture_frame: eof:268.152946048
 vi-output, ar02-5234    [006] .......   243.558942: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.592114: tegra_channel_capture_frame: sof:268.154285984
 vi-output, ar02-5235    [002] .......   243.592115: tegra_channel_capture_frame: eof:268.186279296
 vi-output, ar02-5234    [006] .......   243.592375: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.625420: tegra_channel_capture_frame: sof:268.187619168
 vi-output, ar02-5235    [002] .......   243.625422: tegra_channel_capture_frame: eof:268.219612448
 vi-output, ar02-5234    [006] .......   243.625606: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.658616: tegra_channel_capture_frame: sof:268.220952352
 vi-output, ar02-5235    [002] .......   243.658618: tegra_channel_capture_frame: eof:268.252945632
 vi-output, ar02-5234    [006] .......   243.658803: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.692102: tegra_channel_capture_frame: sof:268.254285600
 vi-output, ar02-5235    [002] .......   243.692104: tegra_channel_capture_frame: eof:268.286278816
 vi-output, ar02-5234    [006] .......   243.692275: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.725600: tegra_channel_capture_frame: sof:268.287618752
 vi-output, ar02-5235    [002] .......   243.725601: tegra_channel_capture_frame: eof:268.319612032
 vi-output, ar02-5234    [006] .......   243.725808: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.758775: tegra_channel_capture_frame: sof:268.320951904
 vi-output, ar02-5235    [002] .......   243.758776: tegra_channel_capture_frame: eof:268.352945248
 vi-output, ar02-5234    [006] .......   243.758834: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.792101: tegra_channel_capture_frame: sof:268.354285120
 vi-output, ar02-5235    [002] .......   243.792103: tegra_channel_capture_frame: eof:268.386278432
 vi-output, ar02-5234    [006] .......   243.792273: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
 vi-output, ar02-5235    [002] .......   243.825432: tegra_channel_capture_frame: sof:268.387618304
 vi-output, ar02-5235    [002] .......   243.825434: tegra_channel_capture_frame: eof:268.419611616
 vi-output, ar02-5234    [006] .......   243.825606: vi_task_submit: class_id:48 ch:0 syncpt_id:33 syncpt_thresh:646 pid:5234 tid:5234
        v4l2-ctl-5233    [003] .......   243.857490: tegra_channel_close: vi-output, ar0233yuv 2-001f
 vi-output, ar02-5235    [002] .......   243.858611: tegra_channel_capture_frame: sof:268.420951488
 vi-output, ar02-5235    [002] .......   243.858613: tegra_channel_capture_frame: eof:268.452944832
        v4l2-ctl-5233    [003] .......   243.858634: tegra_channel_set_stream: enable : 0x0
        v4l2-ctl-5233    [003] .......   243.858636: tegra_channel_set_stream: ar0233yuv 2-001f : 0x0
        v4l2-ctl-5233    [003] .......   243.875551: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
        v4l2-ctl-5233    [003] .......   243.875556: csi_s_stream: enable : 0x0
        v4l2-ctl-5233    [002] .......   243.879264: tegra_channel_set_power: ar0233yuv 2-001f : 0x0
        v4l2-ctl-5233    [002] .......   243.879492: camera_common_s_power: status : 0x0
        v4l2-ctl-5233    [002] .......   243.879892: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
        v4l2-ctl-5233    [002] .......   243.879894: csi_s_power: enable : 0x0

We have already implemented the following modifications in the code:

Code modifications for 4-lane MIPI:




Additional information is provided below:
The MAX9296 has a 0x320 register; we configured it to 0x35 by default, but frame drops occurred during 4-lane MIPI reception on the Orin side;
When configured to 0x3a, frame drops no longer occurred during 4-lane MIPI reception on the Orin side.

What troubleshooting steps or modifications can be performed on the Orin side to ensure no frame drops occur?

BR,

I think you should consult with MAX9296 vendor to know the detail.

Thanks

Is there an error in the 4lan configuration on the orin side?
thanks,

There’s no problem 4 lanes problem on AGX Orin.

Thanks