tegra tx2 camera programming

Hello.

I’m trying to install imx250 sony sensor with jetson tx2. but there are too many issues.
firstly, cam_i2c trying to read eeprom data in camera module with 0x54 address.
My camera module does not contain eeprom, so tegra tx2 driver does not access any more after access fail eeprom.
can i make it to access imx250 directly without accessing eeprom?
or after fail accessing eeprom, how can i make it to access imx250?
if it is possible, please let me know the way.

and if i set the imx250 with SPI application, is it possible to set CSI only?
i guess, maybe there are some problems with timing mismatches.

hello hojung8086,

there are several information for your reference.
[L4t documentation]-> [Camera Development]-> [Sensor Driver Programming Guide]

since your camera module does not contain eeprom, please also check [Using Main Platform Device Tree File] chapter about plugin-manager.

for the debugging progress, please refer to this wiki page, https://elinux.org/Jetson_TX2/28.1_Camera_BringUp
thanks

@JerryChang: where that documentation is?
Please provide an URL.

In the nvidia download center, i can see a L4T documentation only for R24.1, with very little information related to cameras. And that approach is likely different than the always changing nature of L4T requires in R28.1

hi danieel,

you should be able to search necessary documentation files from Jetson Download Center,
for example,
use filter to search for “L4T Documentation
https://developer.nvidia.com/embedded/downloads#?search=L4T%20documentation

firstly, I need to explain my camera system to get the exact information.
My system is as below.

  • IMX250–(Sub-LVDS)—> MD6000 --(CSI2)–> Tegra CSI port
    IMX250 is Sub-LVDS camera. so I used lattice MD6000 to convert LVDS to CSI.
    and I used SPI instead of I2C. because I cannot find the way using I2C without EEPROM.

Anyway I can set the IMX250 properly. It works well exact Hsync, Vsync.
and MD6000 lattice FPGA also works well. with IMX250 LVDS signal, it converted as CSI2 signal.
I checked the exact csi format with csi analizer(identify VIVADO)
the actual width = 2464, height = 2056.
I can see the good clean Image with dump image viewer.

after then I made plugin the imx250 into the device tree(modified with imx185)
I checked probe it, and I can make it go to the mipi calibration stage.
but it is returning the PXL_SOF syncpt timeout err = -11

the captured image has no noise and no crc error in analizer.
I don’t know the reason it can not pass the mipi calibration of tegra tx2.
with 2 log set, please check the fail reason.

and additionally, i found the line_length is used to calibration feature in dtsi description.

  • line_length = “”;
  • Pixel line length (width) for sensor mode.
  • This is used to calibrate features in our camera stack.

what is exact value of line_length? Hblank+active pixel? Hsync to Hsync?
I compared the value with imx274, imx185 dtsi and sensor datasheet.
imx185 line_lenght(=2200) is same as Hblank(=280)+Active pixel(=1920).
but imx274 is different with that. l really confused.

Anyway I set the value as below
active_w=2464, active_h=2056, line_length=2816(total pixel)? 2888(active pixel+HMAX)?

if you know the exact equation, please let me know.

thank you.

imx250 log( i used imx185 dtsi sample. so it printed as imx185)

[   45.269424] [dooman: tegra_channel_open]
[   45.273391] [VI4_FOP:1179:vi4_power_on]chan->id 0
[   45.278202] [VI4_FOP:1147:tegra_vi4_power_on]Start
[   45.287022] [dooman: tegra_channel_set_power]
[   45.291399] [CAM_COM: 778:camera_common_s_power]Start
[   45.296474] [CAM_COM: 723:camera_common_mclk_enable]Start
[   45.301894] [CAM_COM: 746:camera_common_dpd_disable]Start
[   45.307319] [dooman:imx185_power_on]
[   45.310910] [dooman:imx185_power_on] end
[   45.317326] [dooman: tegra_csi_mipi_calibrate]
[   45.321794] [dooman: tegra_csi_mipi_calibrate]-1
[   45.326443] [dooman: _t18x_tegra_mipi_bias_pad_enable]
[   45.331585] [dooman: _t18x_tegra_mipi_bias_pad_enable]-1
[   45.336901] [dooman: tegra_mipi_clk_enable]
[   45.341091] [dooman: tegra_mipi_clk_enable]-2
[   45.346539] [dooman: tegra_mipi_clk_enable]-4
[   45.350974] [dooman: tegra_csi_mipi_calibrate]-2
[   45.355595] [dooman: tegra_csi_mipi_calibrate]-3
[   45.360372] [dooman: tegra_channel_querycap]
[   45.364767] [dooman: tegra_channel_get_format]
[   45.369220] [dooman: tegra_channel_set_format]
[   45.373665] [dooman: __tegra_channel_try_format]
[   45.378283] [dooman:imx185_set_fmt]
[   45.381765] [CAM_COM: 506:camera_common_try_fmt]mf->width 2464, mf->height2056
[   45.388987] [CAM_COM:  90:camera_common_verify_code]Start
[   45.394386] [dooman: tegra_channel_fmt_align]
[   45.398744] [dooman: get_aligned_buffer_size]
[   45.403101] [dooman: __tegra_channel_set_format]
[   45.407718] [dooman:imx185_set_fmt]
[   45.411209] [CAM_COM: 579:camera_common_s_fmt](12303) size 2464 x 2056

[   45.419207] [CAM_COM: 388:camera_common_find_datafmt]Start
[   45.424693] [CAM_COM: 506:camera_common_try_fmt]mf->width 2464, mf->height2056
[   45.431937] [CAM_COM:  90:camera_common_verify_code]Start
[   45.437349] [CAM_COM: 388:camera_common_find_datafmt]Start
[   45.442837] [dooman: tegra_channel_update_format]
[   45.447540] [dooman: tegra_channel_fmt_align]
[   45.451900] [dooman: get_aligned_buffer_size]
[   45.456276] [dooman: tegra_channel_subscribe_event]
[   45.461288] [dooman: tegra_channel_queue_setup]
[   45.473973] [dooman: tegra_channel_buffer_prepare]
[   45.479195] [dooman: tegra_channel_buffer_prepare]
[   45.484420] [dooman: tegra_channel_buffer_prepare]
[   45.489639] [dooman: tegra_channel_buffer_prepare]
[   45.494439] [dooman: tegra_channel_buffer_queue]
[   45.499058] [dooman: tegra_channel_buffer_queue]
[   45.503675] [dooman: tegra_channel_buffer_queue]
[   45.508293] [dooman: tegra_channel_buffer_queue]
[   45.512911] [dooman: tegra_channel_start_streaming]
[   45.517789] [VI4_FOP: 918:vi4_channel_start_streaming]chan->id 0
[   45.523797] [dooman:imx185_get_fmt]w 997320,h -64
[   45.528504] [CAM_COM: 598:camera_common_g_fmt]Start
[   45.533382] [CAM_COM: 601:camera_common_g_fmt]fmt->code 12303, fmt->colorspace; :8

[   45.542422] [CAM_COM: 602:camera_common_g_fmt]s_data->fmt_width :2464, height 2056

[   45.551462] [dooman: vi4_channel_start_streaming]-2
[   45.556339] [VI4_FOP: 154:vi4_init]chan->id 0
[   45.560700] [dooman: vi4_channel_start_streaming]-3
[   45.565578] [dooman: vi4_channel_start_streaming]-4
[   45.570444] [dooman: vi4_channel_start_streaming]-5
[   45.575321] [dooman: vi4_channel_start_streaming]-6
[   45.580195] [dooman: vi4_channel_start_streaming]-7
[   45.585073] [dooman: vi4_channel_start_streaming]-13
[   45.590042] [VI4_FOP: 460:tegra_channel_capture_setup]chan->id 0, index 0
[   45.596826] [dooman: tegra_channel_capture_setup] -1
[   45.601790] [VI4_FOP: 345:tegra_channel_notify_enable]chan->id 0, index 0
[   45.609095] [dooman: tegra_channel_notify_enable] ndev->name 15700000.vi, chan->syncpt[index][SOF_SYNCPT_IDX] 22
[   45.619267] [dooman: tegra_channel_notify_enable] chan->syncpt[index][FE_SYNCPT_IDX] 23
[   45.627331] [dooman: tegra_channel_capture_setup] -2
[   45.632298] [dooman: tegra_channel_capture_setup] -3
[   45.637265] [dooman: tegra_channel_capture_setup] -4
[   45.642230] [dooman: tegra_channel_capture_setup] -5
[   45.647194] [dooman: tegra_channel_capture_setup] -6
[   45.652158] [dooman: tegra_channel_capture_setup] -7
[   45.657121] [dooman: tegra_channel_capture_setup] -8
[   45.662085] [dooman: tegra_channel_capture_setup] -9, width=2464
[   45.668089] [dooman: tegra_channel_capture_setup] -9, height=2056
[   45.674191] [dooman: tegra_channel_capture_setup] -9, format=32
[   45.680114] [dooman: tegra_channel_capture_setup] -9
[   45.685079] [dooman: tegra_channel_capture_setup] -10
[   45.690148] [dooman: tegra_channel_capture_setup] -11
[   45.695201] [VI4_FOP: 542:tegra_channel_capture_setup]Create Surface with imgW=2464, imgH=2056, memFmt=32

[   45.706239] [dooman: vi4_channel_start_streaming]-14
[   45.711204] [dooman: vi4_channel_start_streaming]-15
[   45.716167] [dooman: vi4_channel_start_streaming]-16
[   45.721135] [VI4_FOP: 814:tegra_channel_update_clknbw]chan->id 0, on 1
[   45.728261] [dooman: vi4_channel_start_streaming]-17
[   45.733234] [dooman: vi4_channel_start_streaming]-18
[   45.738201] [dooman: vi4_channel_start_streaming]-19
[   45.743218] [dooman: vi4_channel_start_streaming]-21
[   45.743225] [VI4_FOP: 733:tegra_channel_kthread_capture_start]chan->id 0
[   45.743226] [dooman: dequeue_buffer]
[   45.743228] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   45.743229] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   45.743240] [dooman: tegra_channel_set_stream]
[   45.743275] [dooman:imx185_s_stream]
[   45.743275] [dooman:imx185_write_table]
[   45.743278] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   45.743280] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   45.743281] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   45.743282] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 1, 
[   45.816734] [VI4_FOP: 766:tegra_channel_kthread_release]chan->id 0
[   46.742213] [dooman: vi_notify_wait] err = -11
[   46.746723] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   46.755171] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8c00]

[   46.765389] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   46.770534] [dooman: enqueue_inflight]
[   46.774398] [dooman: dequeue_buffer]
[   46.774412] [dooman: dequeue_inflight]
[   46.774418] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   46.774428] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8c00]

[   46.774432] [dooman: release_buffer]
[   46.774478] [dooman: tegra_channel_buffer_prepare]
[   46.774482] [dooman: tegra_channel_buffer_queue]
[   46.810950] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   46.816990] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   46.823860] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   46.832332] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   46.840895] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   46.849528] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 2, 
[   47.854220] [dooman: vi_notify_wait] err = -11
[   47.858722] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   47.867237] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8000]

[   47.877399] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   47.882527] [dooman: enqueue_inflight]
[   47.886371] [dooman: dequeue_buffer]
[   47.886381] [dooman: dequeue_inflight]
[   47.886386] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   47.886393] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8000]

[   47.886395] [dooman: release_buffer]
[   47.886439] [dooman: tegra_channel_buffer_prepare]
[   47.886443] [dooman: tegra_channel_buffer_queue]
[   47.922882] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   47.928929] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   47.935768] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   47.944223] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   47.952789] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   47.961434] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 3, 
[   48.966197] [dooman: vi_notify_wait] err = -11
[   48.970703] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   48.979196] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba9400]

[   48.989356] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   48.994485] [dooman: enqueue_inflight]
[   48.998298] [dooman: dequeue_buffer]
[   48.998312] [dooman: dequeue_inflight]
[   48.998320] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   48.998330] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba9400]

[   48.998333] [dooman: release_buffer]
[   49.025472] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   49.031541] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   49.038400] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   49.046867] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   49.053580] [dooman: tegra_channel_buffer_prepare]
[   49.053582] [dooman: tegra_channel_buffer_queue]
[   49.064793] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   49.073400] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 4, 
[   50.078210] [dooman: vi_notify_wait] err = -11
[   50.082709] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   50.091219] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8400]

[   50.101376] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   50.106552] [dooman: enqueue_inflight]
[   50.110394] [dooman: dequeue_buffer]
[   50.110414] [dooman: dequeue_inflight]
[   50.110423] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   50.110435] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8400]

[   50.110440] [dooman: release_buffer]
[   50.137665] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   50.143705] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   50.150522] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   50.158966] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   50.167496] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   50.168885] [dooman: tegra_channel_buffer_prepare]
[   50.168887] [dooman: tegra_channel_buffer_queue]
[   50.185529] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 5, 
[   51.190212] [dooman: vi_notify_wait] err = -11
[   51.194713] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   51.203217] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8c00]

[   51.213380] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   51.218508] [dooman: enqueue_inflight]
[   51.222310] [dooman: dequeue_buffer]
[   51.222325] [dooman: dequeue_inflight]
[   51.222332] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   51.222342] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8c00]

[   51.222345] [dooman: release_buffer]
[   51.249433] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   51.255455] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   51.262269] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   51.270069] [dooman: tegra_channel_buffer_prepare]
[   51.270072] [dooman: tegra_channel_buffer_queue]
[   51.280121] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   51.288641] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   51.297247] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 6, 
[   52.302208] [dooman: vi_notify_wait] err = -11
[   52.306703] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   52.315149] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8000]

[   52.325384] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   52.330504] [dooman: enqueue_inflight]
[   52.334338] [dooman: dequeue_buffer]
[   52.334352] [dooman: dequeue_inflight]
[   52.334359] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   52.334367] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8000]

[   52.334370] [dooman: release_buffer]
[   52.361507] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   52.367547] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   52.374367] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   52.382847] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   52.391400] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   52.395545] [dooman: tegra_channel_buffer_prepare]
[   52.395548] [dooman: tegra_channel_buffer_queue]
[   52.409444] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 7, 
[   53.414210] [dooman: vi_notify_wait] err = -11
[   53.418712] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   53.427206] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba9400]

[   53.437369] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   53.442494] [dooman: enqueue_inflight]
[   53.446335] [dooman: dequeue_buffer]
[   53.446346] [dooman: dequeue_inflight]
[   53.446352] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   53.446359] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba9400]

[   53.446361] [dooman: release_buffer]
[   53.473466] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   53.479529] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   53.486388] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   53.494842] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   53.503410] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   53.504333] [dooman: tegra_channel_buffer_prepare]
[   53.504336] [dooman: tegra_channel_buffer_queue]
[   53.521455] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 8, 
[   54.526216] [dooman: vi_notify_wait] err = -11
[   54.530731] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   54.539259] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8400]

[   54.549430] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   54.554564] [dooman: enqueue_inflight]
[   54.558368] [dooman: dequeue_buffer]
[   54.558384] [dooman: dequeue_inflight]
[   54.558391] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   54.558402] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8400]

[   54.558404] [dooman: release_buffer]
[   54.585543] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   54.591583] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   54.598395] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   54.606835] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   54.613075] [dooman: tegra_channel_buffer_prepare]
[   54.613077] [dooman: tegra_channel_buffer_queue]
[   54.624762] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   54.633370] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 9, 
[   55.638210] [dooman: vi_notify_wait] err = -11
[   55.642709] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   55.651215] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8c00]

[   55.661373] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   55.666504] [dooman: enqueue_inflight]
[   55.670332] [dooman: dequeue_buffer]
[   55.670359] [dooman: dequeue_inflight]
[   55.670382] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   55.670397] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8c00]

[   55.670402] [dooman: release_buffer]
[   55.697471] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   55.703532] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   55.710397] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   55.718853] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   55.727385] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   55.728088] [dooman: tegra_channel_buffer_prepare]
[   55.728091] [dooman: tegra_channel_buffer_queue]
[   55.745429] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 10, 
[   56.750210] [dooman: vi_notify_wait] err = -11
[   56.754714] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   56.763202] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8000]

[   56.773420] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   56.778576] [dooman: enqueue_inflight]
[   56.782406] [dooman: dequeue_buffer]
[   56.782421] [dooman: dequeue_inflight]
[   56.782428] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   56.782438] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8000]

[   56.782441] [dooman: release_buffer]
[   56.809559] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   56.815681] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   56.822578] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   56.831146] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   56.839875] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   56.848664] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 11, 
[   56.888969] [dooman: tegra_channel_buffer_prepare]
[   56.893797] [dooman: tegra_channel_buffer_queue]
[   57.854214] [dooman: vi_notify_wait] err = -11
[   57.858718] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   57.867223] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba9400]

[   57.877385] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   57.882521] [dooman: enqueue_inflight]
[   57.886366] [dooman: dequeue_buffer]
[   57.886378] [dooman: dequeue_inflight]
[   57.886384] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   57.886393] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba9400]

[   57.886395] [dooman: release_buffer]
[   57.913484] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   57.919548] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   57.926406] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   57.934867] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   57.943437] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   57.944598] [dooman: tegra_channel_buffer_prepare]
[   57.944601] [dooman: tegra_channel_buffer_queue]
[   57.961505] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 12, 
[   58.966208] [dooman: vi_notify_wait] err = -11
[   58.970706] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   58.979206] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8400]

[   58.989367] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   58.994498] [dooman: enqueue_inflight]
[   58.998301] [dooman: dequeue_buffer]
[   58.998313] [dooman: dequeue_inflight]
[   58.998321] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   58.998331] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc1ceba8400]

[   58.998334] [dooman: release_buffer]
[   59.025467] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   59.031507] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   59.038355] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267178164704
[   59.046802] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 23

[   59.054566] [dooman: tegra_channel_buffer_prepare]
[   59.054568] [dooman: tegra_channel_buffer_queue]
[   59.054603] [dooman: tegra_channel_stop_streaming]
[   59.054605] [VI4_FOP:1092:vi4_channel_stop_streaming]Start
[   59.054608] [VI4_FOP: 792:tegra_channel_stop_kthreads]chan->id 0
[   59.080995] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 22

[   59.089606] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 13, 
[   60.094245] [dooman: vi_notify_wait] err = -11
[   60.098783] [VI4_FOP: 224:vi_notify_wait]PXL_SOF syncpt timeout! err = -11

[   60.107276] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc1ceba8c00]

[   60.117433] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   60.122575] [dooman: enqueue_inflight]
[   60.126450] [VI4_FOP: 677:tegra_channel_capture_done]chan->id 0
[   60.132422] [dooman: dequeue_buffer]
[   60.136095] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   61.142217] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[   61.147845] [dooman: release_buffer]
[   61.151556] [VI4_FOP: 412:tegra_channel_notify_disable]chan->id 0
[   61.158033] [dooman: tegra_channel_queued_buf_done]
[   61.163054] [dooman: tegra_channel_set_stream]
[   61.167573] [dooman:imx185_s_stream]
[   61.171201] [dooman:imx185_write_table]
[   61.175119] [VI4_FOP: 814:tegra_channel_update_clknbw]chan->id 0, on 0
[   61.649763] [dooman: tegra_channel_close]
[   61.662869] [VI4_FOP:1205:vi4_power_off]chan->id 0
[   61.667699] [dooman: tegra_channel_set_power]
[   61.672121] [CAM_COM: 778:camera_common_s_power]Start
[   61.677279] [dooman:imx185_power_off]
[   61.681007] [CAM_COM: 763:camera_common_dpd_enable]Start
[   61.686409] [CAM_COM: 707:camera_common_mclk_disable]Start
[   61.691972] [VI4_FOP:1168:tegra_vi4_power_off]Start
[   61.696909] [dooman: tegra_channel_ec_close]
[   62.190226] [dooman: tegra_csi_mipi_calibrate]
[   62.194798] [dooman: tegra_csi_mipi_calibrate] - mipi bias_pad_diable

ov5693 log with same test code

[   26.858468] [dooman: tegra_channel_open]
[   26.862540] [VI4_FOP:1179:vi4_power_on]chan->id 0
[   26.867293] [VI4_FOP:1147:tegra_vi4_power_on]Start
[   26.873498] [dooman: tegra_channel_set_power]
[   26.877903] [CAM_COM: 778:camera_common_s_power]Start
[   26.883005] [CAM_COM: 723:camera_common_mclk_enable]Start
[   26.888651] [CAM_COM: 746:camera_common_dpd_disable]Start
[   26.894116] [dooman:ov5693_power_on] 
[   26.942664] [dooman: tegra_csi_mipi_calibrate]
[   26.947174] [dooman: tegra_csi_mipi_calibrate]-1
[   26.951924] [dooman: _t18x_tegra_mipi_bias_pad_enable]
[   26.957134] [dooman: _t18x_tegra_mipi_bias_pad_enable]-1
[   26.962522] [dooman: tegra_mipi_clk_enable]
[   26.966815] [dooman: tegra_mipi_clk_enable]-2
[   26.972304] [dooman: tegra_mipi_clk_enable]-4
[   26.977021] [dooman: tegra_csi_mipi_calibrate]-2
[   26.981695] [dooman: tegra_csi_mipi_calibrate]-3
[   26.986552] [dooman: tegra_channel_querycap]
[   26.991090] [dooman: tegra_channel_get_format]
[   26.995589] [dooman: tegra_channel_set_format]
[   27.000070] [dooman: __tegra_channel_try_format]
[   27.004721] [dooman:ov5693_set_fmt] 
[   27.008321] [CAM_COM: 506:camera_common_try_fmt]mf->width 1920, mf->height1080
[   27.015565] [CAM_COM:  90:camera_common_verify_code]Start
[   27.020977] [dooman: tegra_channel_fmt_align]
[   27.025357] [dooman: get_aligned_buffer_size]
[   27.029718] [dooman: __tegra_channel_set_format]
[   27.034355] [dooman:ov5693_set_fmt] 
[   27.037937] [CAM_COM: 579:camera_common_s_fmt](12303) size 1920 x 1080

[   27.045947] [CAM_COM: 388:camera_common_find_datafmt]Start
[   27.051433] [CAM_COM: 506:camera_common_try_fmt]mf->width 1920, mf->height1080
[   27.058660] [CAM_COM:  90:camera_common_verify_code]Start
[   27.064059] [CAM_COM: 388:camera_common_find_datafmt]Start
[   27.069543] [dooman: tegra_channel_update_format]
[   27.074248] [dooman: tegra_channel_fmt_align]
[   27.078606] [dooman: get_aligned_buffer_size]
[   27.082982] [dooman: tegra_channel_subscribe_event]
[   27.088026] [dooman: tegra_channel_queue_setup]
[   27.095895] [dooman: tegra_channel_buffer_prepare]
[   27.100857] [dooman: tegra_channel_buffer_prepare]
[   27.105806] [dooman: tegra_channel_buffer_prepare]
[   27.110775] [dooman: tegra_channel_buffer_prepare]
[   27.115566] [dooman: tegra_channel_buffer_queue]
[   27.120185] [dooman: tegra_channel_buffer_queue]
[   27.124802] [dooman: tegra_channel_buffer_queue]
[   27.129419] [dooman: tegra_channel_buffer_queue]
[   27.134037] [dooman: tegra_channel_start_streaming]
[   27.138917] [VI4_FOP: 918:vi4_channel_start_streaming]chan->id 0
[   27.144926] [dooman:ov5693_get_fmt] 
[   27.148504] [CAM_COM: 598:camera_common_g_fmt]Start
[   27.153384] [CAM_COM: 601:camera_common_g_fmt]fmt->code 12303, fmt->colorspace; :8

[   27.162433] [CAM_COM: 602:camera_common_g_fmt]s_data->fmt_width :1920, height 1080

[   27.171476] [dooman: vi4_channel_start_streaming]-2
[   27.176354] [VI4_FOP: 154:vi4_init]chan->id 0
[   27.180714] [dooman: vi4_channel_start_streaming]-3
[   27.185591] [dooman: vi4_channel_start_streaming]-4
[   27.190458] [dooman: vi4_channel_start_streaming]-5
[   27.195335] [dooman: vi4_channel_start_streaming]-6
[   27.200208] [dooman: vi4_channel_start_streaming]-7
[   27.205087] [dooman: vi4_channel_start_streaming]-13
[   27.210055] [VI4_FOP: 460:tegra_channel_capture_setup]chan->id 0, index 0
[   27.216847] [dooman: tegra_channel_capture_setup] -1
[   27.221811] [VI4_FOP: 345:tegra_channel_notify_enable]chan->id 0, index 0
[   27.229121] [dooman: tegra_channel_notify_enable] ndev->name 15700000.vi, chan->syncpt[index][SOF_SYNCPT_IDX] 21
[   27.239292] [dooman: tegra_channel_notify_enable] chan->syncpt[index][FE_SYNCPT_IDX] 22
[   27.247360] [dooman: tegra_channel_capture_setup] -2
[   27.252327] [dooman: tegra_channel_capture_setup] -3
[   27.257292] [dooman: tegra_channel_capture_setup] -4
[   27.262256] [dooman: tegra_channel_capture_setup] -5
[   27.267219] [dooman: tegra_channel_capture_setup] -6
[   27.272183] [dooman: tegra_channel_capture_setup] -7
[   27.277147] [dooman: tegra_channel_capture_setup] -8
[   27.282112] [dooman: tegra_channel_capture_setup] -9, width=1920
[   27.288116] [dooman: tegra_channel_capture_setup] -9, height=1080
[   27.294214] [dooman: tegra_channel_capture_setup] -9, format=32
[   27.300135] [dooman: tegra_channel_capture_setup] -9
[   27.305101] [dooman: tegra_channel_capture_setup] -10
[   27.310154] [dooman: tegra_channel_capture_setup] -11
[   27.315206] [VI4_FOP: 542:tegra_channel_capture_setup]Create Surface with imgW=1920, imgH=1080, memFmt=32

[   27.326239] [dooman: vi4_channel_start_streaming]-14
[   27.331204] [dooman: vi4_channel_start_streaming]-15
[   27.336169] [dooman: vi4_channel_start_streaming]-16
[   27.341137] [VI4_FOP: 814:tegra_channel_update_clknbw]chan->id 0, on 1
[   27.348293] [dooman: vi4_channel_start_streaming]-17
[   27.353267] [dooman: vi4_channel_start_streaming]-18
[   27.358234] [dooman: vi4_channel_start_streaming]-19
[   27.363243] [dooman: vi4_channel_start_streaming]-21
[   27.363247] [VI4_FOP: 733:tegra_channel_kthread_capture_start]chan->id 0
[   27.363249] [dooman: dequeue_buffer]
[   27.363251] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   27.363252] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   27.363264] [dooman: tegra_channel_set_stream]
[   27.363293] [dooman:ov5693_s_stream] 
[   27.399420] [VI4_FOP: 766:tegra_channel_kthread_release]chan->id 0
[   27.416737] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 0, ts->tv_nsec -267076665824
[   27.425200] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   27.433724] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   27.442333] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 1, 
[   27.450422] [dooman: vi_notify_wait] err = 0
[   27.454694] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0e800]

[   27.464773] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   27.469825] [dooman: enqueue_inflight]
[   27.473579] [dooman: dequeue_buffer]
[   27.473584] [dooman: dequeue_inflight]
[   27.473586] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   27.473590] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0e800]

[   27.473591] [dooman: release_buffer]
[   27.473699] [dooman: tegra_channel_buffer_prepare]
[   27.473701] [dooman: tegra_channel_buffer_queue]
[   27.509941] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   27.515947] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   27.522754] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 241790432
[   27.530921] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   27.539441] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   27.548046] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 2, 
[   27.556131] [dooman: vi_notify_wait] err = 0
[   27.560402] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0cc00]

[   27.570483] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   27.575537] [dooman: enqueue_inflight]
[   27.579292] [dooman: dequeue_buffer]
[   27.579296] [dooman: dequeue_inflight]
[   27.579298] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   27.579301] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0cc00]

[   27.579303] [dooman: release_buffer]
[   27.579313] [dooman: tegra_channel_buffer_prepare]
[   27.579314] [dooman: tegra_channel_buffer_queue]
[   27.615651] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   27.621656] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   27.628453] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 341784160
[   27.636626] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   27.645151] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   27.653760] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 3, 
[   27.661847] [dooman: vi_notify_wait] err = 0
[   27.666119] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0d800]

[   27.676202] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   27.681257] [dooman: enqueue_inflight]
[   27.685010] [dooman: dequeue_buffer]
[   27.685015] [dooman: dequeue_inflight]
[   27.685016] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   27.685018] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0d800]

[   27.685019] [dooman: release_buffer]
[   27.695647] [dooman: tegra_channel_buffer_prepare]
[   27.695649] [dooman: tegra_channel_buffer_queue]
[   27.721444] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   27.727451] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   27.734252] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 441777920
[   27.742425] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   27.750944] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   27.759553] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 4, 
[   27.767639] [dooman: vi_notify_wait] err = 0
[   27.771913] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0d000]

[   27.782011] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   27.787067] [dooman: enqueue_inflight]
[   27.790820] [dooman: dequeue_buffer]
[   27.790824] [dooman: dequeue_inflight]
[   27.790825] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   27.790828] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0d000]

[   27.790829] [dooman: release_buffer]
[   27.801454] [dooman: tegra_channel_buffer_prepare]
[   27.801456] [dooman: tegra_channel_buffer_queue]
[   27.827258] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   27.833263] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   27.840063] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 541771648
[   27.848237] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   27.856755] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   27.865365] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 5, 
[   27.873453] [dooman: vi_notify_wait] err = 0
[   27.877725] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0e800]

[   27.887804] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   27.892888] [dooman: enqueue_inflight]
[   27.896647] [dooman: dequeue_buffer]
[   27.896653] [dooman: dequeue_inflight]
[   27.896655] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   27.896659] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0e800]

[   27.896661] [dooman: release_buffer]
[   27.907334] [dooman: tegra_channel_buffer_prepare]
[   27.907335] [dooman: tegra_channel_buffer_queue]
[   27.933026] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   27.939032] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   27.945833] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 641765376
[   27.954005] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   27.962526] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   27.971134] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 6, 
[   27.979222] [dooman: vi_notify_wait] err = 0
[   27.983495] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0cc00]

[   27.993573] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   27.998627] [dooman: enqueue_inflight]
[   28.002383] [dooman: dequeue_buffer]
[   28.002386] [dooman: dequeue_inflight]
[   28.002388] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.002391] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0cc00]

[   28.002391] [dooman: release_buffer]
[   28.013094] [dooman: tegra_channel_buffer_prepare]
[   28.013096] [dooman: tegra_channel_buffer_queue]
[   28.038749] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.044755] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.051556] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 741759136
[   28.059728] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.068247] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.076854] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 7, 
[   28.084942] [dooman: vi_notify_wait] err = 0
[   28.089214] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0d800]

[   28.099295] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.104348] [dooman: enqueue_inflight]
[   28.108101] [dooman: dequeue_buffer]
[   28.108104] [dooman: dequeue_inflight]
[   28.108106] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.108109] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0d800]

[   28.108109] [dooman: release_buffer]
[   28.118675] [dooman: tegra_channel_buffer_prepare]
[   28.118677] [dooman: tegra_channel_buffer_queue]
[   28.144476] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.150485] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.157285] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 875084096
[   28.165459] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.173978] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.182587] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 8, 
[   28.190672] [dooman: vi_notify_wait] err = 0
[   28.194944] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0d000]

[   28.205023] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.210078] [dooman: enqueue_inflight]
[   28.213832] [dooman: dequeue_buffer]
[   28.213836] [dooman: dequeue_inflight]
[   28.213838] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.213840] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0d000]

[   28.213840] [dooman: release_buffer]
[   28.224476] [dooman: tegra_channel_buffer_prepare]
[   28.224478] [dooman: tegra_channel_buffer_queue]
[   28.250203] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.256211] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.263011] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 37, ts->tv_nsec 975077856
[   28.271186] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.279706] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.288313] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 9, 
[   28.296399] [dooman: vi_notify_wait] err = 0
[   28.300672] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0e800]

[   28.310752] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.315804] [dooman: enqueue_inflight]
[   28.319558] [dooman: dequeue_buffer]
[   28.319562] [dooman: dequeue_inflight]
[   28.319564] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.319566] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0e800]

[   28.319567] [dooman: release_buffer]
[   28.330221] [dooman: tegra_channel_buffer_prepare]
[   28.330222] [dooman: tegra_channel_buffer_queue]
[   28.355931] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.361942] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.368743] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 38, ts->tv_nsec 75071584
[   28.376830] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.385351] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.393959] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 10, 
[   28.402132] [dooman: vi_notify_wait] err = 0
[   28.406405] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0cc00]

[   28.416484] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.421539] [dooman: enqueue_inflight]
[   28.425294] [dooman: dequeue_buffer]
[   28.425298] [dooman: dequeue_inflight]
[   28.425302] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.425304] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0cc00]

[   28.425305] [dooman: release_buffer]
[   28.436015] [dooman: tegra_channel_buffer_prepare]
[   28.436018] [dooman: tegra_channel_buffer_queue]
[   28.461676] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.467683] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.474486] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 38, ts->tv_nsec 175065312
[   28.482661] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.491180] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.499789] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 11, 
[   28.507964] [dooman: vi_notify_wait] err = 0
[   28.512236] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0d800]

[   28.522317] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.527373] [dooman: enqueue_inflight]
[   28.531127] [dooman: dequeue_buffer]
[   28.531132] [dooman: dequeue_inflight]
[   28.531134] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.531136] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0d800]

[   28.531137] [dooman: release_buffer]
[   28.541848] [dooman: tegra_channel_buffer_prepare]
[   28.541849] [dooman: tegra_channel_buffer_queue]
[   28.567486] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.573492] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.580291] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 38, ts->tv_nsec 275059040
[   28.588464] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.596984] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.605589] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 12, 
[   28.613768] [dooman: vi_notify_wait] err = 0
[   28.618040] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0d000]

[   28.628119] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.633171] [dooman: enqueue_inflight]
[   28.636924] [dooman: dequeue_buffer]
[   28.636928] [dooman: dequeue_inflight]
[   28.636930] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.636933] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0d000]

[   28.636934] [dooman: release_buffer]
[   28.647559] [dooman: tegra_channel_buffer_prepare]
[   28.647561] [dooman: tegra_channel_buffer_queue]
[   28.647579] [dooman: tegra_channel_stop_streaming]
[   28.647582] [VI4_FOP:1092:vi4_channel_stop_streaming]Start
[   28.647585] [VI4_FOP: 792:tegra_channel_stop_kthreads]chan->id 0
[   28.689553] [VI4_FOP: 556:tegra_channel_capture_frame]chan->id 0
[   28.695563] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.702364] [VI4_FOP: 183:vi_notify_wait]chan->id 0, ts->tv_sec 38, ts->tv_nsec 375052768
[   28.710536] [VI4_FOP: 195:vi_notify_wait]chan->syncpt[i][FE_SYNCPT_IDX] = 22

[   28.719056] [VI4_FOP: 207:vi_notify_wait]chan->syncpt[i][SOF_SYNCPT_IDX] = 21

[   28.727684] [VI4_FOP: 218:vi_notify_wait]chan->vi->ndev->name 15700000.vi, thresh[i] 13, 
[   28.735867] [dooman: vi_notify_wait] err = 0
[   28.740142] [VI4_FOP: 578:tegra_channel_capture_frame]vi4 got SOF syncpt buf[ffffffc076e0e800]

[   28.750225] [VI4_FOP: 163:vi4_check_status]chan->id 0
[   28.755282] [dooman: enqueue_inflight]
[   28.759045] [dooman: dequeue_inflight]
[   28.762844] [VI4_FOP: 609:tegra_channel_release_frame]chan->id 0
[   28.768924] [VI4_FOP: 632:tegra_channel_release_frame]vi4 got EOF syncpt buf[ffffffc076e0e800]

[   28.779158] [dooman: release_buffer]
[   28.782845] [VI4_FOP: 677:tegra_channel_capture_done]chan->id 0
[   28.788808] [dooman: dequeue_buffer]
[   28.792539] [VI4_FOP: 246:tegra_channel_surface_setup]chan->id 0, index 0
[   28.841295] [dooman: release_buffer]
[   28.844936] [VI4_FOP: 412:tegra_channel_notify_disable]chan->id 0
[   28.851440] [dooman: tegra_channel_queued_buf_done]
[   28.856455] [dooman: tegra_channel_set_stream]
[   28.860955] [dooman:ov5693_s_stream] 
[   28.864917] [VI4_FOP: 814:tegra_channel_update_clknbw]chan->id 0, on 0
[   28.895109] [dooman: tegra_channel_close]
[   28.900912] [VI4_FOP:1205:vi4_power_off]chan->id 0
[   28.905740] [dooman: tegra_channel_set_power]
[   28.910167] [CAM_COM: 778:camera_common_s_power]Start
[   28.915257] [dooman:ov5693_power_off] 
[   28.921402] [CAM_COM: 763:camera_common_dpd_enable]Start
[   28.926815] [CAM_COM: 707:camera_common_mclk_disable]Start
[   28.932479] [VI4_FOP:1168:tegra_vi4_power_off]Start
[   28.937388] [dooman: tegra_channel_ec_close]
[   29.430831] [dooman: tegra_csi_mipi_calibrate]
[   29.435345] [dooman: tegra_csi_mipi_calibrate] - mipi bias_pad_diable

hello hojung8086,

you could check the register settings about line_length and frame_length, or you could contact your sensor vendor to have correct values.

also, please review the device tree settings, there’s documentation have definitions of the properties,
[L4t documentation]-> [Camera Development]-> [Sensor Driver Programming Guide]
there’s additional wiki page for your reference, https://elinux.org/Jetson_TX2/28.1_Camera_BringUp
thanks

hello JerryChang

I already set the register properly(2464x2056),
and I confirmed that the exact image is transferred to tegra csi port with csi analyzer.
so I don’t think that I need to contact sensor vendor. I need nvidia’s help.
i think that csi calibration feature is designed by nvidia and the parameters to calibrate also for your design.

I’d like to know is that the exact definition of that [line_length] and pixel format for RAW10bit(Gray10bit).
please answer this exact information not to mention to check reference.

thank you.

Hi, I am companion of hojung8086.

in <…/NVIDIA_Tegra_Linux_Driver_Package/nvl4t_docs/Tegra Linux Driver Package Development Guide> codument,

line_length is defined as below
: Specifies the pixel line width horizontal timing size for the sensor mode for calibrating the features in the camera stack. This value must be equal or larger than active_w.

However, the word ‘Lager than …’ confuses me. It is unclear how large they should be.

We use SONY IMX250 image sonsor.

In IMX250 datasheet, Additional many line related information (Refer to figure)

https://drive.google.com/open?id=17-wvq_kt2fmzemVJpmTPDOcOq3GvTDe6

Would you please give us correct number of ‘line_length’ to set the parameter?

What values have you tried?

From the image you posted, it seems like the values you should try include:

  • 3136
  • 3472
  • 4224

hello hojung8086,

line_length specify the “timing” of the horizontal direction. this should be the same values as your register settings in your sensor driver.
there are different naming with each sensor vendor, suggest your start with searching HTS or HMAX in your sensor specification for more details.
thanks

Hello hojung8086 and send.happynews,

did you succeed in getting images from your IMX250 ?

I am busy with a similar configuration IMX250 + LIF-MD6000 + TX2
My IMX250 is configured in 12-bits/4ch mode, but my TX2 complains not receiving images.

Could you share your register configuration for the IMX250 (even if it is for a different bits or channels configuration ?

TIA