ADV7280m configuration

Hi Shane, if the CHANSEL_SHORT_FRAME is gone from log my sensor output size is ok?
Did you mean less “height” one by one?

Thanks!

Can capture the frame data? What the trace log?

Unfortunately not.

Trace log:

nvidia@nvidia-desktop:~$ sudo cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 168/168   #P:6
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
     kworker/4:0-36    [004] ....  1090.508685: rtos_queue_peek_from_isr_failed: tstamp:34443786063 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1090.624690: rtos_queue_peek_from_isr_failed: tstamp:34448786052 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1090.792829: rtos_queue_peek_from_isr_failed: tstamp:34453786565 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1090.960754: rtos_queue_peek_from_isr_failed: tstamp:34458786572 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1091.128767: rtos_queue_peek_from_isr_failed: tstamp:34463786582 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1091.296849: rtos_queue_peek_from_isr_failed: tstamp:34468786940 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1091.464819: rtos_queue_peek_from_isr_failed: tstamp:34473786668 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1091.632872: rtos_queue_peek_from_isr_failed: tstamp:34478786929 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1091.744810: rtos_queue_peek_from_isr_failed: tstamp:34483786611 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1091.912772: rtos_queue_peek_from_isr_failed: tstamp:34488786619 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1092.080785: rtos_queue_peek_from_isr_failed: tstamp:34493786629 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1092.248878: rtos_queue_peek_from_isr_failed: tstamp:34498786636 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1092.416992: rtos_queue_peek_from_isr_failed: tstamp:34503786945 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1092.584739: rtos_queue_peek_from_isr_failed: tstamp:34508786646 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1092.753887: rtos_queue_peek_from_isr_failed: tstamp:34513786656 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1092.864794: rtos_queue_peek_from_isr_failed: tstamp:34518786985 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.032763: rtos_queue_peek_from_isr_failed: tstamp:34523786669 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.200781: rtos_queue_peek_from_isr_failed: tstamp:34528786211 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.368767: rtos_queue_peek_from_isr_failed: tstamp:34533786681 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.541214: rtos_queue_peek_from_isr_failed: tstamp:34538786687 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.708804: rtos_queue_peek_from_isr_failed: tstamp:34543787020 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.876850: rtos_queue_peek_from_isr_failed: tstamp:34548786703 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1093.989503: rtos_queue_peek_from_isr_failed: tstamp:34553787053 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1094.156746: rtos_queue_peek_from_isr_failed: tstamp:34558786252 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1094.324807: rtos_queue_peek_from_isr_failed: tstamp:34563786713 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1094.493344: rtos_queue_peek_from_isr_failed: tstamp:34568786719 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1094.660846: rtos_queue_peek_from_isr_failed: tstamp:34573786729 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1094.828905: rtos_queue_peek_from_isr_failed: tstamp:34578787089 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1094.996798: rtos_queue_peek_from_isr_failed: tstamp:34583786287 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1095.108774: rtos_queue_peek_from_isr_failed: tstamp:34588786750 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1095.165224: rtos_queue_peek_from_isr_failed: tstamp:34590179641 queue:0x0b4b4500
        v4l2-ctl-7992  [001] ....  1096.535483: tegra_channel_open: vi-output, adv7280 6-0021
        v4l2-ctl-7992  [001] ....  1096.536652: tegra_channel_set_power: adv7280 6-0021 : 0x1
        v4l2-ctl-7992  [001] ....  1096.538059: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
        v4l2-ctl-7992  [001] ....  1096.538064: csi_s_power: enable : 0x1
        v4l2-ctl-7992  [001] ....  1096.544796: tegra_channel_capture_setup: vnc_id 0 W 720 H 480 fmt cb
     kworker/4:0-36    [004] ....  1096.564692: rtos_queue_peek_from_isr_failed: tstamp:34633772020 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1096.564697: rtcpu_start: tstamp:34633775927
     kworker/4:0-36    [004] ....  1096.564698: rtos_queue_send_from_isr_failed: tstamp:34633787777 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.564699: rtos_queue_send_from_isr_failed: tstamp:34633787881 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.564700: rtos_queue_send_from_isr_failed: tstamp:34633787984 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.564700: rtos_queue_send_from_isr_failed: tstamp:34633788087 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.564701: rtos_queue_send_from_isr_failed: tstamp:34633788190 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.564701: rtos_queue_send_from_isr_failed: tstamp:34633788292 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.564702: rtos_queue_send_from_isr_failed: tstamp:34633788393 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.564703: rtos_queue_send_from_isr_failed: tstamp:34633788501 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.564704: rtos_queue_send_failed: tstamp:34633788961 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.564705: rtos_queue_send_from_isr_failed: tstamp:34633794750 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.564705: rtos_queue_send_from_isr_failed: tstamp:34633794852 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.564706: rtos_queue_send_from_isr_failed: tstamp:34633794954 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.564706: rtos_queue_send_from_isr_failed: tstamp:34633795057 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.564707: rtos_queue_send_from_isr_failed: tstamp:34633795158 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.564708: rtos_queue_send_from_isr_failed: tstamp:34633795260 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.564708: rtos_queue_send_from_isr_failed: tstamp:34633795362 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.564709: rtos_queue_send_from_isr_failed: tstamp:34633795463 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.564709: rtos_queue_send_failed: tstamp:34633796364 queue:0x0b4a7258
 vi-output, adv7-7993  [005] ....  1096.565088: tegra_channel_set_stream: enable : 0x1
 vi-output, adv7-7993  [000] ....  1096.566826: tegra_channel_set_stream: 150c0000.nvcsi--1 : 0x1
 vi-output, adv7-7993  [000] ....  1096.566828: csi_s_stream: enable : 0x1
 vi-output, adv7-7993  [000] ....  1096.566898: tegra_channel_set_stream: adv7280 6-0021 : 0x1
 vi-output, adv7-7993  [005] ....  1096.570963: tegra_channel_capture_frame: sof:1096.454220758
     kworker/4:0-36    [004] ....  1096.608356: tegra_channel_notify_status_callback: 
     kworker/4:0-36    [004] ....  1096.620768: rtcpu_vinotify_event: tstamp:34634493729 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:34634493352 data:0x00000001
     kworker/4:0-36    [004] ....  1096.620770: rtcpu_vinotify_event: tstamp:34634618071 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:34634617568 data:0x00000001
     kworker/4:0-36    [004] ....  1096.620771: rtcpu_vinotify_event: tstamp:34634618227 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:34634617598 data:0x00000000
     kworker/4:0-36    [004] ....  1096.620772: rtcpu_vinotify_event: tstamp:34635094622 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:34635093996 data:0x01df0002
     kworker/4:0-36    [004] ....  1096.620773: rtcpu_vinotify_event: tstamp:34635094735 tag:CHANSEL_FAULT channel:0x00 frame:1 vi_tstamp:34635094165 data:0x01e00040
     kworker/4:0-36    [004] ....  1096.620774: rtcpu_vinotify_event: tstamp:34635095529 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:1 vi_tstamp:34635094869 data:0x08000000
     kworker/4:0-36    [004] ....  1096.620775: rtcpu_vinotify_event: tstamp:34635095634 tag:CHANSEL_FAULT_FE channel:0x01 frame:1 vi_tstamp:34635094878 data:0x00000001
     kworker/4:0-36    [004] ....  1096.620776: rtcpu_vinotify_event: tstamp:34635095770 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:34635094881 data:0x00000000
     kworker/4:0-36    [004] ....  1096.620778: rtos_queue_send_from_isr_failed: tstamp:34635789094 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.620780: rtos_queue_send_from_isr_failed: tstamp:34635789202 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.620781: rtos_queue_send_from_isr_failed: tstamp:34635789307 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.620782: rtos_queue_send_from_isr_failed: tstamp:34635789409 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.620783: rtos_queue_send_from_isr_failed: tstamp:34635789511 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.620784: rtos_queue_send_from_isr_failed: tstamp:34635789612 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.620785: rtos_queue_send_from_isr_failed: tstamp:34635789713 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.620786: rtos_queue_send_from_isr_failed: tstamp:34635789814 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.620787: rtos_queue_send_failed: tstamp:34635790373 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.732775: rtos_queue_peek_from_isr_failed: tstamp:34638772392 queue:0x0b4b4500
 vi-output, adv7-7993  [003] ....  1096.809735: tegra_channel_capture_setup: vnc_id 0 W 720 H 480 fmt cb
 vi-output, adv7-7993  [003] ....  1096.809796: tegra_channel_capture_frame: sof:1096.454220758
        v4l2-ctl-7992  [005] ....  1096.810473: tegra_channel_set_stream: enable : 0x0
        v4l2-ctl-7992  [005] ....  1096.810475: tegra_channel_set_stream: adv7280 6-0021 : 0x0
        v4l2-ctl-7992  [005] ....  1096.810498: tegra_channel_set_stream: 150c0000.nvcsi--1 : 0x0
        v4l2-ctl-7992  [005] ....  1096.810502: csi_s_stream: enable : 0x0
        v4l2-ctl-7992  [002] ....  1096.827896: tegra_channel_close: vi-output, adv7280 6-0021
        v4l2-ctl-7992  [002] ....  1096.828295: tegra_channel_set_power: adv7280 6-0021 : 0x0
        v4l2-ctl-7992  [002] ....  1096.828631: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
        v4l2-ctl-7992  [002] ....  1096.828636: csi_s_power: enable : 0x0
     kworker/4:0-36    [004] ....  1096.844796: rtos_queue_send_from_isr_failed: tstamp:34642055774 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844803: rtos_queue_send_from_isr_failed: tstamp:34642055958 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.844805: rtos_queue_send_from_isr_failed: tstamp:34642056136 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.844808: rtos_queue_send_from_isr_failed: tstamp:34642056312 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.844810: rtos_queue_send_from_isr_failed: tstamp:34642056487 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.844812: rtos_queue_send_from_isr_failed: tstamp:34642056661 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.844814: rtos_queue_send_from_isr_failed: tstamp:34642056835 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.844816: rtos_queue_send_from_isr_failed: tstamp:34642057009 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.844819: rtos_queue_send_failed: tstamp:34642057715 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844821: rtos_queue_send_from_isr_failed: tstamp:34642071365 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844823: rtos_queue_send_from_isr_failed: tstamp:34642071543 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.844825: rtos_queue_send_from_isr_failed: tstamp:34642071719 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.844828: rtos_queue_send_from_isr_failed: tstamp:34642071896 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.844830: rtos_queue_send_from_isr_failed: tstamp:34642072071 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.844832: rtos_queue_send_from_isr_failed: tstamp:34642072246 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.844834: rtos_queue_send_from_isr_failed: tstamp:34642072451 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.844836: rtos_queue_send_from_isr_failed: tstamp:34642072662 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.844838: rtos_queue_send_failed: tstamp:34642073435 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844841: rtos_queue_send_from_isr_failed: tstamp:34642076411 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844843: rtos_queue_send_from_isr_failed: tstamp:34642076586 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.844845: rtos_queue_send_from_isr_failed: tstamp:34642076762 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.844847: rtos_queue_send_from_isr_failed: tstamp:34642076937 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.844849: rtos_queue_send_from_isr_failed: tstamp:34642077112 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.844851: rtos_queue_send_from_isr_failed: tstamp:34642077287 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.844853: rtos_queue_send_from_isr_failed: tstamp:34642077461 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.844856: rtos_queue_send_from_isr_failed: tstamp:34642077635 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.844858: rtos_queue_send_failed: tstamp:34642079586 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844860: rtos_queue_send_from_isr_failed: tstamp:34642095302 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844862: rtos_queue_send_from_isr_failed: tstamp:34642095477 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.844864: rtos_queue_send_from_isr_failed: tstamp:34642095652 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.844866: rtos_queue_send_from_isr_failed: tstamp:34642095827 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.844868: rtos_queue_send_from_isr_failed: tstamp:34642096001 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.844870: rtos_queue_send_from_isr_failed: tstamp:34642096173 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.844873: rtos_queue_send_from_isr_failed: tstamp:34642096352 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.844875: rtos_queue_send_from_isr_failed: tstamp:34642096525 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.844877: rtos_queue_send_failed: tstamp:34642097350 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844879: rtos_queue_send_from_isr_failed: tstamp:34642100332 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.844881: rtos_queue_send_from_isr_failed: tstamp:34642100508 queue:0x0b4aad68
     kworker/4:0-36    [004] ....  1096.844883: rtos_queue_send_from_isr_failed: tstamp:34642100682 queue:0x0b4ac998
     kworker/4:0-36    [004] ....  1096.844885: rtos_queue_send_from_isr_failed: tstamp:34642100856 queue:0x0b4ae518
     kworker/4:0-36    [004] ....  1096.844888: rtos_queue_send_from_isr_failed: tstamp:34642101029 queue:0x0b4af2d8
     kworker/4:0-36    [004] ....  1096.844890: rtos_queue_send_from_isr_failed: tstamp:34642101202 queue:0x0b4b0098
     kworker/4:0-36    [004] ....  1096.844892: rtos_queue_send_from_isr_failed: tstamp:34642101373 queue:0x0b4b0e58
     kworker/4:0-36    [004] ....  1096.844894: rtos_queue_send_from_isr_failed: tstamp:34642101547 queue:0x0b4b1c18
     kworker/4:0-36    [004] ....  1096.844896: rtos_queue_send_failed: tstamp:34642102238 queue:0x0b4a7258
     kworker/4:0-36    [004] ....  1096.900779: rtos_queue_peek_from_isr_failed: tstamp:34643772363 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1097.068910: rtos_queue_peek_from_isr_failed: tstamp:34648772387 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1097.237116: rtos_queue_peek_from_isr_failed: tstamp:34653773644 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1097.348777: rtos_queue_peek_from_isr_failed: tstamp:34658772841 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1097.516766: rtos_queue_peek_from_isr_failed: tstamp:34663772409 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1097.689026: rtos_queue_peek_from_isr_failed: tstamp:34668773243 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1097.856887: rtos_queue_peek_from_isr_failed: tstamp:34673772902 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.024901: rtos_queue_peek_from_isr_failed: tstamp:34678772908 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.192831: rtos_queue_peek_from_isr_failed: tstamp:34683772915 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.304837: rtos_queue_peek_from_isr_failed: tstamp:34688772925 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.472941: rtos_queue_peek_from_isr_failed: tstamp:34693773278 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.640815: rtos_queue_peek_from_isr_failed: tstamp:34698772933 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.808855: rtos_queue_peek_from_isr_failed: tstamp:34703772527 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1098.976793: rtos_queue_peek_from_isr_failed: tstamp:34708772438 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1099.144845: rtos_queue_peek_from_isr_failed: tstamp:34713772957 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1099.312797: rtos_queue_peek_from_isr_failed: tstamp:34718772463 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1099.424843: rtos_queue_peek_from_isr_failed: tstamp:34723772973 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1099.593476: rtos_queue_peek_from_isr_failed: tstamp:34728773327 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1099.760809: rtos_queue_peek_from_isr_failed: tstamp:34733772984 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1099.928863: rtos_queue_peek_from_isr_failed: tstamp:34738772987 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1100.096891: rtos_queue_peek_from_isr_failed: tstamp:34743773343 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1100.265073: rtos_queue_peek_from_isr_failed: tstamp:34748772998 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1100.432819: rtos_queue_peek_from_isr_failed: tstamp:34753773008 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1100.544853: rtos_queue_peek_from_isr_failed: tstamp:34758773015 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1100.712857: rtos_queue_peek_from_isr_failed: tstamp:34763773022 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1100.880927: rtos_queue_peek_from_isr_failed: tstamp:34768773376 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.048836: rtos_queue_peek_from_isr_failed: tstamp:34773773030 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.217375: rtos_queue_peek_from_isr_failed: tstamp:34778773375 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.384822: rtos_queue_peek_from_isr_failed: tstamp:34783773042 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.552956: rtos_queue_peek_from_isr_failed: tstamp:34788773052 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.664826: rtos_queue_peek_from_isr_failed: tstamp:34793773060 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.832932: rtos_queue_peek_from_isr_failed: tstamp:34798773066 queue:0x0b4b4500
     kworker/4:0-36    [004] ....  1101.944869: rtos_queue_peek_from_isr_failed: tstamp:34801437407 queue:0x0b4b4500

Hello Shane,

There is my dmesg log:

[ 1096.536661] to_state:443
[ 1096.536703] adv7280_s_power:530
[ 1096.536708] adv7280_set_power:498 on = 1
[ 1096.536711] I2C WRITE 4 @f
[ 1096.536895] I2C WRITE 2 @de
[ 1096.537030] I2C WRITE f7 @d2
[ 1096.537164] I2C WRITE 65 @d8
[ 1096.537297] I2C WRITE 9 @e0
[ 1096.537487] I2C WRITE 0 @2c
[ 1096.537916] I2C WRITE 0 @0
[ 1096.539358] nvcsi 150c0000.nvcsi: phy mode unavailable in props, use default
[ 1096.539365] nvcsi 150c0000.nvcsi: csi_port: 0
[ 1096.540498] to_state:443
[ 1096.540502] adv7280_g_input_status:451
[ 1096.540505] adv7280_read:324
[ 1096.540745] adv7280_read:324
[ 1096.540926] __adv7280_status:420 status1 = 0xf
[ 1096.540929] __adv7280_status:421 vid_sel = 0x4
[ 1096.540932] adv7280_status_to_v4l2:408
[ 1096.540934] status = 0
[ 1096.540937] RET = 0
[ 1096.540940] status = 0
[ 1096.544829] tegra-vi4 15700000.vi: Create Surface with imgW=720, imgH=480, memFmt=203
[ 1096.566838] nvcsi 150c0000.nvcsi: csi4_start_streaming port_idx=0, lanes=1
[ 1096.566844] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1096.566854] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1096.566862] nvcsi 150c0000.nvcsi: csi4_stream_config (0) read VC0_DPCM_CTRL = 00000000
[ 1096.566865] nvcsi 150c0000.nvcsi: settle time reading from of_node
[ 1096.566871] nvcsi 150c0000.nvcsi: discontinuous_clk = 0 from of_node
[ 1096.566873] nvcsi 150c0000.nvcsi: phy mode unavailable in props, use default
[ 1096.566875] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1096.566880] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1096.566887] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1096.566889] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1096.566892] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1096.566900] to_state:443
[ 1096.566902] adv7280_s_stream:960
[ 1096.566904] adv7280_read:324
[ 1096.567069] adv7280_read:324
[ 1096.567228] __adv7280_status:420 status1 = 0xd
[ 1096.567231] __adv7280_status:421 vid_sel = 0x4
[ 1096.570954] video4linux video0: vi_notify_wait: vi4 got SOF syncpt buf[ffffffc1e0836800]
[ 1096.586223] tegra-vi4 15700000.vi: Status:  4 channel:00 frame:0001
[ 1096.592508] tegra-vi4 15700000.vi:      timestamp sof 1108307762176 eof 1108323013280 data 0x01e00040
[ 1096.601736] tegra-vi4 15700000.vi:      capture_id 1 stream  0 vchan  0
[ 1096.792811] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1096.799289] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1096.809154] nvcsi 150c0000.nvcsi: csi4_stop_streaming port_idx=0, lanes=1
[ 1096.809162] nvcsi 150c0000.nvcsi: settle time reading from of_node
[ 1096.809172] nvcsi 150c0000.nvcsi: discontinuous_clk = 0 from of_node
[ 1096.809178] nvcsi 150c0000.nvcsi: phy mode unavailable in props, use default
[ 1096.809182] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1096.809190] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000001
[ 1096.809199] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1096.809235] nvcsi 150c0000.nvcsi: csi4_cil_check_status 404
[ 1096.809263] nvcsi 150c0000.nvcsi: csi4_start_streaming port_idx=0, lanes=1
[ 1096.809268] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1096.809284] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1096.809297] nvcsi 150c0000.nvcsi: csi4_stream_config (0) read VC0_DPCM_CTRL = 00000000
[ 1096.809301] nvcsi 150c0000.nvcsi: settle time reading from of_node
[ 1096.809309] nvcsi 150c0000.nvcsi: discontinuous_clk = 0 from of_node
[ 1096.809325] nvcsi 150c0000.nvcsi: phy mode unavailable in props, use default
[ 1096.809330] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1096.809337] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1096.809354] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1096.809361] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1096.809366] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1096.809777] tegra-vi4 15700000.vi: Create Surface with imgW=720, imgH=480, memFmt=203
[ 1096.810482] to_state:443
[ 1096.810493] adv7280_s_stream:960
[ 1096.810510] nvcsi 150c0000.nvcsi: csi4_stop_streaming port_idx=0, lanes=1
[ 1096.810515] nvcsi 150c0000.nvcsi: settle time reading from of_node
[ 1096.810525] nvcsi 150c0000.nvcsi: discontinuous_clk = 0 from of_node
[ 1096.810529] nvcsi 150c0000.nvcsi: phy mode unavailable in props, use default
[ 1096.810534] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1096.810542] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000001
[ 1096.810551] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1096.810558] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x00000004
[ 1096.819467] nvcsi 150c0000.nvcsi: csi4_cil_check_status 404
[ 1096.828303] to_state:443
[ 1096.828311] adv7280_s_power:530
[ 1096.828317] adv7280_set_power:498 on = 0
[ 1096.828322] I2C WRITE 24 @f
[ 1096.828497] I2C WRITE 80 @0

According with TRM: ERROR_STATUS2VI_VC0 = 0x00000004 means the CRC check failed:
28.6.58 NVCSI_STREAM_0_ERROR_STATUS2VI_VC0_0
This error status will be sent to VI. Set by hardware, automatically cleared at next SOF pulse. This is the RO register for
software.
Offset: 0x4025 | Byte Offset: 0x10094 | Read/Write: RO | Secure: TrustZone Protected | Reset: 0x00000000

Bit    Reset  Description
3:0    0x0    err_status2vi_vc0:
              [0]: PP FSM timeout error
              [1]: PH ECC single bit error
              [2]: Packet Payload CRC error
              [3]: Packet Payload is less than WC in PH

There’s some other modification can I do to disable the CRC?

Hi alfredosalvarani.It seems you’ve got the same situation as I said before:“I’m facing a similar problem.By changing the mask registers I’ve solved some problem, but remaining an error: csi4_channel_check_status (2) ERROR_STATUS2VI_VC0 = 0x00000004.”
It turned out to be a capture device configuration problem, a missing of EOT(end of transmission) signal.

The early comment to program the ERROR_STATUS2VI_MASK should be mask the crc.
The new trace tell the CHANSEL_FAULT have a check the detail from below link. It tell the PIXEL_RUNAWAY.

Missing CSI packets can cause LONG_LINE and PIXEL_RUNAWAY errors. Missing FE packet + FS packet would cause PIXEL_RUNAWAY. Missing EOL packet + SOL packet would cause LONG_LINE.

https://elinux.org/Jetson_TX2_Camera_BringUp

And you still can try to mask VI_CSIMUX_NOTIFY_MASK_STREAM_0 to try.
STREAM EVENT: Field 19:16 in register
3 STREAM_BADPKT
2 STREAM_LOF
1 STREAM_OVERFLOW
0 STREAM_SPURIOUS

diff --git a/drivers/media/platform/tegra/camera/vi/vi4_fops.c b/drivers/media/platform/tegra/camera/vi/vi4_fops.c
index 6d2d750..bb16ed6 100644
--- a/drivers/media/platform/tegra/camera/vi/vi4_fops.c
+++ b/drivers/media/platform/tegra/camera/vi/vi4_fops.c
@@ -62,6 +62,15 @@ u32 csimux_config_stream[] = {
        CSIMUX_CONFIG_STREAM_5
 };
 
+u32 csimux_notify_mask_stream[] = {
+       CSIMUX_NOTIFY_MASK_STREAM_0,
+       CSIMUX_NOTIFY_MASK_STREAM_1,
+       CSIMUX_NOTIFY_MASK_STREAM_2,
+       CSIMUX_NOTIFY_MASK_STREAM_3,
+       CSIMUX_NOTIFY_MASK_STREAM_4,
+       CSIMUX_NOTIFY_MASK_STREAM_5
+};
+
 static void vi4_write(struct tegra_channel *chan, unsigned int addr, u32 val)
 {
        writel(val, chan->vi->iomem + addr);
@@ -449,6 +458,7 @@ static int tegra_channel_capture_setup(struct tegra_channel *chan,
        vnc_id = chan->vnc_id[index];
 
        vi4_write(chan, csimux_config_stream[csi_port], 0x1);
+       vi4_write(chan, csimux_notify_mask_stream[csi_port], (0x0F << 16));
 
        vi4_channel_write(chan, vnc_id, MATCH,
                        ((stream << STREAM_SHIFT) & STREAM) |
diff --git a/drivers/media/platform/tegra/camera/vi/vi4_registers.h b/drivers/media/platform/tegra/camera/vi/vi4_registers.h
index 588ebb3..6a4205b 100644
--- a/drivers/media/platform/tegra/camera/vi/vi4_registers.h
+++ b/drivers/media/platform/tegra/camera/vi/vi4_registers.h
@@ -50,6 +50,14 @@
 #define CSIMUX_CONFIG_STREAM_3         0x430
 #define CSIMUX_CONFIG_STREAM_4         0x434
 #define CSIMUX_CONFIG_STREAM_5         0x438
+
+#define CSIMUX_NOTIFY_MASK_STREAM_0    0x440
+#define CSIMUX_NOTIFY_MASK_STREAM_1    0x444
+#define CSIMUX_NOTIFY_MASK_STREAM_2    0x448
+#define CSIMUX_NOTIFY_MASK_STREAM_3    0x44c
+#define CSIMUX_NOTIFY_MASK_STREAM_4    0x450
+#define CSIMUX_NOTIFY_MASK_STREAM_5    0x454
+
 #define FRAMEIDGEN                                     (0xf << 26)
 #define STICKYFAULT                                    (0x1 << 25)
 #define VPR                                                    (0x1 << 24)

hello stonest,

I’m porting adv7280m from imx219 on jetson nano but some thing wrong. Can you share me code and dtb for adv7280m

@hoanganhv1svm
Have a check with below link to get the source code.

https://devtalk.nvidia.com/default/topic/1073181

Hi,

I captured image over v4l2, seem many frame droped.
I think tegra cam capture null frame too.
2020-03-13-163807.zip (1.37 MB)

Hello hoanganhv1svm, can you share the motificarions on DT?
Did you put the sub-node “modeX” under

i2c@xxxxxxx {
	adv7280m@21 {

?

Thanks!

Could you check the trace if any clue.

Also did you apply the patch

Hi,

Forums had been config to read -only, so i can’t reply you soon.
No have sub-node on my dtsi:

	i2c@546c0000 {
		imx219_single_cam0: rbpcv2_imx219_a@10 {
			compatible = "adi,adv7280-m";
			/* I2C device address */
			reg = <0x21>;

			/* V4L2 device node location */
			devnode = "video0";

			/* Physical dimensions of sensor */
            physical_w = "4.713";
            physical_h = "3.494";

			sensor_model = "adi,adv7280-m";

			use_sensor_mode_id = "false";
			
			// mode0{
				// mclk_khz = "24000";
				// num_lanes = "1";
				// mclk_multiplier = "2";
				// pix_clk_hz = "74250000";
				// discontinuous_clk = "no";
				// active_w = "720";
				// active_h = "576";
			// };

			ports {
				#address-cells = <1>;
				#size-cells = <0>;

				port@0 {
					reg = <0>;
					rbpcv2_imx219_out0: endpoint {
                        status = "okay";
						port-index = <0>;
						bus-width = <1>;
						remote-endpoint = <&rbpcv2_imx219_csi_in0>;
					};
				};
			};
		};
	};
1 Like

And add:
discontinuous_clk = “no”;
to nvcsi

Hi,

I fixed wrong color: because not have sud-node on device tree, csi2_fops.c capture with 2 lane.
I hardcode to 1 lane in function “csi2_start_streaming”.

static int csi2_start_streaming(struct tegra_csi_channel *chan, int port_idx)
{
struct tegra_csi_port *port = &chan->ports[port_idx];
struct tegra_csi_device csi = chan->csi;
int csi_port, csi_lanes;
/
Clocks for the CSI interface /
const unsigned int cil_clk_mhz = TEGRA_CSICIL_CLK_MHZ;
const unsigned int csi_clk_mhz = csi->clk_freq / 1000000;
/
Calculated clock settling times for cil and csi clocks */
unsigned int csi_settletime;
unsigned int cil_settletime = read_settle_time_from_dt(chan);
unsigned int discontinuous_clk = read_discontinuous_clk_from_dt(chan);

csi_port = !chan->pg_mode ? port->csi_port : port->stream_id;
csi_lanes = port->lanes;

csi_lanes = 1;
printk("csi: start streaming");
printk("csi: port: %d, lane: %d", csi_port, csi_lanes);

Now, last error is some frame is null data → flash image

Hello @hoanganhv1svm,
Whats is the command you’re using to capture video?
I’m using this:
v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1

Hi,
I’m using cheese and opencv to capture and show. All work well.
Do you have any suggest with error image blink?

Just start cheese application and it’s done? Can you give more details?
I think the fix on VI on this post TX2-4GB NVCSI/VI error with JetPack 4.3 fixed the @jiakai1000 problem (He has marked it as a solution)

I’m just fixed “num_lane” to 1 at “csi2_start_streaming” function on “csi2_fops.c”, using device tree in my comment above

I’m using nano, opencv working too.

@hoanganhv1svm the image is pretty good, I figured out that my setup doesn’t use csi2_start_streaming, it’s use csi4_start and lines is getting correct on this (I’m using TX2), I can get video (with some sync fault) on cheese if I unplug the camera (color bars) but it’s crash if I plug the camera. I think it’s because my camera is NTSC and the driver is configured for PAL, I’m trying to change this.

Did you captured, this is my last error:
But i don’t know how to resolve follow solution below:
https://forums.developer.nvidia.com/t/flashing-green-screen-using-custom-carrier/57524