Capture failed on tx2

Hi.

I’d like to add a custom module so I modified source code and device-tree based on ov5693.

First of all, I checked that It’s possible to capture images without some settings using ov5693.

Some settings in ‘ov5693.c’ are like this :

static const u32 ctrl_cid_list[] = {
//	TEGRA_CAMERA_CID_GAIN,
//	TEGRA_CAMERA_CID_EXPOSURE,
//	TEGRA_CAMERA_CID_EXPOSURE_SHORT,
//	TEGRA_CAMERA_CID_FRAME_RATE,
	TEGRA_CAMERA_CID_GROUP_HOLD,
//	TEGRA_CAMERA_CID_HDR_EN,
//	TEGRA_CAMERA_CID_EEPROM_DATA,
//	TEGRA_CAMERA_CID_OTP_DATA,
//	TEGRA_CAMERA_CID_FUSE_ID,
};

And testing command is below.

v4l2-ctl --set-fmt-video=width=1280,height=480,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=ov5693.raw

However, when I tried to capture images using my module, it fails as shown below.

[   32.496853] ISM Camera Test : imx000_open() Start
[   32.496858] ISM Camera Test : imx000_open() End
[   32.498553] ISM Camera Test : imx000_power_on() Start
[   32.498567] ISM Camera Test : imx000_gpio_set() Start
[   32.498572] ISM Camera Test : imx000_gpio_set() End
[   32.500594] ISM Camera Test : imx000_gpio_set() Start
[   32.500597] ISM Camera Test : imx000_gpio_set() End
[   32.502626] ISM Camera Test : imx000_power_on() End
[   32.504063] ISM Camera Test : imx000_power_off() Start
[   32.504101] ISM Camera Test : imx000_gpio_set() Start
[   32.504104] ISM Camera Test : imx000_gpio_set() End
[   32.504115] ISM Camera Test : imx000_gpio_set() Start
[   32.504117] ISM Camera Test : imx000_gpio_set() End
[   32.506145] ISM Camera Test : imx000_power_off() End
[  107.915499] ISM Camera Test : imx000_power_on() Start
[  107.915515] ISM Camera Test : imx000_gpio_set() Start
[  107.915521] ISM Camera Test : imx000_gpio_set() End
[  107.917560] ISM Camera Test : imx000_gpio_set() Start
[  107.917567] ISM Camera Test : imx000_gpio_set() End
[  107.919639] ISM Camera Test : imx000_power_on() End
[  107.925721] ISM Camera Test : imx000_set_mode() Start
[  107.925725] ISM Camera Test : imx000_write_table() Start
[  108.060247] ISM Camera Test : imx000_write_table() End
[  108.060251] ISM Camera Test : imx000_set_mode() End
[  108.060255] ISM Camera Test : imx000_start_streaming() Start
[  108.060257] ISM Camera Test : imx000_write_table() Start
[  108.060393] ISM Camera Test : imx000_write_table() End
[  108.060395] ISM Camera Test : imx000_read_reg() Start
[  108.060563] ISM Camera Test : imx000_read_reg() End
[  108.060565] ISM Camera Test : imx000_write_reg() Start
[  108.060701] ISM Camera Test : imx000_write_reg() End
[  108.060703] ISM Camera Test : imx000_read_reg() Start
[  108.060869] ISM Camera Test : imx000_read_reg() End
[  108.060870] ISM Camera Test : imx000_write_reg() Start
[  108.061002] ISM Camera Test : imx000_write_reg() End
[  108.061003] ISM Camera Test : imx000_start_streaming() End
[  108.264072] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  108.270503] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  108.280256] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000c
[  108.289013] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  108.296871] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  108.508063] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  108.514522] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  108.524386] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  108.533195] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000e
[  108.541073] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000e
[  108.752076] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  108.758460] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  108.768208] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  108.776937] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  108.784883] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  108.996065] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  109.002495] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  109.012331] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  109.021145] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  109.028993] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  109.240056] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  109.246469] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  109.256199] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  109.264954] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  109.272808] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  109.484066] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  109.490548] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  109.501400] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  109.510142] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  109.518005] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  109.728122] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  109.734601] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  109.744817] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  109.753629] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  109.761585] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  109.972222] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  109.978729] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  109.988819] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  109.997691] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  110.005648] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  110.216297] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  110.222809] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  110.233130] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  110.241942] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  110.249926] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  110.460215] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  110.466791] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  110.478221] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  110.487101] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  110.495062] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  110.708234] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  110.714740] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  110.725008] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  110.733895] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  110.742442] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  110.952198] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  110.958741] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  110.970544] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  110.979353] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  110.987259] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  111.200176] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  111.206696] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  111.218430] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  111.227340] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  111.235352] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  111.448169] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  111.454681] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  111.466183] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  111.475029] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  111.482964] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  111.692270] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  111.698809] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  111.708872] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  111.717679] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  111.725649] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  111.936123] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  111.943092] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  111.953851] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  111.962861] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  111.970963] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  112.180108] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  112.186884] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  112.197316] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  112.206218] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  112.214184] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  112.424158] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  112.431168] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  112.441335] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  112.450156] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  112.458136] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  112.668061] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  112.674713] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  112.685415] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  112.694146] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  112.702008] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  112.912344] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  112.918914] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  112.930030] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  112.938909] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  112.946850] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  113.156055] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  113.162439] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  113.172252] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  113.181008] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  113.188916] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  113.400121] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  113.406533] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  113.417554] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  113.426390] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  113.434290] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  113.644029] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  113.650470] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  113.660311] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  113.669130] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  113.677007] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  113.888056] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  113.894568] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  113.904413] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  113.913335] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  113.921284] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  114.132030] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  114.138476] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  114.149719] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  114.158461] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  114.166366] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  114.376022] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  114.382400] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  114.392168] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  114.400961] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  114.408829] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  114.620125] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  114.626591] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  114.637645] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  114.646520] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  114.654386] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  114.864110] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  114.870608] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  114.880532] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  114.889363] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  114.897270] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  115.108078] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  115.114512] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  115.124288] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  115.133067] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  115.140962] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  115.352101] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  115.358668] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  115.369734] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  115.378500] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  115.386377] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  115.596067] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  115.602600] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  115.613541] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  115.622417] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  115.630380] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  115.840007] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  115.846419] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  115.856181] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  115.864942] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  115.872883] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c
[  116.084050] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  116.090566] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  116.100445] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x0000000e
[  116.109238] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x0000000c
[  116.117146] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x0000000c

Now, I don’t know which part do I need to check.

Please help me.

Thank you.

Get the trace log may help.

https://elinux.org/Jetson_TX2_Camera_BringUp