CSI issue between Jetson Orin Nano DevKit and FPGA without I2C

Hello,

Recently I’m trying to get CSI data in Jetson Orin Nano DevKit and FPGA(as a 4 lane sensor,not a camera) can output CSI data without I2C.The FPGA continuously outputs a specified image format(RAW12, 1024x32 30fps) to the Orin Nano DevKit.The Orin Nano DevKit carrier board csi interface is cam1(J21, csi2&csi3).I’m using Jetson Linux r36.4.4.

I know in order to get CSI data I need to modify tegra234-p3767-camera-p3768-imx219-C.dts for nv_imx219.c and modify nv_imx219.c to remove the access i2c REG code.

tegra234-p3767-camera-p3768-imx219-C.dts

// SPDX-License-Identifier: GPL-2.0-only

// SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

/dts-v1/;

/plugin/;

define CAM0_RST TEGRA234_MAIN_GPIO(H, 3)

define CAM0_PWDN TEGRA234_MAIN_GPIO(H, 6)

define CAM1_PWDN TEGRA234_MAIN_GPIO(AC, 0)

define CAM_I2C_MUX TEGRA234_AON_GPIO(CC, 3)

include <dt-bindings/tegra234-p3767-0000-common.h>

/ {

overlay-name = "Camera IMX219-C";

jetson-header-name = "Jetson 24pin CSI Connector";

compatible = JETSON_COMPATIBLE_P3768;

/* IMX219 sensor module on CSI PORT B / cam0 */

fragment@0 {

    target-path = "/";

_overlay_ {

tegra-capture-vi {

            num-channels = <1>;

ports {

                #address-cells = <1>;

                #size-cells = <0>;

vi_port1: port@1 {

                    reg = <0>;

rbpcv2_imx219_vi_in1: endpoint {

                        port-index = <2>;

                        bus-width = <4>;

                        remote-endpoint = <&rbpcv2_imx219_csi_out1>;

                    };

                };

            };

        };

tegra-camera-platform {

            compatible = "nvidia, tegra-camera-platform";

/**

            \* Physical settings to calculate max ISO BW

            \*

            \* num_csi_lanes = <>;

            \* Total number of CSI lanes when all cameras are active

            \*

            \* max_lane_speed = <>;

            \* Max lane speed in Kbit/s

            \*

            \* min_bits_per_pixel = <>;

            \* Min bits per pixel

            \*

            \* vi_peak_byte_per_pixel = <>;

            \* Max byte per pixel for the VI ISO case

            \*

            \* vi_bw_margin_pct = <>;

            \* Vi bandwidth margin in percentage

            \*

            \* max_pixel_rate = <>;

            \* Max pixel rate in Kpixel/s for the ISP ISO case

            \*

            \* isp_peak_byte_per_pixel = <>;

            \* Max byte per pixel for the ISP ISO case

            \*

            \* isp_bw_margin_pct = <>;

            \* Isp bandwidth margin in percentage

            \*/

            num_csi_lanes = <4>;

            max_lane_speed = <300000>;

            min_bits_per_pixel = <12>;

            vi_peak_byte_per_pixel = <2>;

            vi_bw_margin_pct = <25>;

            max_pixel_rate = <7500000>;

            isp_peak_byte_per_pixel = <5>;

            isp_bw_margin_pct = <25>;

/**

             \* The general guideline for naming badge_info contains 3 parts, and is as follows,

             \* The first part is the camera_board_id for the module; if the module is in a FFD

             \* platform, then use the platform name for this part.

             \* The second part contains the position of the module, ex. "rear" or "front".

             \* The third part contains the last 6 characters of a part number which is found

             \* in the module's specsheet from the vendor.

             \*/

modules {

cam_module1: module1 {

                    badge = "jakku_rear_RBP194";

                    position = "rear";

                    orientation = "1";

cam_module1_drivernode0: drivernode0 {

                        pcl_id = "v4l2_sensor";

                        sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@1/rbpcv2_imx219_c@10";

                    };

                };

            };

        };

bus@0 {

host1x@13e00000 {

nvcsi@15a00000 {

                    num-channels = <1>;

                    #address-cells = <1>;

                    #size-cells = <0>;

                    status = "okay";

csi_chan1: channel@1 {

                        reg = <0>;

ports {

                            #address-cells = <1>;

                            #size-cells = <0>;

csi_chan1_port0: port@0 {

                                reg = <0>;

rbpcv2_imx219_csi_in1: endpoint@2 {

                                    port-index = <2>;

                                    bus-width = <4>;

                                    remote-endpoint = <&rbpcv2_imx219_out1>;

                                };

                            };

csi_chan1_port1: port@1 {

                                reg = <1>;

rbpcv2_imx219_csi_out1: endpoint@3 {

                                    remote-endpoint = <&rbpcv2_imx219_vi_in1>;

                                };

                            };

                        };

                    };

                };

            };

cam_i2cmux {

                status = "okay";

                compatible = "i2c-mux-gpio";

                #address-cells = <1>;

                #size-cells = <0>;

                mux-gpios = <&gpio_aon CAM_I2C_MUX GPIO_ACTIVE_HIGH>;

                i2c-parent = <&cam_i2c>;

i2c@0 {

rbpcv2_imx219_a@10 {

                        status = "disabled";

                    };

                };

i2c@1 {

                    status = "okay";

                    reg = <1>;

                    #address-cells = <1>;

                    #size-cells = <0>;

rbpcv2_imx219_c@10 {

// reset-gpios = <&gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;

                        compatible = "sony,imx219";

/* I2C device address */

                        reg = <0x10>;

/* V4L2 device node location */

                        devnode = "video0";

/* Physical dimensions of sensor */

                        physical_w = "3.680";

                        physical_h = "2.760";

                        sensor_model = "imx219";

                        use_sensor_mode_id = "true";

/**

                        \* ==== Modes ====

                        \* A modeX node is required to support v4l2 driver

                        \* implementation with NVIDIA camera software stack

                        \*

                        \* == Signal properties ==

                        \*

                        \* phy_mode = "";

                        \* PHY mode used by the MIPI lanes for this device

                        \*

                        \* tegra_sinterface = "";

                        \* CSI Serial interface connected to tegra

                        \* Incase of virtual HW devices, use virtual

                        \* For SW emulated devices, use host

                        \*

                        \* pix_clk_hz = "";

                        \* Sensor pixel clock used for calculations like exposure and framerate

                        \*

                        \* readout_orientation = "0";

                        \* Based on camera module orientation.

                        \* Only change readout_orientation if you specifically

                        \* Program a different readout order for this mode

                        \*

                        \* == Image format Properties ==

                        \*

                        \* active_w = "";

                        \* Pixel active region width

                        \*

                        \* active_h = "";

                        \* Pixel active region height

                        \*

                        \* pixel_t = "";

                        \* The sensor readout pixel pattern

                        \*

                        \* line_length = "";

                        \* Pixel line length (width) for sensor mode.

                        \*

                        \* == Source Control Settings ==

                        \*

                        \* Gain factor used to convert fixed point integer to float

                        \* Gain range \[min_gain/gain_factor, max_gain/gain_factor\]

                        \* Gain step \[step_gain/gain_factor is the smallest step that can be configured\]

                        \* Default gain \[Default gain to be initialized for the control.

                        \*     use min_gain_val as default for optimal results\]

                        \* Framerate factor used to convert fixed point integer to float

                        \* Framerate range \[min_framerate/framerate_factor, max_framerate/framerate_factor\]

                        \* Framerate step \[step_framerate/framerate_factor is the smallest step that can be configured\]

                        \* Default Framerate \[Default framerate to be initialized for the control.

                        \*     use max_framerate to get required performance\]

                        \* Exposure factor used to convert fixed point integer to float

                        \* For convenience use 1 sec = 1000000us as conversion factor

                        \* Exposure range \[min_exp_time/exposure_factor, max_exp_time/exposure_factor\]

                        \* Exposure step \[step_exp_time/exposure_factor is the smallest step that can be configured\]

                        \* Default Exposure Time \[Default exposure to be initialized for the control.

                        \*     Set default exposure based on the default_framerate for optimal exposure settings\]

                        \*

                        \* gain_factor = ""; (integer factor used for floating to fixed point conversion)

                        \* min_gain_val = ""; (ceil to integer)

                        \* max_gain_val = ""; (ceil to integer)

                        \* step_gain_val = ""; (ceil to integer)

                        \* default_gain = ""; (ceil to integer)

                        \* Gain limits for mode

                        \*

                        \* exposure_factor = ""; (integer factor used for floating to fixed point conversion)

                        \* min_exp_time = ""; (ceil to integer)

                        \* max_exp_time = ""; (ceil to integer)

                        \* step_exp_time = ""; (ceil to integer)

                        \* default_exp_time = ""; (ceil to integer)

                        \* Exposure Time limits for mode (sec)

                        \*

                        \* framerate_factor = ""; (integer factor used for floating to fixed point conversion)

                        \* min_framerate = ""; (ceil to integer)

                        \* max_framerate = ""; (ceil to integer)

                        \* step_framerate = ""; (ceil to integer)

                        \* default_framerate = ""; (ceil to integer)

                        \* Framerate limits for mode (fps)

                        \*

                        \* embedded_metadata_height = "";

                        \* Sensor embedded metadata height in units of rows.

                        \* If sensor does not support embedded metadata value should be 0.

                        \*/

mode0 { /* IMX219_MODE_1024x32_30FPS Tbuf test*/

                            mclk_khz = "24000";

                            num_lanes = "4";                                

                            tegra_sinterface = "serial_c";

                            phy_mode = "DPHY";

                            discontinuous_clk = "yes";

                            dpcm_enable = "false";

                            cil_settletime = "0";

                            active_w = "1024";

                            active_h = "32";

                            mode_type = "bayer";

                            pixel_phase = "rggb";

                            csi_pixel_bit_depth = "12";

                            readout_orientation = "0";

                            line_length = "1024";                               

                            inherent_gain = "1";

                            mclk_multiplier = "9.33";                               

                            pix_clk_hz = "160000000";

                            gain_factor = "16";

                            framerate_factor = "1000000";

                            exposure_factor = "1000000";

                            min_gain_val = "16"; /\* 1.00x \*/

                            max_gain_val = "170"; /\* 10.66x \*/

                            step_gain_val = "1";

                            default_gain = "16"; /\* 1.00x \*/

                            min_hdr_ratio = "1";

                            max_hdr_ratio = "1";

                            min_framerate = "2000000"; /\* 2.0 fps \*/

                            max_framerate = "30000000"; /\* 30 fps \*/

                            step_framerate = "1";

                            default_framerate = "30000000"; /\* 30 fps \*/

                            min_exp_time = "13"; /\* us \*/

                            max_exp_time = "683709"; /\* us \*/

                            step_exp_time = "1";

                            default_exp_time = "2495"; /\* us \*/

                            embedded_metadata_height = "0";

                        };

ports {

                            #address-cells = <1>;

                            #size-cells = <0>;

port@0 {

                                reg = <0>;

rbpcv2_imx219_out1: endpoint {

                                    status = "okay";

                                    port-index = <2>;

                                    bus-width = <4>;

                                    remote-endpoint = <&rbpcv2_imx219_csi_in1>;

                                };

                            };

                        };

                    };

                };

            };

        };

    };

};

};

I run media-ctl command, it can print the complete media device topology.

media-ctl -p -d /dev/media0

Media controller API version 5.15.148

Media device information

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

Device topology

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

  • entity 4: imx219 9-0010 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev1
    pad0: Source
    [fmt:SRGGB12_1X12/1024x32@1/30 field:none colorspace:srgb]
    → “13e00000.host1x:nvcsi@15a00000-”:0 [ENABLED]

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

I run v4l2-ctl command, it can display the comprehensive information.

v4l2-ctl --all

Driver Info:
Driver name : tegra-video
Card type : vi-output, imx219 9-0010
Bus info : platform:tegra-capture-vi:2
Driver version : 5.15.148
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.15.148
Hardware revision: 0x00000003 (3)
Driver version : 5.15.148
Interface Info:
ID : 0x03000008
Type : V4L Video
Entity Info:
ID : 0x00000006 (6)
Name : vi-output, imx219 9-0010
Function : V4L2 I/O
Pad 0x01000007 : 0: Sink
Link 0x0200000c: from remote pad 0x1000003 of entity ‘13e00000.host1x:nvcsi@15a00000-’ (Unknown sub-device (0002000a)): Data, Enabled
Priority: 2
Video input : 0 (Camera 2: ok)
Format Video Capture:
Width/Height : 1024/32
Pixel Format : ‘RG12’ (12-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 2048
Size Image : 65536
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0

Camera Controls

                 group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                sensor_mode 0x009a2008 (int64)  : min=0 max=1 step=1 default=0 value=0 flags=slider
                       gain 0x009a2009 (int64)  : min=16 max=171 step=1 default=16 value=16 flags=slider
                   exposure 0x009a200a (int64)  : min=13 max=683710 step=1 default=2495 value=13 flags=slider
                 frame_rate 0x009a200b (int64)  : min=2000000 max=30000000 step=1 default=30000000 value=2000000 flags=slider
       sensor_configuration 0x009a2032 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[22] flags=read-only, volatile, has-payload
     sensor_mode_i2c_packet 0x009a2033 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
  sensor_control_i2c_packet 0x009a2034 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
                bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
			0: 0 (0x0)
			1: 1 (0x1)
            override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
			0: 0 (0x0)
			1: 1 (0x1)
               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 (1 0x1)
			0: 1 (0x1)
			1: 65536 (0x10000)
			2: 131072 (0x20000)
           write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
   sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][18] flags=read-only, has-payload
    sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] flags=read-only, has-payload
  sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][36] flags=read-only, has-payload
          sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] 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
override_capture_timeout_ms 0x009a206f (int)    : min=-1 max=2147483647 step=1 default=2500 value=2500
               sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only

But when i want to read data by running v4l2 command, but the CSI frame packet is error. The error log and dmesg log as below:

v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --set-ctrl=bypass_mode=0 --stream-to=single_frame.bin --verbose

VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq: 0 bytesused: 65536 ts: 1057.756233 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 1 bytesused: 65536 ts: 1057.786926 delta: 30.693 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 2 bytesused: 65536 ts: 1057.817617 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 3 bytesused: 65536 ts: 1057.848308 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 4 bytesused: 65536 ts: 1057.878999 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 5 bytesused: 65536 ts: 1057.909691 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 6 bytesused: 65536 ts: 1057.940382 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 7 bytesused: 65536 ts: 1057.971073 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 8 bytesused: 65536 ts: 1058.001765 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 9 bytesused: 65536 ts: 1058.032456 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 10 bytesused: 65536 ts: 1058.063147 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 11 bytesused: 65536 ts: 1058.093838 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 12 bytesused: 65536 ts: 1058.124530 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 13 bytesused: 65536 ts: 1058.155221 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 14 bytesused: 65536 ts: 1058.185912 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 15 bytesused: 65536 ts: 1058.216603 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 16 bytesused: 65536 ts: 1058.247295 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 17 bytesused: 65536 ts: 1058.277986 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 18 bytesused: 65536 ts: 1058.308677 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 19 bytesused: 65536 ts: 1058.339369 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 20 bytesused: 65536 ts: 1058.370060 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 21 bytesused: 65536 ts: 1058.400751 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 22 bytesused: 65536 ts: 1058.431442 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 23 bytesused: 65536 ts: 1058.462134 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 24 bytesused: 65536 ts: 1058.492825 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 25 bytesused: 65536 ts: 1058.523516 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 26 bytesused: 65536 ts: 1058.554208 delta: 30.692 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 27 bytesused: 65536 ts: 1058.584899 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 28 bytesused: 65536 ts: 1058.615590 delta: 30.691 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 29 bytesused: 65536 ts: 0.000000 delta: -1058615.590 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 0 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 30 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 31 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 32 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)

dmesg log

[ +0.000002] vi5_setup_surface: port=0, descr_idx=0, height=32, width=1024, bpl=2048
[ +0.000003] vi5_setup_surface: offset=0x7ffbff0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[ +0.000001] vi5_setup_surface: port=0, descr_idx=1, height=32, width=1024, bpl=2048
[ +0.000002] vi5_setup_surface: offset=0x7ffbfe0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[ +0.000001] vi5_setup_surface: port=0, descr_idx=2, height=32, width=1024, bpl=2048
[ +0.000001] vi5_setup_surface: offset=0x7ffbfd0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[ +0.000001] vi5_setup_surface: port=0, descr_idx=3, height=32, width=1024, bpl=2048
[ +0.000002] vi5_setup_surface: offset=0x7ffbfc0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[ +0.000006] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 512
[ +0.000003] vi5_setup_surface: port=0, descr_idx=0, height=32, width=1024, bpl=2048
[ +0.000003] vi5_setup_surface: offset=0x7ffbff0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[ +0.000005] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ +0.000003] vi5_setup_surface: port=0, descr_idx=1, height=32, width=1024, bpl=2048
[ +0.000003] vi5_setup_surface: offset=0x7ffbfe0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[ +0.000004] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072

The rce trace log as below:

RCE Trace

# tracer: nop

kworker/4:1-49 [004] … 259.412347: rtcpu_string: tstamp:9028878553 id:0x04010000 str:“VM0 deactivating.”
v4l2-ctl-2417 [003] … 709.023124: tegra_channel_open: vi-output, imx219 9-0010
v4l2-ctl-2417 [003] … 709.023782: tegra_channel_close: vi-output, imx219 9-0010
v4l2-ctl-2469 [001] … 1028.054076: tegra_channel_open: vi-output, imx219 9-0010
v4l2-ctl-2469 [001] … 1028.055328: tegra_channel_set_power: imx219 9-0010 : 0x1
v4l2-ctl-2469 [001] … 1028.055333: camera_common_s_power: status : 0x1
v4l2-ctl-2469 [001] … 1028.055341: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2469 [001] … 1028.055343: csi_s_power: enable : 0x1
v4l2-ctl-2469 [001] … 1028.055806: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4
kworker/4:1-49 [004] … 1028.061922: rtcpu_string: tstamp:33050191753 id:0x04010000 str:“VM0 activating.”

vi-output, imx2-2470 [003] … 1028.062617: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
vi-output, imx2-2470 [003] … 1028.062633: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
v4l2-ctl-2469 [000] … 1028.062638: tegra_channel_set_stream: enable : 0x1
vi-output, imx2-2470 [003] … 1028.062640: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
vi-output, imx2-2470 [003] … 1028.062647: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
v4l2-ctl-2469 [000] … 1028.063167: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2469 [000] … 1028.063170: csi_s_stream: enable : 0x1
v4l2-ctl-2469 [002] … 1028.063594: tegra_channel_set_stream: imx219 9-0010 : 0x1
kworker/4:1-49 [004] … 1028.117929: rtcpu_vinotify_event: tstamp:33050654567 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057610498176 data:0x799e300010000000
kworker/4:1-49 [004] … 1028.117930: rtcpu_vinotify_event: tstamp:33050654795 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057610507872 data:0x0000000031000001
kworker/4:1-49 [004] … 1028.117931: rtcpu_vinotify_event: tstamp:33050655043 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057610512384 data:0x0000000007020001
kworker/4:1-49 [004] … 1028.117931: rtcpu_vinotify_event: tstamp:33050655258 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057610606432 data:0x799e2d0010000000
kworker/4:1-49 [004] … 1028.117931: rtcpu_vinotify_event: tstamp:33050655498 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057610616224 data:0x0000000031000002
vi-output, imx2-2471 [001] … 1028.208766: tegra_channel_capture_frame: sof:1057.756233312
vi-output, imx2-2471 [001] … 1028.208767: tegra_channel_capture_frame: eof:1057.756333216
vi-output, imx2-2470 [003] … 1028.208865: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
kworker/4:1-49 [004] … 1028.233940: rtcpu_nvcsi_intr: tstamp:33054883227 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000002
kworker/4:1-49 [004] … 1028.233940: rtcpu_nvcsi_intr: tstamp:33054883227 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000002
kworker/4:1-49 [004] … 1028.233941: rtcpu_nvcsi_intr: tstamp:33054885257 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.233941: rtcpu_nvcsi_intr: tstamp:33054885257 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.233941: rtcpu_nvcsi_intr: tstamp:33054886505 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/4:1-49 [004] … 1028.233942: rtcpu_nvcsi_intr: tstamp:33054886505 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/4:1-49 [004] … 1028.233942: rtcpu_nvcsi_intr: tstamp:33054887273 class:GLOBAL type:PHY_INTR0 phy:1 cil:1 st:0 vc:0 status:0x06000000
kworker/4:1-49 [004] … 1028.233942: rtcpu_nvcsi_intr: tstamp:33054887273 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:1 st:0 vc:0 status:0x00000600
kworker/4:1-49 [004] … 1028.233943: rtcpu_nvcsi_intr: tstamp:33054888454 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/4:1-49 [004] … 1028.233943: rtcpu_nvcsi_intr: tstamp:33054888454 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/4:1-49 [004] … 1028.233943: rtcpu_vinotify_event: tstamp:33055083195 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057756229664 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.233944: rtcpu_vinotify_event: tstamp:33055083452 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057756229696 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.233944: rtcpu_vinotify_event: tstamp:33055083674 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057756233312 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.233944: rtcpu_vinotify_event: tstamp:33055083917 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057756238368 data:0x0000000008020001
kworker/4:1-49 [004] … 1028.233945: rtcpu_vinotify_event: tstamp:33055084131 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:1057756325280 data:0x0000000000010200
kworker/4:1-49 [004] … 1028.233945: rtcpu_vinotify_event: tstamp:33055084367 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057756333568 data:0x0000000001020001
vi-output, imx2-2471 [002] … 1028.270116: tegra_channel_capture_frame: sof:1057.786926272
vi-output, imx2-2471 [002] … 1028.270118: tegra_channel_capture_frame: eof:1057.817629280
vi-output, imx2-2470 [003] … 1028.270191: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
kworker/4:1-49 [004] … 1028.289947: rtcpu_nvcsi_intr: tstamp:33055842248 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/4:1-49 [004] … 1028.289948: rtcpu_nvcsi_intr: tstamp:33055842248 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/4:1-49 [004] … 1028.289949: rtcpu_vinotify_error: tstamp:33055844582 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057786922656 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.289949: rtcpu_vinotify_event: tstamp:33055847523 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057786922656 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.289950: rtcpu_vinotify_event: tstamp:33055847768 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057786922656 data:0x0002200001000000
kworker/4:1-49 [004] … 1028.289950: rtcpu_vinotify_event: tstamp:33055847991 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057786922656 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.289950: rtcpu_vinotify_event: tstamp:33055848244 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:1057786922688 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.289951: rtcpu_vinotify_event: tstamp:33055848462 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057786948320 data:0x0000000007020002
kworker/4:1-49 [004] … 1028.289951: rtcpu_vinotify_event: tstamp:33056173107 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057786922688 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.289951: rtcpu_vinotify_event: tstamp:33056173329 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057786926272 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.289951: rtcpu_vinotify_event: tstamp:33056173575 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057786962432 data:0x0000000008020002
kworker/4:1-49 [004] … 1028.289952: rtcpu_vinotify_event: tstamp:33056173790 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057787002208 data:0x799e300010000000
kworker/4:1-49 [004] … 1028.289952: rtcpu_vinotify_event: tstamp:33056174031 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057787020480 data:0x0000000031000003
kworker/4:1-49 [004] … 1028.289952: rtcpu_nvcsi_intr: tstamp:33056801957 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/4:1-49 [004] … 1028.289953: rtcpu_nvcsi_intr: tstamp:33056801957 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/4:1-49 [004] … 1028.289953: rtcpu_vinotify_error: tstamp:33056804201 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057817613472 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.289953: rtcpu_nvcsi_intr: tstamp:33056804375 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/4:1-49 [004] … 1028.289953: rtcpu_nvcsi_intr: tstamp:33056804375 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/4:1-49 [004] … 1028.289954: rtcpu_vinotify_event: tstamp:33056810953 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057817613472 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.289954: rtcpu_vinotify_event: tstamp:33056813981 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057817613472 data:0x0001200001000000
kworker/4:1-49 [004] … 1028.289954: rtcpu_vinotify_event: tstamp:33056814213 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057817629696 data:0x0000000001020002
kworker/4:1-49 [004] … 1028.289955: rtcpu_vinotify_event: tstamp:33056814459 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057817613472 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.289955: rtcpu_vinotify_event: tstamp:33056814678 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:1057817613504 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.289955: rtcpu_vinotify_event: tstamp:33056814922 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057817649792 data:0x0000000007020003
kworker/4:1-49 [004] … 1028.289956: rtcpu_vinotify_event: tstamp:33056815137 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057817613504 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.289956: rtcpu_vinotify_event: tstamp:33056815377 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057817617120 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.289956: rtcpu_vinotify_event: tstamp:33056815591 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057817667648 data:0x0000000008020003
kworker/4:1-49 [004] … 1028.289956: rtcpu_vinotify_event: tstamp:33056815827 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057817893632 data:0x799e2d0010000000
kworker/4:1-49 [004] … 1028.289957: rtcpu_vinotify_event: tstamp:33056816040 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057817903424 data:0x0000000031000004
vi-output, imx2-2471 [002] … 1028.300870: tegra_channel_capture_frame: sof:1057.817617120
vi-output, imx2-2471 [002] … 1028.300871: tegra_channel_capture_frame: eof:1057.848320896
vi-output, imx2-2471 [002] … 1028.300935: tegra_channel_capture_frame: sof:1057.848308672
vi-output, imx2-2471 [002] … 1028.300935: tegra_channel_capture_frame: eof:1057.848408928
vi-output, imx2-2470 [003] … 1028.300972: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
vi-output, imx2-2470 [003] … 1028.300988: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
vi-output, imx2-2471 [002] … 1028.331536: tegra_channel_capture_frame: sof:1057.878999936
vi-output, imx2-2471 [002] … 1028.331537: tegra_channel_capture_frame: eof:1057.879099648
vi-output, imx2-2470 [003] … 1028.331606: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
kworker/4:1-49 [004] … 1028.345953: rtcpu_nvcsi_intr: tstamp:33057761072 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000002
kworker/4:1-49 [004] … 1028.345954: rtcpu_nvcsi_intr: tstamp:33057761072 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000002
kworker/4:1-49 [004] … 1028.345954: rtcpu_nvcsi_intr: tstamp:33057762719 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.345955: rtcpu_nvcsi_intr: tstamp:33057762719 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.345955: rtcpu_nvcsi_intr: tstamp:33057763533 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/4:1-49 [004] … 1028.345955: rtcpu_nvcsi_intr: tstamp:33057763533 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/4:1-49 [004] … 1028.345956: rtcpu_vinotify_error: tstamp:33057765689 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057848305056 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.345957: rtcpu_vinotify_event: tstamp:33057777815 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057848305056 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.345957: rtcpu_vinotify_event: tstamp:33057778042 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057848305056 data:0x0001200001000000
kworker/4:1-49 [004] … 1028.345958: rtcpu_vinotify_event: tstamp:33057778292 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057848321248 data:0x0000000001020003
kworker/4:1-49 [004] … 1028.345958: rtcpu_vinotify_event: tstamp:33057778506 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057848305056 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.345958: rtcpu_vinotify_event: tstamp:33057778753 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:1057848305056 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.345959: rtcpu_vinotify_event: tstamp:33057778969 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057848341376 data:0x0000000007020004
kworker/4:1-49 [004] … 1028.345959: rtcpu_vinotify_event: tstamp:33057779213 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057848305056 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.345959: rtcpu_vinotify_event: tstamp:33057779428 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057848308672 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.345959: rtcpu_vinotify_event: tstamp:33057779677 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057848359232 data:0x0000000008020004
kworker/4:1-49 [004] … 1028.345960: rtcpu_vinotify_event: tstamp:33057779888 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:1057848400448 data:0x0000000000010200
kworker/4:1-49 [004] … 1028.345960: rtcpu_vinotify_event: tstamp:33057780123 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057848409280 data:0x0000000001020004
kworker/4:1-49 [004] … 1028.345960: rtcpu_vinotify_event: tstamp:33057780335 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057848650016 data:0x799e300010000000
kworker/4:1-49 [004] … 1028.345961: rtcpu_vinotify_event: tstamp:33057780573 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057848659840 data:0x0000000031000005
kworker/4:1-49 [004] … 1028.345961: rtcpu_nvcsi_intr: tstamp:33058718716 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/4:1-49 [004] … 1028.345963: rtcpu_nvcsi_intr: tstamp:33058718716 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/4:1-49 [004] … 1028.345963: rtcpu_vinotify_error: tstamp:33058723911 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057878996320 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.345963: rtcpu_nvcsi_intr: tstamp:33058721743 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.345964: rtcpu_nvcsi_intr: tstamp:33058721743 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.345964: rtcpu_nvcsi_intr: tstamp:33058722540 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x16000000
kworker/4:1-49 [004] … 1028.345964: rtcpu_nvcsi_intr: tstamp:33058722540 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001600
kworker/4:1-49 [004] … 1028.345965: rtcpu_vinotify_event: tstamp:33058728795 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057878996320 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.345965: rtcpu_vinotify_event: tstamp:33058729061 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057878996320 data:0x0002200001000000
kworker/4:1-49 [004] … 1028.345965: rtcpu_vinotify_event: tstamp:33058729276 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057878996320 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.345966: rtcpu_vinotify_event: tstamp:33059034791 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:1057878996352 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.345966: rtcpu_vinotify_event: tstamp:33059035014 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057879020832 data:0x0000000007020005
kworker/4:1-49 [004] … 1028.345966: rtcpu_vinotify_event: tstamp:33059035272 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057878996352 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.345967: rtcpu_vinotify_event: tstamp:33059035489 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057878999936 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.345967: rtcpu_vinotify_event: tstamp:33059035735 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057879029376 data:0x0000000008020005
kworker/4:1-49 [004] … 1028.345967: rtcpu_vinotify_event: tstamp:33059035948 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057879081312 data:0x799e2d0010000000
kworker/4:1-49 [004] … 1028.345968: rtcpu_vinotify_event: tstamp:33059036185 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:1057879091712 data:0x0000000000010200
kworker/4:1-49 [004] … 1028.345968: rtcpu_vinotify_event: tstamp:33059036395 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057879100032 data:0x0000000001020005
kworker/4:1-49 [004] … 1028.345968: rtcpu_vinotify_event: tstamp:33059036631 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057879122592 data:0x0000000031000006
vi-output, imx2-2471 [002] … 1028.362251: tegra_channel_capture_frame: sof:1057.909691232
vi-output, imx2-2471 [002] … 1028.362252: tegra_channel_capture_frame: eof:1057.909790912
vi-output, imx2-2470 [003] … 1028.362316: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
kworker/4:1-49 [004] … 1028.401961: rtcpu_nvcsi_intr: tstamp:33059678657 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000002
kworker/4:1-49 [004] … 1028.401962: rtcpu_nvcsi_intr: tstamp:33059678657 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000002
kworker/4:1-49 [004] … 1028.401962: rtcpu_nvcsi_intr: tstamp:33059680805 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.401963: rtcpu_nvcsi_intr: tstamp:33059680805 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/4:1-49 [004] … 1028.401963: rtcpu_nvcsi_intr: tstamp:33059682474 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/4:1-49 [004] … 1028.401963: rtcpu_nvcsi_intr: tstamp:33059682474 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/4:1-49 [004] … 1028.401964: rtcpu_vinotify_error: tstamp:33059683409 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057909687584 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.401965: rtcpu_vinotify_event: tstamp:33059688628 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057909687584 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.401965: rtcpu_vinotify_event: tstamp:33059688873 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057909687584 data:0x0002200001000000
kworker/4:1-49 [004] … 1028.401966: rtcpu_vinotify_event: tstamp:33059689087 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057909687584 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.401966: rtcpu_vinotify_event: tstamp:33059689335 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:1057909687616 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.401967: rtcpu_vinotify_event: tstamp:33059689553 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057909713280 data:0x0000000007020006
kworker/4:1-49 [004] … 1028.401967: rtcpu_vinotify_event: tstamp:33059689795 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057909687616 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.401968: rtcpu_vinotify_event: tstamp:33059690010 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057909691232 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.401968: rtcpu_vinotify_event: tstamp:33059988724 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057909727424 data:0x0000000008020006
kworker/4:1-49 [004] … 1028.401969: rtcpu_vinotify_event: tstamp:33059988946 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057909769920 data:0x799e300010000000
kworker/4:1-49 [004] … 1028.401969: rtcpu_vinotify_event: tstamp:33059989201 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:1057909782976 data:0x0000000000010200
kworker/4:1-49 [004] … 1028.401970: rtcpu_vinotify_event: tstamp:33059989415 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057909791264 data:0x0000000001020006
kworker/4:1-49 [004] … 1028.401970: rtcpu_vinotify_event: tstamp:33059989658 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057909824448 data:0x0000000031000007
kworker/4:1-49 [004] … 1028.401970: rtcpu_nvcsi_intr: tstamp:33060637761 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/4:1-49 [004] … 1028.401971: rtcpu_nvcsi_intr: tstamp:33060637761 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/4:1-49 [004] … 1028.401971: rtcpu_vinotify_error: tstamp:33060640014 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057940378880 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.401971: rtcpu_vinotify_event: tstamp:33060670075 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:1057940378880 data:0x00000000000000a2
kworker/4:1-49 [004] … 1028.401972: rtcpu_vinotify_event: tstamp:33060670318 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057940378880 data:0x0002200001000000
kworker/4:1-49 [004] … 1028.401972: rtcpu_vinotify_event: tstamp:33060670536 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:1057940378880 data:0x0000000000000012
kworker/4:1-49 [004] … 1028.401972: rtcpu_vinotify_event: tstamp:33060670783 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:1057940378912 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.401973: rtcpu_vinotify_event: tstamp:33060670997 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057940404544 data:0x0000000007020007
kworker/4:1-49 [004] … 1028.401973: rtcpu_vinotify_event: tstamp:33060671240 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1057940378912 data:0x0000000800000000
kworker/4:1-49 [004] … 1028.401973: rtcpu_vinotify_event: tstamp:33060671456 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:1057940382496 data:0x0000000000000001
kworker/4:1-49 [004] … 1028.401974: rtcpu_vinotify_event: tstamp:33060671701 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1057940416960 data:0x0000000008020007
kworker/4:1-49 [004] … 1028.401974: rtcpu_vinotify_event: tstamp:33060671911 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057940457216 data:0x799e2d0010000000
kworker/4:1-49 [004] … 1028.401974: rtcpu_vinotify_event: tstamp:33060672147 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1057940477600 data:0x0000000031000008
vi-output, imx2-2471 [002] … 1028.423519: tegra_channel_capture_frame: sof:1057.940382496
vi-output, imx2-2471 [002] … 1028.423520: tegra_channel_capture_frame: eof:1057.971087712
vi-output, imx2-2470 [003] … 1028.423587: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470
vi-output, imx2-2471 [002] … 1028.454257: tegra_channel_capture_frame: sof:1057.971073760
vi-output, imx2-2471 [002] … 1028.454258: tegra_channel_capture_frame: eof:1058.1777248
vi-output, imx2-2470 [003] … 1028.454311: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2470 tid:2470

I don’t know what caused this issue.
Please suggest, How to resolve this issue?

Thank you!

The trace log tell the short frame. It could be the sensor output lines less than expected.

What’s the “Bytes per Line” from thev4l2-ctl --all command.

kworker/4:1-49 [004] … 1028.345965: rtcpu_vinotify_event: tstamp:33058729061 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:1057878996320 data:0x0002200001000000

Thev4l2-ctl --all command show the “Bytes per Line” is 2048. The sensor send one frame is 32 lines, and one line is 1024 raw12.

Width/Height : 1024/32
Pixel Format : ‘RG12’ (12-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 2048
Size Image : 65536
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)

I would suspect the sensor output the lines less than 32.

Thanks

I use an oscilloscope to measure clock lane signal waveforms,the long packet number is 32.

The below waveforms is a short packet and long packet.It is also the clock lane signal.

I have also loop testing using FPGA (FPGA has RX and TX), and the FPGA can receive data normally, but the orin nano devkit can not.

Can you config sensor REG to output more lines to try.

Thanks

I config the sensor to output 128 line. However, the issue still remain. Could you provide some information to debug this issue.

Please check the log.

Suppose it could be CHANNEL_FAULT instead of short frame while the sensor output 128 but driver report still 32.

I also modify the nv_imx219 driver and dts to adapt the 128line. You mean only modify the sensor?

Keep the driver report 32 but the sensor output more than 32 like 64 lines actually.

Thanks

I config the sensor to output 128 line. The trace log is as below:

kworker/1:17-1686 [001] … 357.987769: rtcpu_string: tstamp:12108918188 id:0x04010000 str:“VM0 deactivating.”
v4l2-ctl-2270 [003] … 405.354421: tegra_channel_open: vi-output, imx219 9-0010
v4l2-ctl-2270 [003] … 405.363771: tegra_channel_set_power: imx219 9-0010 : 0x1
v4l2-ctl-2270 [003] … 405.363865: camera_common_s_power: status : 0x1
v4l2-ctl-2270 [003] … 405.363873: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2270 [003] … 405.363875: csi_s_power: enable : 0x1
v4l2-ctl-2270 [003] … 405.364817: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4

vi-output, imx2-2272 [005] … 405.374504: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 405.374524: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 405.374534: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 405.374545: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2272 tid:2272
v4l2-ctl-2270 [005] … 405.374563: tegra_channel_set_stream: enable : 0x1
kworker/1:17-1686 [001] … 405.375404: rtcpu_string: tstamp:13590831235 id:0x04010000 str:“VM0 activating.”
v4l2-ctl-2270 [005] … 405.379558: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2270 [005] … 405.379562: csi_s_stream: enable : 0x1
v4l2-ctl-2270 [005] … 405.380036: tegra_channel_set_stream: imx219 9-0010 : 0x1
kworker/1:17-1686 [001] … 405.430893: rtcpu_vinotify_event: tstamp:13591491720 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:434912437184 data:0x799e300010000000
kworker/1:17-1686 [001] … 405.430896: rtcpu_vinotify_event: tstamp:13591491944 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:434912446848 data:0x0000000031000001
kworker/1:17-1686 [001] … 405.430897: rtcpu_vinotify_event: tstamp:13591492191 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:434912451392 data:0x0000000007020001
kworker/1:17-1686 [001] … 405.430897: rtcpu_vinotify_event: tstamp:13591492411 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:434912545408 data:0x799e2d0010000000
kworker/1:17-1686 [001] … 405.430898: rtcpu_vinotify_event: tstamp:13591492650 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:434912555200 data:0x0000000031000002
vi-output, imx2-2273 [001] … 405.545560: tegra_channel_capture_frame: sof:435.82967584
vi-output, imx2-2273 [001] … 405.545561: tegra_channel_capture_frame: eof:435.83083872
vi-output, imx2-2272 [005] … 405.545907: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2272 tid:2272
kworker/1:17-1686 [001] … 405.598838: rtcpu_nvcsi_intr: tstamp:13596349798 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/1:17-1686 [001] … 405.598839: rtcpu_nvcsi_intr: tstamp:13596349798 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
kworker/1:17-1686 [001] … 405.598839: rtcpu_nvcsi_intr: tstamp:13596349798 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/1:17-1686 [001] … 405.598840: rtcpu_nvcsi_intr: tstamp:13596349798 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
kworker/1:17-1686 [001] … 405.598841: rtcpu_vinotify_event: tstamp:13596374208 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:435082963872 data:0x0000000000000012
kworker/1:17-1686 [001] … 405.598841: rtcpu_vinotify_event: tstamp:13596374463 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:435082964000 data:0x0000000800000000
kworker/1:17-1686 [001] … 405.598841: rtcpu_vinotify_event: tstamp:13596374683 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:435082967584 data:0x0000000000000001
kworker/1:17-1686 [001] … 405.598842: rtcpu_vinotify_event: tstamp:13596374924 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:435083006976 data:0x0000000008020001
kworker/1:17-1686 [001] … 405.598842: rtcpu_vinotify_event: tstamp:13596375138 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:435082977632 data:0x0000000000000200
kworker/1:17-1686 [001] … 405.598842: rtcpu_vinotify_event: tstamp:13596375374 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:435083085632 data:0x0000000001020001
kworker/1:17-1686 [001] … 405.598843: rtcpu_vinotify_event: tstamp:13596375584 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:435083049056 data:0x0000000000010210
vi-output, imx2-2273 [002] … 408.087406: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4
vi-output, imx2-2272 [005] … 408.087593: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 408.087614: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 408.087622: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 408.087629: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
kworker/1:17-1686 [001] … 408.126180: rtcpu_vinotify_error: tstamp:13675774870 cch:-1 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:437624121824 data:0x0000000000000122
kworker/1:17-1686 [001] … 408.126184: rtcpu_vinotify_event: tstamp:13675807153 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:437624121824 data:0x0000000000000122
kworker/1:17-1686 [001] … 408.126185: rtcpu_vinotify_event: tstamp:13675807392 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:437624121856 data:0x0002200001000000
kworker/1:17-1686 [001] … 408.126186: rtcpu_vinotify_event: tstamp:13675807649 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:437624121920 data:0x0000000800000000
kworker/1:17-1686 [001] … 408.126186: rtcpu_vinotify_event: tstamp:13675807865 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:437625719904 data:0x799e300010000000
kworker/1:17-1686 [001] … 408.126187: rtcpu_vinotify_event: tstamp:13676344391 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:437625880288 data:0x0000000031000001
kworker/1:17-1686 [001] … 408.126188: rtcpu_vinotify_event: tstamp:13676344612 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:437625898464 data:0x799e2d0010000000
kworker/1:17-1686 [001] … 408.126188: rtcpu_vinotify_event: tstamp:13676344856 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:437625918784 data:0x0000000007020001
kworker/1:17-1686 [001] … 408.126189: rtcpu_vinotify_event: tstamp:13676345073 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:437625961408 data:0x0000000031000002
vi-output, imx2-2273 [003] … 410.646280: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4
vi-output, imx2-2272 [005] … 410.646451: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 410.646477: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 410.646489: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
vi-output, imx2-2272 [005] … 410.646499: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2272 tid:2272
kworker/1:17-1686 [001] … 410.705501: rtcpu_vinotify_event: tstamp:13756098459 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:440184520544 data:0x799e300010000000
kworker/1:17-1686 [001] … 410.705503: rtcpu_vinotify_event: tstamp:13756098683 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:440184582272 data:0x0000000031000001
kworker/1:17-1686 [001] … 410.705504: rtcpu_vinotify_event: tstamp:13756098927 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:440184600416 data:0x799e2d0010000000
kworker/1:17-1686 [001] … 410.705504: rtcpu_vinotify_event: tstamp:13756099142 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:440184620672 data:0x0000000007020001
kworker/1:17-1686 [001] … 410.705505: rtcpu_vinotify_event: tstamp:13756099382 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:440184697472 data:0x0000000031000002

Looks like the show the same error. That’s doesn’t make scene.

Do you confirm the size “Width/Height : 1024/32” by `v4l2-ctl --all`

I confirm the size is “Width/Height : 1024/32” by `v4l2-ctl --all`

The log is below:

fw_test@fw:~$ v4l2-ctl --all
Driver Info:
Driver name : tegra-video
Card type : vi-output, imx219 9-0010
Bus info : platform:tegra-capture-vi:2
Driver version : 5.15.148
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.15.148
Hardware revision: 0x00000003 (3)
Driver version : 5.15.148
Interface Info:
ID : 0x03000008
Type : V4L Video
Entity Info:
ID : 0x00000006 (6)
Name : vi-output, imx219 9-0010
Function : V4L2 I/O
Pad 0x01000007 : 0: Sink
Link 0x0200000c: from remote pad 0x1000003 of entity ‘13e00000.host1x:nvcsi@15a00000-’ (Unknown sub-device (0002000a)): Data, Enabled
Priority: 2
Video input : 0 (Camera 2: ok)
Format Video Capture:
Width/Height : 1024/32
Pixel Format : ‘RG12’ (12-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 2048
Size Image : 65536
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0

Camera Controls

                 group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                sensor_mode 0x009a2008 (int64)  : min=0 max=1 step=1 default=0 value=0 flags=slider
                       gain 0x009a2009 (int64)  : min=16 max=171 step=1 default=16 value=16 flags=slider
                   exposure 0x009a200a (int64)  : min=13 max=683710 step=1 default=2495 value=13 flags=slider
                 frame_rate 0x009a200b (int64)  : min=2000000 max=30000000 step=1 default=30000000 value=2000000 flags=slider
       sensor_configuration 0x009a2032 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[22] flags=read-only, volatile, has-payload
     sensor_mode_i2c_packet 0x009a2033 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
  sensor_control_i2c_packet 0x009a2034 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
                bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
			0: 0 (0x0)
			1: 1 (0x1)
            override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
			0: 0 (0x0)
			1: 1 (0x1)
               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 (1 0x1)
			0: 1 (0x1)
			1: 65536 (0x10000)
			2: 131072 (0x20000)
           write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
   sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][18] flags=read-only, has-payload
    sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] flags=read-only, has-payload
  sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][36] flags=read-only, has-payload
          sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] 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
override_capture_timeout_ms 0x009a206f (int)    : min=-1 max=2147483647 step=1 default=2500 value=2500
               sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only

Boost the clocks to check the log again.

sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

I boost the clocks,and test again, the log is below:

The boost clocks log:

root@fw:/home/fw_test# echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate
550400000
729600000
214300000
3199000000

The dmesg log:

[  +0.000002] vi5_setup_surface: port=0, descr_idx=0, height=32, width=1024, bpl=2048
[  +0.000004] vi5_setup_surface: offset=0x7ffbff0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000001] vi5_setup_surface: port=0, descr_idx=1, height=32, width=1024, bpl=2048
[  +0.000003] vi5_setup_surface: offset=0x7ffbfe0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  -0.000001] vi5_setup_surface: port=0, descr_idx=2, height=32, width=1024, bpl=2048
[  +0.000000] vi5_setup_surface: offset=0x7ffbfd0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000001] vi5_setup_surface: port=0, descr_idx=3, height=32, width=1024, bpl=2048
[  +0.000003] vi5_setup_surface: offset=0x7ffbfc0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000007] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 512
[  +0.000003] vi5_setup_surface: port=0, descr_idx=0, height=32, width=1024, bpl=2048
[  +0.000003] vi5_setup_surface: offset=0x7ffbff0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000016] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  +0.000007] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  +0.000007] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  +0.000007] vi5_setup_surface: port=0, descr_idx=0, height=32, width=1024, bpl=2048
[  +0.000006] vi5_setup_surface: offset=0x7ffbfe0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000001] vi5_setup_surface: port=0, descr_idx=1, height=32, width=1024, bpl=2048
[  +0.000000] vi5_setup_surface: offset=0x7ffbfd0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000001] vi5_setup_surface: port=0, descr_idx=2, height=32, width=1024, bpl=2048
[  +0.000002] vi5_setup_surface: offset=0x7ffbfc0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000002] vi5_setup_surface: port=0, descr_idx=3, height=32, width=1024, bpl=2048
[  +0.000002] vi5_setup_surface: offset=0x7ffbff0000, format=0xc4, virtual_channel=0, data_type=0x2c, nvcsi_stream=2
[  +0.000013] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  +0.000006] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  +0.000005] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

The RCE Trace:

     kworker/2:2-151     [002] .......   122.701182: rtcpu_string: tstamp:4755257182 id:0x04010000 str:"VM0 deactivating."
        v4l2-ctl-2280    [002] .......   241.551238: tegra_channel_open: vi-output, imx219 9-0010
        v4l2-ctl-2280    [002] .......   241.560954: tegra_channel_set_power: imx219 9-0010 : 0x1
        v4l2-ctl-2280    [002] .......   241.561081: camera_common_s_power: status : 0x1
        v4l2-ctl-2280    [002] .......   241.561090: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-2280    [002] .......   241.561093: csi_s_power: enable : 0x1
        v4l2-ctl-2280    [002] .......   241.562090: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4
 vi-output, imx2-2281    [003] .......   241.570375: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2281 tid:2281
 vi-output, imx2-2281    [003] .......   241.570392: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2281 tid:2281
        v4l2-ctl-2280    [002] .......   241.570396: tegra_channel_set_stream: enable : 0x1
 vi-output, imx2-2281    [003] .......   241.570402: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2281 tid:2281
 vi-output, imx2-2281    [003] .......   241.570411: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2281 tid:2281
        v4l2-ctl-2280    [002] .......   241.571997: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-2280    [002] .......   241.572000: csi_s_stream: enable : 0x1
        v4l2-ctl-2280    [002] .......   241.572479: tegra_channel_set_stream: imx219 9-0010 : 0x1
     kworker/2:2-151     [002] .......   241.590985: rtcpu_string: tstamp:8471523877 id:0x04010000 str:"VM0 activating."
     kworker/2:2-151     [002] .......   241.590989: rtcpu_vinotify_event: tstamp:8471993843 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:271093501984 data:0x799e300010000000
     kworker/2:2-151     [002] .......   241.590989: rtcpu_vinotify_event: tstamp:8471994070 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:271093511648 data:0x0000000031000001
     kworker/2:2-151     [002] .......   241.590990: rtcpu_vinotify_event: tstamp:8471994315 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:271093516160 data:0x0000000007020001
     kworker/2:2-151     [002] .......   241.590990: rtcpu_vinotify_event: tstamp:8471994525 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:271093610208 data:0x799e2d0010000000
     kworker/2:2-151     [002] .......   241.590990: rtcpu_vinotify_event: tstamp:8471994770 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:271093620000 data:0x0000000031000002
 vi-output, imx2-2282    [000] .......   241.650779: tegra_channel_capture_frame: sof:271.173469920
 vi-output, imx2-2282    [000] .......   241.650781: tegra_channel_capture_frame: eof:271.173490432
 vi-output, imx2-2281    [001] .......   241.650875: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:2281 tid:2281
     kworker/2:2-151     [002] .......   241.702981: rtcpu_nvcsi_intr: tstamp:8474172395 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
     kworker/2:2-151     [002] .......   241.702982: rtcpu_nvcsi_intr: tstamp:8474172395 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
     kworker/2:2-151     [002] .......   241.702983: rtcpu_nvcsi_intr: tstamp:8474174901 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x08000000
     kworker/2:2-151     [002] .......   241.702983: rtcpu_nvcsi_intr: tstamp:8474174901 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000800
     kworker/2:2-151     [002] .......   241.702984: rtcpu_nvcsi_intr: tstamp:8474180762 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
     kworker/2:2-151     [002] .......   241.702984: rtcpu_nvcsi_intr: tstamp:8474180762 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
     kworker/2:2-151     [002] .......   241.702986: rtcpu_vinotify_event: tstamp:8474378488 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:271173466208 data:0x0000000000000012
     kworker/2:2-151     [002] .......   241.702986: rtcpu_vinotify_event: tstamp:8474378743 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:271173466208 data:0x0000000800000000
     kworker/2:2-151     [002] .......   241.702987: rtcpu_vinotify_event: tstamp:8474378965 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:271173469920 data:0x0000000000000001
     kworker/2:2-151     [002] .......   241.702987: rtcpu_vinotify_event: tstamp:8474379208 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:271173474912 data:0x0000000008020001
     kworker/2:2-151     [002] .......   241.702987: rtcpu_vinotify_event: tstamp:8474379432 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:0 vi_tstamp:271173480320 data:0x0000000000000200
     kworker/2:2-151     [002] .......   241.702988: rtcpu_vinotify_event: tstamp:8474379669 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:271173490816 data:0x0000000001020001
 vi-output, imx2-2282    [005] .......   244.195672: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4
 vi-output, imx2-2281    [001] .......   244.195874: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2281 tid:2281
 vi-output, imx2-2281    [001] .......   244.195902: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2281 tid:2281
 vi-output, imx2-2281    [001] .......   244.195914: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2281 tid:2281
 vi-output, imx2-2281    [001] .......   244.195923: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:4 pid:2281 tid:2281
     kworker/2:2-151     [002] .......   244.226973: rtcpu_vinotify_error: tstamp:8553699752 cch:-1 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:273718094688 data:0x0000000000000122
     kworker/2:2-151     [002] .......   244.226977: rtcpu_vinotify_event: tstamp:8553722958 cch:0 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:0 vi_tstamp:273718094688 data:0x0000000000000122
     kworker/2:2-151     [002] .......   244.226978: rtcpu_vinotify_event: tstamp:8553723201 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:273718094688 data:0x0001200001000000
     kworker/2:2-151     [002] .......   244.226979: rtcpu_vinotify_event: tstamp:8553723420 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:273718094720 data:0x0000000800000000
     kworker/2:2-151     [002] .......   244.226980: rtcpu_vinotify_event: tstamp:8553723659 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:273718997952 data:0x799e300010000000
     kworker/2:2-151     [002] .......   244.226981: rtcpu_vinotify_event: tstamp:8553723883 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:273719007648 data:0x0000000031000001
     kworker/2:2-151     [002] .......   244.226982: rtcpu_vinotify_event: tstamp:8554060056 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:273719024064 data:0x0000000007020001
     kworker/2:2-151     [002] .......   244.226982: rtcpu_vinotify_event: tstamp:8554060280 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:273719136736 data:0x799e2d0010000000
     kworker/2:2-151     [002] .......   244.226983: rtcpu_vinotify_event: tstamp:8554060522 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:273719147200 data:0x0000000031000002
        v4l2-ctl-2280    [002] .......   246.643947: tegra_channel_close: vi-output, imx219 9-0010
 vi-output, imx2-2282    [005] .......   246.699684: tegra_channel_capture_setup: vnc_id 0 W 1024 H 32 fmt c4
        v4l2-ctl-2280    [002] .......   246.699978: tegra_channel_set_stream: enable : 0x0
        v4l2-ctl-2280    [002] .......   246.699979: tegra_channel_set_stream: imx219 9-0010 : 0x0
        v4l2-ctl-2280    [002] .......   246.702955: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
        v4l2-ctl-2280    [002] .......   246.702957: csi_s_stream: enable : 0x0
        v4l2-ctl-2280    [002] .......   246.705486: tegra_channel_set_power: imx219 9-0010 : 0x0
        v4l2-ctl-2280    [002] .......   246.705513: camera_common_s_power: status : 0x0
        v4l2-ctl-2280    [002] .......   246.705522: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
        v4l2-ctl-2280    [002] .......   246.705523: csi_s_power: enable : 0x0

The ‘v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --set-ctrl=bypass_mode=0 --stream-to=single_frame.bin --verbose’ command log:

fw_test@fw:~$ v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --set-ctrl=bypass_mode=0 --stream-to=single_frame.bin --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
		VIDIOC_REQBUFS returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QUERYBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_QBUF returned 0 (Success)
		VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq:      0 bytesused: 65536 ts: 271.173469 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      1 bytesused: 65536 ts: 0.000000 delta: -271173.469 ms (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      0 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      2 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      3 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq:      4 bytesused: 65536 ts: 0.000000 (error, ts-monotonic, ts-src-eof)

The ‘v4l2-ctl --all‘ command log:

fw_test@fw:~$ v4l2-ctl --all
Driver Info:
	Driver name      : tegra-video
	Card type        : vi-output, imx219 9-0010
	Bus info         : platform:tegra-capture-vi:2
	Driver version   : 5.15.148
	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.15.148
	Hardware revision: 0x00000003 (3)
	Driver version   : 5.15.148
Interface Info:
	ID               : 0x03000008
	Type             : V4L Video
Entity Info:
	ID               : 0x00000006 (6)
	Name             : vi-output, imx219 9-0010
	Function         : V4L2 I/O
	Pad 0x01000007   : 0: Sink
	  Link 0x0200000c: from remote pad 0x1000003 of entity '13e00000.host1x:nvcsi@15a00000-' (Unknown sub-device (0002000a)): Data, Enabled
Priority: 2
Video input : 0 (Camera 2: ok)
Format Video Capture:
	Width/Height      : 1024/32
	Pixel Format      : 'RG12' (12-bit Bayer RGRG/GBGB)
	Field             : None
	Bytes per Line    : 2048
	Size Image        : 65536
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                    sensor_mode 0x009a2008 (int64)  : min=0 max=1 step=1 default=0 value=0 flags=slider
                           gain 0x009a2009 (int64)  : min=16 max=171 step=1 default=16 value=16 flags=slider
                       exposure 0x009a200a (int64)  : min=13 max=683710 step=1 default=2495 value=13 flags=slider
                     frame_rate 0x009a200b (int64)  : min=2000000 max=30000000 step=1 default=30000000 value=2000000 flags=slider
           sensor_configuration 0x009a2032 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[22] flags=read-only, volatile, has-payload
         sensor_mode_i2c_packet 0x009a2033 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
      sensor_control_i2c_packet 0x009a2034 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
				0: 0 (0x0)
				1: 1 (0x1)
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
				0: 0 (0x0)
				1: 1 (0x1)
                   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 (1 0x1)
				0: 1 (0x1)
				1: 65536 (0x10000)
				2: 131072 (0x20000)
               write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][18] flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][36] flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] 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
    override_capture_timeout_ms 0x009a206f (int)    : min=-1 max=2147483647 step=1 default=2500 value=2500
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only

Please confirm the width/height in the vi5_setup_surface() of vi5_fops.c to confirm the output size setting in VI REG.

Thanks

The width/height is as below

[  +0.000002] vi5_setup_surface: port=0, descr_idx=0, height=32, width=1024, bpl=2048

Please enable the line_timer_enable and line_timer_periodic to check how many lines received by VI.

You can add line_timer_enable/line_timer_periodic in the ch_cfg structure in vi5_fops.c

Thanks

../kernel/nvidia-oot/include/soc/tegra/camrtc-capture.h

struct vi_channel_config {
1036  	/** Enable CSI datatype override (1=enable, 0=disable). */
1037  	unsigned dt_enable:1;
1038  
1039  	/** Enable reception of sensor embedded data (1=enable, 0=disable). */
1040  	unsigned embdata_enable:1;
1041  
1042  	/** Enable memory flush function (1=enable, 0=disable). */
1043  	unsigned flush_enable:1;
1044  
1045  	/** Enable periodic (subframe) memory flushes (1=enable, 0=disable). */
1046  	unsigned flush_periodic:1;
1047  
1048  	/** Enable line timer function (1=enable, 0=disable). */
1049  	unsigned line_timer_enable:1;
1050  
1051  	/** Periodic line timer notice enabled flag (1=enable, 0=disable). */
1052  	unsigned line_timer_periodic:1;

I have add the line_timer_enable/line_timer_periodic in the function vi5_setup_surface of vi5_fops.c, and update the tegra-camera.ko, but i can’t find the line information in the rce trace.

desc->ch_cfg.line_timer_enable = 1;

desc->ch_cfg.line_timer_periodic = 1;

desc->ch_cfg.line_timer = 2;

Try set the line_timer_first too to check.

If still no show the line event in trace log get the REG from below for the LINE_COUNT.

You may need search this forum to disable the firewall to access those REG by devmem2.

BTW, don’t know which CH* be used for your camera.

0x14f11080: VI_CH0_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f13880: VI_CH10_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f13c80: VI_CH11_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f14080: VI_CH12_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f14480: VI_CH13_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f14880: VI_CH14_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f14c80: VI_CH15_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f15080: VI_CH16_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f15480: VI_CH17_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f15880: VI_CH18_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f15c80: VI_CH19_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f11480: VI_CH1_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f16080: VI_CH20_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f16480: VI_CH21_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f16880: VI_CH22_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f16c80: VI_CH23_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f17080: VI_CH24_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f17480: VI_CH25_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f17880: VI_CH26_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f17c80: VI_CH27_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f18080: VI_CH28_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f18480: VI_CH29_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f11880: VI_CH2_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f18880: VI_CH30_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f18c80: VI_CH31_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f19080: VI_CH32_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f19480: VI_CH33_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f19880: VI_CH34_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f19c80: VI_CH35_PIXEL_SHORT_FRAME_STATUS_0                      = 0x00000000 //
0x14f11c80: VI_CH3_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f12080: VI_CH4_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f12480: VI_CH5_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f12880: VI_CH6_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f12c80: VI_CH7_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f13080: VI_CH8_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //
0x14f13480: VI_CH9_PIXEL_SHORT_FRAME_STATUS_0                       = 0x00000000 //