Hey Folks,
I migrated my camera driver and dts file from JP 5.1.2 to JP 6.2. Having some issue getting the stream to work in the desired manner. Attaching the dts file, dmesg and trace output. I have boosted the clock while running. The camera was previously working with the Xavier NX
Any help is appreciated!
v4l2-ctl output
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 1920/1200
Pixel Format : 'RG10' (10-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 3840
Size Image : 4608000
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 10.000 (10/1)
Read buffers : 0
Camera Controls
group_hold 0x009a2003 (bool) : default=0 value=0 flags=execute-on-write
sensor_mode 0x009a2008 (int64) : min=0 max=1 step=1 default=0 value=0 flags=slider
gain 0x009a2009 (int64) : min=100 max=24001 step=100 default=100 value=100 flags=slider
exposure 0x009a200a (int64) : min=62 max=10001 step=62 default=1200 value=62 flags=slider
frame_rate 0x009a200b (int64) : min=1000 max=28000 step=1000 default=10000 value=1000 flags=slider
dmesg output:
[ 15.422827] [drm] Initialized nvidia-drm 0.0.0 20160202 for 13800000.display on minor 1
[ 15.423096] nv_platform 13800000.display: [drm] Cannot find any crtc or sizes
[ 17.291314] r8168: enP8p1s0: link up
[ 17.291406] IPv6: ADDRCONF(NETDEV_CHANGE): enP8p1s0: link becomes ready
[ 18.288854] rfkill: input handler disabled
[ 18.890514] imx392 9-001a: imx392_open:
[ 19.451087] imx392 9-001a: imx392_open:
[ 22.034284] loop1: detected capacity change from 0 to 8
[ 40.140748] imx392 9-001a: power on
[ 40.152970] imx392 9-001a: selecting mode: 0
[ 42.718229] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 42.718251] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 42.719526] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 45.278220] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 45.278243] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 45.279663] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 47.838266] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 47.838288] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 47.839679] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 50.398231] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 50.398255] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 50.399597] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 50.451355] imx392 9-001a: power off
[ 62.750206] loop1: detected capacity change from 0 to 8
[ 606.687639] imx392 9-001a: power on
[ 606.700580] imx392 9-001a: selecting mode: 0
[ 609.224332] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 609.224356] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 609.225737] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 611.784150] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 611.784174] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 611.785601] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 611.837343] imx392 9-001a: power off
Kernel Trace:
# tracer: nop
#
# entries-in-buffer/entries-written: 77/77 #P:8
#
# _-------=> irqs-off
# / _------=> need-resched
# | / _-----=> need-resched-lazy
# || / _----=> hardirq/softirq
# ||| / _---=> preempt-depth
# |||| / _--=> preempt-lazy-depth
# ||||| / _-=> migrate-disable
# |||||| / delay
# TASK-PID CPU# ||||||| TIMESTAMP FUNCTION
# | | | ||||||| | |
kworker/5:2-383 [005] ....... 39.026044: rtcpu_string: tstamp:1841521085 id:0x04010000 str:"VM0 deactivating."
caminfernode-2836 [005] ....... 40.102078: tegra_channel_open: vi-output, imx392 9-001a
caminfernode-2836 [005] ....... 40.140665: tegra_channel_set_power: imx392 9-001a : 0x1
caminfernode-2836 [005] ....... 40.140744: camera_common_s_power: status : 0x1
caminfernode-2836 [005] ....... 40.140766: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
caminfernode-2836 [005] ....... 40.140768: csi_s_power: enable : 0x1
caminfernode-2836 [005] ....... 40.141972: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1200 fmt c4
vi-output, imx3-2838 [005] ....... 40.151892: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151898: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151899: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151900: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151901: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151903: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151904: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [005] ....... 40.151905: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
caminfernode-2836 [006] ....... 40.151928: tegra_channel_set_stream: enable : 0x1
caminfernode-2836 [006] ....... 40.152640: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
caminfernode-2836 [006] ....... 40.152643: csi_s_stream: enable : 0x1
caminfernode-2836 [006] ....... 40.152958: tegra_channel_set_stream: imx392 9-001a : 0x1
kworker/5:2-383 [005] ....... 40.154042: rtcpu_string: tstamp:1877115805 id:0x04010000 str:"VM0 activating."
kworker/5:2-383 [005] ....... 40.210046: rtcpu_vinotify_event: tstamp:1877637327 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:60073919072 data:0x799d580010000000
kworker/5:2-383 [005] ....... 40.210048: rtcpu_vinotify_event: tstamp:1877637466 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:60073925472 data:0x0000000031000001
kworker/5:2-383 [005] ....... 40.210049: rtcpu_vinotify_event: tstamp:1877637641 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:60073928480 data:0x0000000007020001
kworker/5:2-383 [005] ....... 40.210050: rtcpu_vinotify_event: tstamp:1877637776 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:60073970752 data:0x799d550010000000
kworker/5:2-383 [005] ....... 40.210051: rtcpu_vinotify_event: tstamp:1877637930 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:60073977280 data:0x0000000031000002
vi-output, imx3-2839 [003] ....... 42.719420: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1200 fmt c4
vi-output, imx3-2838 [000] ....... 42.725870: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
kworker/5:2-383 [005] ....... 42.734053: rtcpu_vinotify_event: tstamp:1957753781 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:62647896832 data:0x799d580010000000
kworker/5:2-383 [005] ....... 42.734057: rtcpu_vinotify_event: tstamp:1957753938 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:62647903200 data:0x0000000031000001
kworker/5:2-383 [005] ....... 42.734058: rtcpu_vinotify_event: tstamp:1957754074 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:62647906240 data:0x0000000007020001
vi-output, imx3-2838 [000] ....... 42.736009: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 42.746134: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 42.756237: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 42.766344: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 42.776445: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 42.786548: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
kworker/5:2-383 [005] ....... 42.790037: rtcpu_vinotify_event: tstamp:1958091845 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:62658036576 data:0x799d550010000000
kworker/5:2-383 [005] ....... 42.790039: rtcpu_vinotify_event: tstamp:1958091982 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:62658043104 data:0x0000000031000002
vi-output, imx3-2838 [000] ....... 42.796834: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2839 [003] ....... 45.279459: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1200 fmt c4
vi-output, imx3-2838 [000] ....... 45.288670: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 45.298963: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 45.308910: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
kworker/5:2-383 [005] ....... 45.310054: rtcpu_vinotify_event: tstamp:2037870210 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:65210701600 data:0x799d580010000000
kworker/5:2-383 [005] ....... 45.310057: rtcpu_vinotify_event: tstamp:2037870346 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:65210708000 data:0x0000000031000001
kworker/5:2-383 [005] ....... 45.310058: rtcpu_vinotify_event: tstamp:2037870502 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:65210710976 data:0x0000000007020001
kworker/5:2-383 [005] ....... 45.310059: rtcpu_vinotify_event: tstamp:2038208251 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:65220998304 data:0x799d550010000000
kworker/5:2-383 [005] ....... 45.310060: rtcpu_vinotify_event: tstamp:2038208409 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:65221004800 data:0x0000000031000002
vi-output, imx3-2838 [000] ....... 45.319020: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 45.329142: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 45.339262: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 45.349390: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 45.359513: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2839 [003] ....... 47.839470: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1200 fmt c4
vi-output, imx3-2838 [000] ....... 47.848784: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 47.858902: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 47.869020: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 47.879140: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
kworker/5:2-383 [005] ....... 47.886067: rtcpu_vinotify_event: tstamp:2117838872 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:67770813504 data:0x799d580010000000
kworker/5:2-383 [005] ....... 47.886070: rtcpu_vinotify_event: tstamp:2118155745 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:67770833184 data:0x0000000031000001
kworker/5:2-383 [005] ....... 47.886072: rtcpu_vinotify_event: tstamp:2118155884 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:67770836160 data:0x0000000007020001
kworker/5:2-383 [005] ....... 47.886072: rtcpu_vinotify_event: tstamp:2118156038 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:67780927296 data:0x799d550010000000
kworker/5:2-383 [005] ....... 47.886073: rtcpu_vinotify_event: tstamp:2118156173 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:67780933792 data:0x0000000031000002
vi-output, imx3-2838 [000] ....... 47.889260: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 47.899393: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 47.909517: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2838 [000] ....... 47.919638: vi_task_submit: class_id:48 ch:0 syncpt_id:52 syncpt_thresh:0 pid:2838 tid:2838
vi-output, imx3-2839 [003] ....... 50.399465: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1200 fmt c4
caminfernode-2836 [005] ....... 50.408508: tegra_channel_set_stream: enable : 0x0
caminfernode-2836 [005] ....... 50.408512: tegra_channel_set_stream: imx392 9-001a : 0x0
caminfernode-2836 [005] ....... 50.449700: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
caminfernode-2836 [005] ....... 50.449704: csi_s_stream: enable : 0x0
caminfernode-2836 [005] ....... 50.451336: tegra_channel_set_power: imx392 9-001a : 0x0
caminfernode-2836 [005] ....... 50.451343: camera_common_s_power: status : 0x0
caminfernode-2836 [005] ....... 50.451366: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
caminfernode-2836 [005] ....... 50.451368: csi_s_power: enable : 0x0
cuda-EvtHandlr-2835 [004] ....... 50.743179: tegra_channel_close: vi-output, imx392 9-001a
tegra234-camera-imx392-a00.dts.txt (5.3 KB)