Capture image error

v4l2-ctl -d /dev/video2 --set-fmt-video=width=960,height=960,pixelformat=BG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100

iking@iking:~$ [  183.923549] bwmgr API not supported
[  186.565372] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  186.574527] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  186.584128] (NULL device *): vi_capture_control_message: NULL VI channel received
[  186.591863] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=3, csi_port=3
[  186.602531] (NULL device *): vi_capture_control_message: NULL VI channel received
[  186.610573] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  189.125384] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  189.134535] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  189.144126] (NULL device *): vi_capture_control_message: NULL VI channel received
[  189.151856] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=3, csi_port=3
[  189.162524] (NULL device *): vi_capture_control_message: NULL VI channel received
[  190.181494] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[  190.189828] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_control_send_message: failed to send IVC control message
[  191.205481] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[  191.213870] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[  191.221231] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[  192.949520] ------------[ cut here ]------------
[  192.954325] WARNING: CPU: 3 PID: 2375 at lib/refcount.c:25 refcount_warn_saturate+0x98/0x140
[  192.963364] ---[ end trace 9bd269c5eebbfb3a ]---
[  192.968144] ------------[ cut here ]------------
[  192.972921] WARNING: CPU: 3 PID: 2375 at lib/refcount.c:28 refcount_warn_saturate+0xec/0x140
[  192.981894] ---[ end trace 9bd269c5eebbfb3b ]---
[  192.987305] sc432ai 33-0036: stop stream success
[  193.030840] bwmgr API not supported
[  193.041117] sc432ai 33-0036: sc432ai_power_off
[  194.085654] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[  194.094005] tegra194-vi5 13e40000.host1x:vi1@14c00000: csi_stream_release: failed to disable nvcsi tpg on stream 3 virtual chan0

root@iking:/home/iking/tuning# v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'BG10' (10-bit Bayer BGBG/GRGR)
	Size: Discrete 960x960
		Interval: Discrete 0.033s (30.000 fps)
	Size: Discrete 800x800
		Interval: Discrete 0.033s (30.000 fps)
	Size: Discrete 1728x1728
		Interval: Discrete 0.028s (36.000 fps)

root@iking:/home/iking/tuning# v4l2-compliance -d /dev/video2
v4l2-compliance SHA: not available, 64 bits

Compliance test for tegra-video device /dev/video2:

Driver Info:
Driver name : tegra-video
Card type : vi-output, sc432ai 33-0036
Bus info : platform:tegra-capture-vi:3
Driver version : 5.10.216
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : tegra-camrtc-ca
Model : NVIDIA Tegra Video Input Device
Serial :
Bus info :
Media version : 5.10.216
Hardware revision: 0x00000003 (3)
Driver version : 5.10.216
Interface Info:
ID : 0x0300003b
Type : V4L Video
Entity Info:
ID : 0x00000039 (57)
Name : vi-output, sc432ai 33-0036
Function : V4L2 I/O
Pad 0x0100003a : 0: Sink
Link 0x0200003f: from remote pad 0x100000c of entity ‘13e40000.host1x:nvcsi@15a00000-’: Data, Enabled

Required ioctls:
test MC information (see ‘Media Driver Info’ above): OK
test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
test second /dev/video2 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK

Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VIDIOC_LOG_STATUS: OK

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls (Input 0):
warn: v4l2-test-controls.cpp(92): Gain: (max - min) % step != 0
warn: v4l2-test-controls.cpp(92): Exposure: (max - min) % step != 0
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 1 Private Controls: 20

Format ioctls (Input 0):
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
fail: v4l2-test-formats.cpp(1280): ret && node->has_frmintervals
test VIDIOC_G/S_PARM: FAIL
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)

Codec ioctls (Input 0):
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
test VIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls (Input 0):
fail: v4l2-test-buffers.cpp(715): q.create_bufs(node, 1, &fmt) != EINVAL
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)

Total for tegra-video device /dev/video2: 45, Succeeded: 43, Failed: 2, Warnings: 2

root@iking:/home/iking/tuning# media-ctl -p -d /dev/media0
Media controller API version 5.10.216

Media device information

driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.216

Device topology

  • entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 0 link)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev0
    pad0: Sink
    pad1: Source

  • entity 4: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev1
    pad0: Sink
    ← “sc432ai 31-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 31-0036”:0 [ENABLED]

  • entity 7: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev2
    pad0: Sink
    ← “sc432ai 32-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 32-0036”:0 [ENABLED]

  • entity 10: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev3
    pad0: Sink
    ← “sc432ai 33-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 33-0036”:0 [ENABLED]

  • entity 13: 13e40000.host1x:nvcsi@15a00000- (2 pads, 0 link)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev4
    pad0: Sink
    pad1: Source

  • entity 16: 13e40000.host1x:nvcsi@15a00000- (2 pads, 0 link)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev5
    pad0: Sink
    pad1: Source

  • entity 19: sc432ai 31-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev6
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 21: vi-output, sc432ai 31-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

  • entity 43: sc432ai 32-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev7
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 45: vi-output, sc432ai 32-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video1
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

  • entity 55: sc432ai 33-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev8
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 57: vi-output, sc432ai 33-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video2
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

The above is some debugging information . Can you help me troubleshoot the problem?

Can you help solve it as soon as possible !

hello 550399056,

it’s unable to receive camera frames according to error messages,

hence…
let’s narrow down the issue,
please refer to Applications Using V4L2 IOCTL Directly by running with V4L2 IOCTL to verify basic camera functionality.

besides, may I also know which Jetpack release version you’re working with.
you’re able to check release tag, (i.e. $ cat /etc/nv_tegra_release) for confirmation.

version info:
root@iking:/home/iking# cat /etc/nv_tegra_release

R35 (release), REVISION: 6.0, GCID: 37391689, BOARD: t186ref, EABI: aarch64, DATE: Wed Aug 28 09:12:27 UTC 2024

How to operate it specifically:

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

[  492.298761] bwmgr API not supported
[  495.041348] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  495.050532] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  495.060143] (NULL device *): vi_capture_control_message: NULL VI channel received
[  495.067881] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  495.078630] (NULL device *): vi_capture_control_message: NULL VI channel received
[  495.086909] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  497.601190] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  497.610346] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  497.619943] (NULL device *): vi_capture_control_message: NULL VI channel received
[  497.627680] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  497.638371] (NULL device *): vi_capture_control_message: NULL VI channel received
[  498.657127] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[  498.665467] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_control_send_message: failed to send IVC control message
[  499.681129] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[  499.689623] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[  499.696992] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed

thank you!

dts :
tegra234-camera-rbpcv2-sc432ai.txt (41.8 KB)

hello 550399056,

don’t it should be video2?

please also let me know what’s your camera setups,
do you have multi-camera in your system, and it’s only one of camera unable to stream?

We have four cameras, but none of them are working properly. The printed logs are the same。

can you check it? thank you!

hello 550399056,

since it’s Orin Nano, please aware that CSI0 D1 and CSI1 D0 P/N will always been swizzled for P/N.
please use device tree property, lane_polarity to configure a polarity swap on any lane.

but… your device tree having 6-cam definition.
please double check the port binding, and updating each node with your real hardware connections.

We have used this set of things on Xavier nx, and the peripheral hardware has not changed!
How to determine if the polarity has been reversed and how to set it?

hello 550399056,

you may refer to Camera Driver Porting to review your drivers.

please see-also IMX219 device tree for lane_polarity settings,
for instance, $public_sources/r36.4/Linux_for_Tegra/source/kernel_src/hardware/nvidia/t23x/nv-public/overlay/tegra234-camera-rbpcv2-imx219.dtsi

A new phenomenon:
I can only retrieve one image through this command, and the second retrieval will time out.

root@iking:/home/iking/tuning# v4l2-ctl -d /dev/video1 --set-fmt-video=width=800,height=800,pixelformat=BG10 --set-ctrl bypass_mode=0,gain=901,exposure=29999, --stream-mmap --stream-count=1 --stream-to=test1.raw
<
root@iking:/home/iking/tuning# v4l2-ctl -d /dev/video1 --set-fmt-video=width=800,height=800,pixelformat=BG10 --set-ctrl bypass_mode=0,gain=901,exposure=29999, --stream-mmap --stream-count=1 --stream-to=test1.raw
		VIDIOC_STREAMON returned -1 (Remote I/O error)
[   58.576001] bwmgr API not supported
[   58.719009] sc432ai 33-0036: stop stream success
[   58.761422] bwmgr API not supported
[   58.771883] sc432ai 33-0036: sc432ai_power_off
[   59.636737] bwmgr API not supported
[   59.655715] regmap_util_write_table_8:regmap_util_write_table:-121
[   59.659327] sc432ai 33-0036: sc432ai_set_mode set mode 1 failed, err(-121).
[   59.672862] sc432ai 33-0036: Error writing mode
[   62.146723] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[   62.155874] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[   62.165473] (NULL device *): vi_capture_control_message: NULL VI channel received
[   62.173210] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=3, csi_port=3
[   62.183878] (NULL device *): vi_capture_control_message: NULL VI channel received
[   62.192622] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[   62.202217] WARNING: CPU: 1 PID: 1862 at drivers/media/common/videobuf2/videobuf2-core.c:1603 vb2_start_streaming+0xdc/0x160
[   62.213950] ---[ end trace 40fa51009f434632 ]---
[   63.822492] bwmgr API not supported
[   63.833587] regmap_util_write_table_8:regmap_util_write_table:-121
[   63.837215] sc432ai 33-0036: sc432ai_set_mode set mode 1 failed, err(-121).
[   63.850749] sc432ai 33-0036: Error writing mode
[   66.498718] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[   66.507886] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[   66.517486] (NULL device *): vi_capture_control_message: NULL VI channel received
[   66.525230] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=3, csi_port=3
[   66.535924] (NULL device *): vi_capture_control_message: NULL VI channel received
[   67.554940] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[   67.563296] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_control_send_message: failed to send IVC control message
[   68.578736] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[   68.587145] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[   68.594515] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[   68.602393] WARNING: CPU: 1 PID: 1869 at drivers/media/common/videobuf2/videobuf2-core.c:1603 vb2_start_streaming+0xdc/0x160
[   68.614131] ---[ end trace 40fa51009f434633 ]---
[   69.634936] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[   69.643303] tegra194-vi5 13e40000.host1x:vi1@14c00000: csi_stream_release: failed to disable nvcsi tpg on stream 3 virtual channel 0

another phenomenon

[  109.501100] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 2, flags: 0, err_data 162
[  109.531565] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 3, flags: 0, err_data 162
[  109.553497] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 4, flags: 0, err_data 162
[  109.592663] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 162
[  109.622906] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 6, flags: 0, err_data 64
[  109.706048] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 9, flags: 0, err_data 6292066
[  109.736577] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 10, flags: 0, err_data 6291554
[  109.775775] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 11, flags: 0, err_data 162
[  109.806500] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 12, flags: 0, err_data 162
[  109.828125] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 13, flags: 0, err_data 6291554
[  109.867526] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 14, flags: 0, err_data 162
[  109.889166] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 15, flags: 0, err_data 6291554
[  109.919725] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 16, flags: 0, err_data 162
[  109.929788] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  109.980767] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 18, flags: 0, err_data 162
[  109.990823] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  110.020226] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  110.041788] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 162
[  110.072307] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 162
[  110.082266] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  110.111597] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  110.142167] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 23, flags: 0, err_data 162

Do I need to add it in mode? as:

I have mode0, mode1, and mode2, and each mode requires the addition of lane-polarity=“2”;

hello 550399056,

it looks like driver issue according to below,
please dig into your sensor driver for the root cause why it’s reporting set mode failure.

I can capture the data of CSI2 and CSI3 normally using the following command, but I cannot capture the data of CS1.
gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=1 ! “video/x-raw(memory:NVMM),format=(string)NV12, width=(int)1704, height=(int)1704” ! nvjpegenc ! filesink location=test0.jpg

hello 550399056,

please aware that CSI0 D1 and CSI1 D0 P/N will always been swizzled for P/N on Orin Nano.
you may try setting lane_polarity to configure a polarity swap on any lane.

root@iking:/home/iking/tuning# cat /proc/device-tree/i2c@3180000/tca9548@70/i2c@1/rbpcv3_sc432ai_b@36/mode0/lane_polarity
1root@iking:/home/iking/tuning#

I have made the modifications, but I still cannot capture the image. How should we investigate next?

I saw data on the CSI1 bus using an oscilloscope.

error log:

root@iking:/home/iking/tuning# gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=1 ! "video/x-raw(memory:NVMM),format=(string)NV12, width=(int)1704, height=(int)1704" ! nvjpegenc ! filesink location=test0.jpg 
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 960 x 960 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 87.471001; Exposure Range min 16000, max 8333000;

GST_ARGUS: 800 x 800 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 87.471001; Exposure Range min 26000, max 33324000;

GST_ARGUS: 1728 x 1728 FR = 36.000000 fps Duration = 27777778 ; Analog Gain range min 1.000000, max 87.471001; Exposure Range min 26000, max 27779000;

GST_ARGUS: Running with following settings:
   Camera index = 0 
   Camera mode  = 2 
   Output Stream W = 1728 H = 1728 
   seconds to Run    = 0 
   Frame Rate = 36.000000 
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:723 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:242 (propagating)
Got EOS from element "pipeline0".
Execution ended after 0:00:04.003142176
Setting pipeline to NULL ...
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
Freeing pipeline ...

 CaptureSchedule-2685    [002] ....   230.860124: tegra_channel_set_stream: enable : 0x0
 CaptureSchedule-2685    [002] ....   230.860126: tegra_channel_set_stream: sc432ai 31-0036 : 0x0
 CaptureSchedule-2685    [002] ....   230.901111: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
 CaptureSchedule-2685    [002] ....   230.901116: csi_s_stream: enable : 0x0
     kworker/0:5-351     [000] ....   230.903722: rtcpu_nvcsi_intr: tstamp:7748506039 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903725: rtcpu_nvcsi_intr: tstamp:7748506039 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903725: rtcpu_nvcsi_intr: tstamp:7748506551 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000048
     kworker/0:5-351     [000] ....   230.903726: rtcpu_nvcsi_intr: tstamp:7748506551 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000048
     kworker/0:5-351     [000] ....   230.903726: rtcpu_nvcsi_intr: tstamp:7748507062 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903727: rtcpu_nvcsi_intr: tstamp:7748507062 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00001040
     kworker/0:5-351     [000] ....   230.903727: rtcpu_nvcsi_intr: tstamp:7748507573 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x10000000
     kworker/0:5-351     [000] ....   230.903728: rtcpu_nvcsi_intr: tstamp:7748507573 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903728: rtcpu_nvcsi_intr: tstamp:7748508076 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903728: rtcpu_nvcsi_intr: tstamp:7748508548 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903729: rtcpu_nvcsi_intr: tstamp:7748508548 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000048
     kworker/0:5-351     [000] ....   230.903729: rtcpu_nvcsi_intr: tstamp:7748509054 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000048
     kworker/0:5-351     [000] ....   230.903730: rtcpu_nvcsi_intr: tstamp:7748509054 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903730: rtcpu_nvcsi_intr: tstamp:7748509558 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903731: rtcpu_nvcsi_intr: tstamp:7748510212 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903731: rtcpu_nvcsi_intr: tstamp:7748510212 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903731: rtcpu_nvcsi_intr: tstamp:7748510720 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903732: rtcpu_nvcsi_intr: tstamp:7748510720 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903732: rtcpu_nvcsi_intr: tstamp:7748511226 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903732: rtcpu_nvcsi_intr: tstamp:7748511226 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903733: rtcpu_nvcsi_intr: tstamp:7748511752 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x10000000
     kworker/0:5-351     [000] ....   230.903733: rtcpu_nvcsi_intr: tstamp:7748511752 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00001000
     kworker/0:5-351     [000] ....   230.903734: rtcpu_nvcsi_intr: tstamp:7748512255 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903734: rtcpu_nvcsi_intr: tstamp:7748512255 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903734: rtcpu_nvcsi_intr: tstamp:7748512766 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.903735: rtcpu_nvcsi_intr: tstamp:7748512766 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904028: rtcpu_nvcsi_intr: tstamp:7748709331 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904028: rtcpu_nvcsi_intr: tstamp:7748709331 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904029: rtcpu_nvcsi_intr: tstamp:7748709838 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904029: rtcpu_nvcsi_intr: tstamp:7748709838 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904030: rtcpu_nvcsi_intr: tstamp:7748710345 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x10000000
     kworker/0:5-351     [000] ....   230.904030: rtcpu_nvcsi_intr: tstamp:7748710345 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00001040
     kworker/0:5-351     [000] ....   230.904030: rtcpu_nvcsi_intr: tstamp:7748710856 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904031: rtcpu_nvcsi_intr: tstamp:7748710856 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904031: rtcpu_nvcsi_intr: tstamp:7748711359 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904031: rtcpu_nvcsi_intr: tstamp:7748711359 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904032: rtcpu_nvcsi_intr: tstamp:7748711864 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904032: rtcpu_nvcsi_intr: tstamp:7748711864 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904033: rtcpu_nvcsi_intr: tstamp:7748712369 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904033: rtcpu_nvcsi_intr: tstamp:7748712369 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000040
     kworker/0:5-351     [000] ....   230.904033: rtcpu_nvcsi_intr: tstamp:7748716009 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x04000000
     kworker/0:5-351     [000] ....   230.904034: rtcpu_nvcsi_intr: tstamp:7748716009 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000400
 CaptureSchedule-2685    [002] ....   230.913161: tegra_channel_set_power: sc432ai 31-0036 : 0x0
 CaptureSchedule-2685    [002] ....   230.913183: camera_common_s_power: status : 0x0
 CaptureSchedule-2685    [002] ....   230.923914: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
 CaptureSchedule-2685    [002] ....   230.923918: csi_s_power: enable : 0x0
  nvargus-daemon-2669    [003] ....   230.978762: tegra_channel_close: vi-output, sc432ai 31-0036
     kworker/0:5-351     [000] ....   231.019734: rtcpu_isp_falcon_task_start: tstamp:3457593981 ch:0 task:HANDLE_EVENT
     kworker/0:5-351     [000] ....   231.019738: rtcpu_isp_falcon_task_end: tstamp:3457594023 task:HANDLE_EVENT
     kworker/0:5-351     [000] ....   236.855716: rtcpu_string: tstamp:7935757259 id:0x04010000 str:"VM0 deactivating."

Now single camera usage instructions:
v4l2-ctl -d /dev/video0 --stream-mmap
All can flow out normally.

But when CSI0 and CSI1 use this instruction simultaneously:
v4l2-ctl -d /dev/video0 --stream-mmap
v4l2-ctl -d /dev/video3 --stream-mmap

Will cause /dev/video0 to not stream.

error log:

iking@iking:~$ [  273.473120] bwmgr API not supported
[  276.162190] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  276.171338] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  276.180953] (NULL device *): vi_capture_control_message: NULL VI channel received
[  276.188676] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  276.199338] (NULL device *): vi_capture_control_message: NULL VI channel received
[  276.207746] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  278.722187] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  278.731334] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  278.740921] (NULL device *): vi_capture_control_message: NULL VI channel received
[  278.748648] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  278.759321] (NULL device *): vi_capture_control_message: NULL VI channel received
[  279.778177] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[  279.786520] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_control_send_message: failed to send IVC control message
[  279.798101] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  279.808165] sc432ai 31-0036: stop stream success
[  279.850560] bwmgr API not supported
[  279.853520] sc432ai 31-0036: sc432ai_power_off

root@iking:/home/iking/tuning# sudo media-ctl -p -d /dev/media0
Media controller API version 5.10.216

Media device information

driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.216

Device topology

  • entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev0
    pad0: Sink
    ← “sc432ai 35-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 35-0036”:0 [ENABLED]

  • entity 4: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev1
    pad0: Sink
    ← “sc432ai 31-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 31-0036”:0 [ENABLED]

  • entity 7: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev2
    pad0: Sink
    ← “sc432ai 32-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 32-0036”:0 [ENABLED]

  • entity 10: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev3
    pad0: Sink
    ← “sc432ai 33-0036”:0 [ENABLED]
    pad1: Source
    → “vi-output, sc432ai 33-0036”:0 [ENABLED]

  • entity 13: sc432ai 31-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev4
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 15: vi-output, sc432ai 31-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

  • entity 33: sc432ai 32-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev5
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 35: vi-output, sc432ai 32-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video1
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

  • entity 45: sc432ai 33-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev6
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 47: vi-output, sc432ai 33-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video2
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

  • entity 57: sc432ai 35-0036 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev7
    pad0: Source
    [fmt:SBGGR10_1X10/960x960 field:none colorspace:srgb]
    → “13e40000.host1x:nvcsi@15a00000-”:0 [ENABLED]

  • entity 59: vi-output, sc432ai 35-0036 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video3
    pad0: Sink
    ← “13e40000.host1x:nvcsi@15a00000-”:1 [ENABLED]

dts:
dts.txt (28.9 KB)

Can you help me check it? thank you

please see-also Topic 310858 for troubleshooting.

Is this the same question?
My problem is that now each camera of CSI0, 1, 2, and 3 can produce images, but if CSI0 and CSI1 produce images simultaneously, the output will fail

At present, it seems that the problem has been resolved. The nodes for CSI0 and CSI1 are both set to:

lane_polarity = “6”;