Please, someone could help me to understand this error?
kworker/3:2-1561 [003] .... 56.333587: rtcpu_vinotify_event: tstamp:2006786027 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:2006784390 data:0x00010000
kworker/3:2-1561 [003] .... 56.333588: rtcpu_vinotify_event: tstamp:2006786246 tag:CSIMUX_STREAM channel:0xff frame:768 vi_tstamp:2006784832 data:0x00010000
kworker/3:2-1561 [003] .... 56.333589: rtcpu_vinotify_event: tstamp:2006786457 tag:CSIMUX_STREAM channel:0xff frame:256 vi_tstamp:2006785260 data:0x00010000
vi-output, nvp6-7224 [003] .... 56.346279: tegra_channel_capture_frame: sof:56.228727072
kworker/3:2-1561 [003] .... 56.389548: rtcpu_vinotify_event: tstamp:2007282173 tag:CHANSEL_PXL_SOF channel:0x00 frame:480 vi_tstamp:2007281647 data:0x00000001
kworker/3:2-1561 [003] .... 56.389554: rtcpu_vinotify_event: tstamp:2007282343 tag:ATOMP_FS channel:0x00 frame:480 vi_tstamp:2007281653 data:0x00000000
kworker/3:2-1561 [003] .... 56.389556: rtcpu_vinotify_event: tstamp:2007286784 tag:CHANSEL_LOAD_FRAMED channel:0x10 frame:480 vi_tstamp:2007286405 data:0x08000000
kworker/3:2-1561 [003] .... 56.389558: rtcpu_vinotify_event: tstamp:2008280801 tag:CHANSEL_PXL_EOF channel:0x00 frame:480 vi_tstamp:2008280370 data:0x02cf0002
kworker/3:2-1561 [003] .... 56.389560: rtcpu_vinotify_event: tstamp:2008282223 tag:CHANSEL_FAULT channel:0x00 frame:480 vi_tstamp:2008281549 data:0x02d00040
kworker/3:2-1561 [003] .... 56.389562: rtcpu_vinotify_event: tstamp:2008282418 tag:ATOMP_FE channel:0x00 frame:480 vi_tstamp:2008281797 data:0x00000000
kworker/3:2-1561 [003] .... 56.445546: rtos_queue_peek_from_isr_failed: tstamp:2008908705 queue:0x0b4b4500
kworker/3:2-1561 [003] .... 56.565570: rtos_queue_peek_from_isr_failed: tstamp:2013908698 queue:0x0b4b4500
vi-output, nvp6-7224 [000] .... 56.566106: tegra_channel_capture_setup: vnc_id 0 W 1280 H 720 fmt cb
vi-output, nvp6-7224 [000] .... 56.566140: tegra_channel_capture_frame: sof:56.228727072
vi-output, nvp6-7224 [003] .... 56.579594: tegra_channel_capture_frame: sof:56.462056800
I looked at Jetson TX2 Camera BringUp - eLinux.org and see that error is PIXEL_RUNAWAY and expected lines is different. If I understand well, in CHANSEL_PXL_EOF 0x2CF means that sensor reports 719 and CHANSEL_FAULT 0x2D0 shows that received 720. The sensor is configured with 720, what could be wrong?
DTSI mode 0
mode0 {
mclk_khz = "27000";
num_lanes = "4";
tegra_sinterface = "serial_e";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
csi_pixel_bit_depth = "8";
mode_type = "yuv";
pixel_phase = "uyvy";
active_w = "1280";
active_h = "720";
readout_orientation = "0";
line_length = "3300";
inherent_gain = "1";
mclk_multiplier = "14"; //pix_clk_hz//mclk
pix_clk_hz = "378000000"; //(756Mbps*4)/8 (speed of each lane)*num_lanes/bit_per_pixel
gain_factor = "10";
min_gain_val = "0"; // 0dB
max_gain_val = "480"; // 48dB
step_gain_val = "3"; // 0.3
default_gain = "0";
min_hdr_ratio = "1";
max_hdr_ratio = "1";
framerate_factor = "1000000";
min_framerate = "30000000"; // 1.5
max_framerate = "30000000"; // 30
step_framerate = "1";
default_framerate = "30000000";
exposure_factor = "1000000";
min_exp_time = "30"; // us
max_exp_time = "660000"; // us
step_exp_time = "1";
default_exp_time = "33334";// us
embedded_metadata_height = "0";
};
line-length value 3300 was extracted here:
media-ctl -p return:
Media controller API version 0.1.0
Media device information
------------------------
driver tegra-vi4
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 0.0.0
Device topology
- entity 1: 150c0000.nvcsi--1 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "nvp6324 2-0030":0 [ENABLED]
pad1: Source
-> "vi-output, nvp6324 2-0030":0 [ENABLED]
- entity 4: nvp6324 2-0030 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev1
pad0: Source
[fmt:UYVY8_2X8/1280x720 field:none colorspace:srgb]
-> "150c0000.nvcsi--1":0 [ENABLED]
- entity 6: vi-output, nvp6324 2-0030 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "150c0000.nvcsi--1":1 [ENABLED]
v4l2-ctl --all output
jetson@image-box:~$ v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : tegra-video
Card type : vi-output, nvp6324 2-0030
Bus info : platform:15700000.vi:4
Driver version: 4.9.201
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Camera 4: no power)
Format Video Capture:
Width/Height : 1280/720
Pixel Format : 'UYVY'
Field : None
Bytes per Line : 2560
Size Image : 1843200
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :
Camera Controls
group_hold 0x009a2003 (bool) : default=0 value=0 flags=execute-on-write
gain 0x009a2009 (int64) : min=0 max=0 step=0 default=0 value=0 flags=slider
exposure 0x009a200a (int64) : min=0 max=0 step=0 default=0 value=30 flags=slider
frame_rate 0x009a200b (int64) : min=0 max=0 step=0 default=0 value=30000000 flags=slider
bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
height_align 0x009a2066 (int) : min=1 max=16 step=1 default=1 value=1
size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
write_isp_format 0x009a2068 (int) : min=1 max=1 step=1 default=1 value=1
sensor_signal_properties 0x009a2069 (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
sensor_image_properties 0x009a206a (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
sensor_control_properties 0x009a206b (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
sensor_dv_timings 0x009a206c (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
low_latency_mode 0x009a206d (bool) : default=0 value=0
preferred_stride 0x009a206e (int) : min=0 max=65535 step=1 default=0 value=0
sensor_modes 0x009a2082 (int) : min=0 max=30 step=1 default=30 value=1 flags=read-only
v4l2-compliance -d /dev/video0 output
jetson@image-box:~$ v4l2-compliance -d /dev/video0
v4l2-compliance SHA : not available
Driver Info:
Driver name : tegra-video
Card type : vi-output, nvp6324 2-0030
Bus info : platform:15700000.vi:4
Driver version: 4.9.201
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Compliance test for device /dev/video0 (not using libv4l2):
Required ioctls:
test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second video 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)
Test input 0:
Control ioctls:
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: 16
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
warn: v4l2-test-formats.cpp(997): S_FMT cannot handle an invalid pixelformat.
warn: v4l2-test-formats.cpp(998): This may or may not be a problem. For more information see:
warn: v4l2-test-formats.cpp(999): http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html
fail: v4l2-test-formats.cpp(1013): S_FMT cannot handle an invalid format
test VIDIOC_S_FMT: FAIL
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
fail: v4l2-test-formats.cpp(1550): doioctl(node, VIDIOC_S_FMT, &fmt)
fail: v4l2-test-formats.cpp(1647): doioctl(node, VIDIOC_S_FMT, &fmt)
test Scaling: FAIL
Codec ioctls:
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:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
Test input 0:
Total: 43, Succeeded: 41, Failed: 2, Warnings: 3