port imx334 on tx2

Hi,
when i port imx334 on jetson tx2 ,the sensor is 4k i configure the dts and create imx334 driver,then when i use teh commond as follows:
v4l2-ctl --set-fmt-video=width=3840,height=2160,pixelformat=RG12 --stream-mmap --stream-count=100 -d /dev/video0
i get the errors:
[ 5127.565059] camera_common_mclk_enable: enable MCLK with 24000 Hz
[ 5127.581570] camera_common_dpd_disable: csi 2
[ 5127.586206] camera_common_dpd_disable: csi 3
[ 5127.590700] imx185_power_on: power on
[ 5127.597898] csi port:2
[ 5127.603262] camera_common_try_fmt: size 3840 x 2160
[ 5127.608563] camera_common_s_fmt(12306) size 3840 x 2160
[ 5127.614231] camera_common_try_fmt: size 3840 x 2160
[ 5127.662852] camera_common_g_fmt++
[ 5127.667001] Create Surface with imgW=3840, imgH=2160, memFmt=32
[ 5127.674245] driver not enabled, cannot update bw
[ 5127.678946] tegra-vi4 15700000.vi: WAR:Calculation not precise.Ignore BW request failure
[ 5127.687300] csi4_start_streaming ports index=2, lanes=4
[ 5127.692568] csi4_stream_init
[ 5127.695452] csi4_stream_config
[ 5127.698526] csi4_stream_config (2) read VC0_DPCM_CTRL = 00000000
[ 5127.704544] csi4_phy_config
[ 5127.707334] NVCSI_CIL_CONFIG = 00000000
[ 5127.711208] cil_settingtime is pulled from devicemode not listed in DT, use defaultcil core clock: 204, csi clock: 102cil_settingtime was autocalculatedcsi settle time: 33, cil settle time: 25imx185_s_stream++ enable 1 mode 0
[ 5128.175301] imx185_s_stream++ enable 1 mode 0
[ 5129.464863] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5129.501717] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c92400]
[ 5130.508848] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5130.508868] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout! err = -11
[ 5130.508943] tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc072c92400]
[ 5130.560215] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c93c00]
[ 5131.564881] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5131.601658] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c92c00]
[ 5132.608870] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5132.608967] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout! err = -11
[ 5132.608991] tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc072c92c00]
[ 5132.660434] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c93400]
[ 5133.668928] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5133.705683] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c92400]
[ 5134.712859] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5134.712883] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout! err = -11
[ 5134.712954] tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc072c92400]
[ 5134.764257] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c93c00]
[ 5135.768602] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5135.805051] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c92c00]
[ 5136.812848] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5136.812870] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout! err = -11
[ 5136.812942] tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc072c92c00]
[ 5136.864086] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c93400]
[ 5137.868886] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5137.905693] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c92400]
[ 5138.912933] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout! err = -11
[ 5138.912950] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 5138.926544] tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc072c92400]
[ 5138.943115] tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc072c93c00]

when i use the debug tips https://elinux.org/Jetson_TX2_Camera_BringUp

i got the erros

entries-in-buffer/entries-written: 51/51 #P:4

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/0:0-3554  [000] ...1  5401.635661: rtos_queue_peek_from_isr_failed: tstamp:169131612317 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5401.791640: rtos_queue_peek_from_isr_failed: tstamp:169136612909 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5401.947629: rtos_queue_peek_from_isr_failed: tstamp:169141613327 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5402.103710: rtos_queue_peek_from_isr_failed: tstamp:169146613834 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5402.207663: rtcpu_vinotify_handle_msg: tstamp:169148951937 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1645226909 data:0x08000000
 kworker/0:0-3554  [000] ...1  5402.259659: rtos_queue_peek_from_isr_failed: tstamp:169151614340 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5402.415651: rtos_queue_peek_from_isr_failed: tstamp:169156614847 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5402.623693: rtos_queue_peek_from_isr_failed: tstamp:169161615361 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5402.779658: rtos_queue_peek_from_isr_failed: tstamp:169166615860 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5402.935730: rtos_queue_peek_from_isr_failed: tstamp:169171616368 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5403.091668: rtos_queue_peek_from_isr_failed: tstamp:169176616912 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5403.247690: rtcpu_vinotify_handle_msg: tstamp:169181528150 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1677803154 data:0x08000000
 kworker/0:0-3554  [000] ...1  5403.247702: rtos_queue_peek_from_isr_failed: tstamp:169181617381 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5403.403685: rtos_queue_peek_from_isr_failed: tstamp:169186617929 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5403.559665: rtos_queue_peek_from_isr_failed: tstamp:169191618395 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5403.715668: rtos_queue_peek_from_isr_failed: tstamp:169196618901 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5403.871650: rtos_queue_peek_from_isr_failed: tstamp:169201619408 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.027672: rtos_queue_peek_from_isr_failed: tstamp:169206619916 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.183695: rtos_queue_peek_from_isr_failed: tstamp:169211620525 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.287698: rtcpu_vinotify_handle_msg: tstamp:169214593280 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1710868286 data:0x08000000
 kworker/0:0-3554  [000] ...1  5404.339696: rtos_queue_peek_from_isr_failed: tstamp:169216620927 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.495679: rtos_queue_peek_from_isr_failed: tstamp:169221621435 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.703692: rtos_queue_peek_from_isr_failed: tstamp:169226621957 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.859682: rtos_queue_peek_from_isr_failed: tstamp:169231622456 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5404.911689: rtcpu_vinotify_handle_msg: tstamp:169233905632 tag:CHANSEL_PXL_SOF channel:0x00 frame:6 vi_tstamp:1730180507 data:0x00000001
 kworker/0:0-3554  [000] ...1  5404.911694: rtcpu_vinotify_handle_msg: tstamp:169233905903 tag:ATOMP_FS channel:0x00 frame:6 vi_tstamp:1730180548 data:0x00000000
 kworker/0:0-3554  [000] ...1  5404.911697: rtcpu_vinotify_handle_msg: tstamp:169233911126 tag:CHANSEL_FAULT channel:0x00 frame:6 vi_tstamp:1730186107 data:0x00000100
 kworker/0:0-3554  [000] ...1  5404.911701: rtcpu_vinotify_handle_msg: tstamp:169233911702 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1730186746 data:0x08000000
 kworker/0:0-3554  [000] ...1  5405.015687: rtos_queue_peek_from_isr_failed: tstamp:169236622957 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5405.171687: rtos_queue_peek_from_isr_failed: tstamp:169241623463 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5405.327762: rtos_queue_peek_from_isr_failed: tstamp:169246623971 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5405.327775: rtcpu_vinotify_handle_msg: tstamp:169247153496 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1743428502 data:0x08000000
 kworker/0:0-3554  [000] ...1  5405.483704: rtos_queue_peek_from_isr_failed: tstamp:169251624525 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5405.639699: rtos_queue_peek_from_isr_failed: tstamp:169256624985 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5405.795723: rtos_queue_peek_from_isr_failed: tstamp:169261625535 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5405.951700: rtos_queue_peek_from_isr_failed: tstamp:169266625998 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5406.107702: rtos_queue_peek_from_isr_failed: tstamp:169271626504 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5406.263697: rtos_queue_peek_from_isr_failed: tstamp:169276627011 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5406.367741: rtcpu_vinotify_handle_msg: tstamp:169279578685 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1775853692 data:0x08000000
 kworker/0:0-3554  [000] ...1  5406.419711: rtos_queue_peek_from_isr_failed: tstamp:169281627525 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5406.575743: rtos_queue_peek_from_isr_failed: tstamp:169286628039 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5406.783692: rtos_queue_peek_from_isr_failed: tstamp:169291628531 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5406.939790: rtos_queue_peek_from_isr_failed: tstamp:169296629035 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5407.095731: rtos_queue_peek_from_isr_failed: tstamp:169301629590 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5407.251724: rtos_queue_peek_from_isr_failed: tstamp:169306630052 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5407.407828: rtos_queue_peek_from_isr_failed: tstamp:169311630557 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5407.407841: rtcpu_vinotify_handle_msg: tstamp:169312154516 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:6 vi_tstamp:1808429525 data:0x08000000
 kworker/0:0-3554  [000] ...1  5407.563781: rtos_queue_peek_from_isr_failed: tstamp:169316631065 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5407.719723: rtos_queue_peek_from_isr_failed: tstamp:169321631571 queue:0x0b4a3c58
 kworker/0:0-3554  [000] ...1  5407.823823: rtcpu_vinotify_handle_msg: tstamp:169324572495 tag:CHANSEL_FAULT_FE channel:0x04 frame:6 vi_tstamp:1820847308 data:0x00000001
 kworker/0:0-3554  [000] ...1  5407.823834: rtcpu_vinotify_handle_msg: tstamp:169324572710 tag:ATOMP_FE channel:0x00 frame:6 vi_tstamp:1820847312 data:0x00000000

root@tegra-ubuntu:/usr/bin#

anyone can help?

This trace log show the PIXEL_LONG_LINE should be the sensor output lines more than 2160

kworker/0:0-3554 [000] ...1 5404.911697: rtcpu_vinotify_handle_msg: tstamp:169233911126 tag:CHANSEL_FAULT channel:0x00 frame:6 vi_tstamp:1730186107 data:0x00000100

ok,thank you ,how can i do in this case ? change dts active_h or driver ? i check the sensor suggest reg Y_OUT_SIZE set 0x884h is 2180

Both of them need to change. It’s better to consult to sensor vendor to make sure the output size.

ok, I have annother question , how can i tune isp on jetson tx2? any code sample?

Contact to scaling partner to support tuning. Only partner have the tuning tools.

it means i can not run imx334 without scaling partner?

Not exactly correct. You can make this sensor working by get the correct setting from sensor vendor but for the image quality you need partner help for the tuning stuff.

Hi,

D3 Engineering is one of the camera scaling partners and can provide image tuning services. Please contact us at sales@d3engineering.com if you would like more information.

Regards,
Jason