Hello, it’s me again. :)
Following up from :
https://forums.developer.nvidia.com/t/arm-smmu-8000000-iommu-unhandled-context-fault-message/285553/
and
https://forums.developer.nvidia.com/t/how-to-enable-tc358743-on-36-3/293215/
Each thread ended with a suggestion to upgrade to the next version of L4T. I am now running JetPack 6.1 and L4T36.4 and still getting the “uncorr_err: request timed out after 2500 ms” error.
Since CAM0 only support 2 lanes, I’m limiting this attempt to capture a single 1280x720 frame.
From the previous thread I was asked to capture:
modprobe rtcpu_debug
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
root@sthd-61:~# v4l2-ctl -d /dev/video0 --stream-count=1 --stream-mmap --stream-to=frame-720p60.raw --verbose --set-fmt-video=width=1280,height=720,pixelformat=1
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 1280/720
Pixel Format : 'UYVY' (UYVY 4:2:2)
Field : None
Bytes per Line : 2560
Size Image : 1843200
Colorspace : SMPTE 170M
Transfer Function : Default (maps to Rec. 709)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :
New timings found
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: 1843200 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 0 bytesused: 1843200 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 1 bytesused: 1843200 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 2 bytesused: 1843200 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 3 bytesused: 1843200 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
^C
root@sthd-61:~# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 39/39 #P:6
#
# _-------=> irqs-off
# / _------=> need-resched
# | / _-----=> need-resched-lazy
# || / _----=> hardirq/softirq
# ||| / _---=> preempt-depth
# |||| / _--=> preempt-lazy-depth
# ||||| / _-=> migrate-disable
# |||||| / delay
# TASK-PID CPU# ||||||| TIMESTAMP FUNCTION
# | | | ||||||| | |
kworker/2:1-3582 [002] ....... 795.522139: rtcpu_string: tstamp:25777116585 id:0x04010000 str:"VM0 deactivating."
v4l2-ctl-3589 [002] ....... 808.600948: tegra_channel_open: vi-output, tc358743 9-000f
v4l2-ctl-3589 [000] ....... 808.639007: tegra_channel_set_power: tc358743 9-000f : 0x1
v4l2-ctl-3589 [000] ....... 808.639018: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-3589 [000] ....... 808.639021: csi_s_power: enable : 0x1
v4l2-ctl-3589 [000] ....... 808.641212: tegra_channel_capture_setup: vnc_id 0 W 1280 H 720 fmt 13
vi-output, tc35-3590 [002] ....... 808.652769: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
vi-output, tc35-3590 [002] ....... 808.652782: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
vi-output, tc35-3590 [002] ....... 808.652784: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
vi-output, tc35-3590 [002] ....... 808.652786: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
v4l2-ctl-3589 [000] ....... 808.652828: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-3589 [002] ....... 808.656443: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-3589 [002] ....... 808.656447: csi_s_stream: enable : 0x1
v4l2-ctl-3589 [002] ....... 808.656884: tegra_channel_set_stream: tc358743 9-000f : 0x1
kworker/2:3-144 [002] ....... 808.682143: rtcpu_string: tstamp:26187348110 id:0x04010000 str:"VM0 activating."
kworker/2:3-144 [002] ....... 808.682148: rtcpu_vinotify_event: tstamp:26187959212 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:838002593024 data:0x799e300010000000
kworker/2:3-144 [002] ....... 808.682149: rtcpu_vinotify_event: tstamp:26187959475 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:838002649952 data:0x0000000031000001
kworker/2:3-144 [002] ....... 808.682149: rtcpu_vinotify_event: tstamp:26187959772 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:838002668000 data:0x799e2d0010000000
kworker/2:3-144 [002] ....... 808.682150: rtcpu_vinotify_event: tstamp:26187960024 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:838002688320 data:0x0000000007020001
kworker/2:3-144 [002] ....... 808.682150: rtcpu_vinotify_event: tstamp:26187960316 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:838002730688 data:0x0000000031000002
vi-output, tc35-3591 [002] ....... 811.178968: tegra_channel_capture_setup: vnc_id 0 W 1280 H 720 fmt 13
vi-output, tc35-3590 [000] ....... 811.179149: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
vi-output, tc35-3590 [000] ....... 811.179164: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
vi-output, tc35-3590 [000] ....... 811.179166: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
vi-output, tc35-3590 [000] ....... 811.179168: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3590 tid:3590
kworker/2:3-144 [002] ....... 811.202172: rtcpu_vinotify_event: tstamp:26266836639 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:840528896128 data:0x799e300010000000
kworker/2:3-144 [002] ....... 811.202174: rtcpu_vinotify_event: tstamp:26266836933 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:840528949344 data:0x0000000031000001
kworker/2:3-144 [002] ....... 811.202175: rtcpu_vinotify_event: tstamp:26266837189 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:840528964352 data:0x0000000007020001
kworker/2:3-144 [002] ....... 811.202176: rtcpu_vinotify_event: tstamp:26266837477 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:840529008160 data:0x799e2d0010000000
kworker/2:3-144 [002] ....... 811.202177: rtcpu_vinotify_event: tstamp:26266837726 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:840529043936 data:0x0000000031000002
v4l2-ctl-3589 [001] ....... 812.045300: tegra_channel_close: vi-output, tc358743 9-000f
vi-output, tc35-3591 [002] ....... 813.706936: tegra_channel_capture_setup: vnc_id 0 W 1280 H 720 fmt 13
v4l2-ctl-3589 [001] ....... 813.707124: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-3589 [001] ....... 813.707126: tegra_channel_set_stream: tc358743 9-000f : 0x0
v4l2-ctl-3589 [001] ....... 813.708120: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-3589 [001] ....... 813.708123: csi_s_stream: enable : 0x0
v4l2-ctl-3589 [001] ....... 813.711871: tegra_channel_set_power: tc358743 9-000f : 0x0
v4l2-ctl-3589 [001] ....... 813.711880: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-3589 [001] ....... 813.711882: csi_s_power: enable : 0x0
We had this capturing frames in 5.1.2 - but I must have missed some of the changes in how things were set up between 5.1.2 and 6.1.
Attached are my dtsi file and custom dmesg output in case they may be useful.
tc35-dtb_file.txt (15.5 KB)
tc35-dmesg.txt (10.6 KB)
Can you help me figure out what I can not capture a frame ?
Thank you.