How to configure DTS and bring up imx582 for AGX Xavier

Hi term:
I try to bring up imx582, and I can read out image by v4l2 API, but all of value is 0。

sensor output info:

  • number of cis lanes: 2 lane;
  • Resolution: 8000*6000;
  • Frame rate: 1FPS;
  • frame_length_lines: 47038; Blanking 872ms
  • line_length_pck: 9184; Blanking 2.74us
  • pixel rate 108Mhz;
  • mipi bit rate, 2160Mhz; UI(unit interval) 1/2160=0.46ns;

DTS :

imx582_a@1a {
                                        compatible = "nvidia,imx582";
                                        reg = <0x1a>;
                                        status = "okay";
                                        devnode = "video0";
                                        physical_w = "7.5";
                                        physical_h = "5.6";
                                        avdd-reg = "vana";
                                        iovdd-reg = "vif";
                                        dvdd-reg = "vdig";
                                        clocks = <0x4 0x24 0x4 0x66>;
                                        clock-names = "extperiph1", "pllp_grtba";
                                        mclk = "extperiph1";
                                        clock-frequency = <0x16e3600>;
                                        reset-gpios = <&pca9554 0x05 0x0>;
                                        vana-supply = <0x2e>;
                                        vif-supply = <0x2f>;
                                        vdig-supply = <0x37>;
                                        sensor_model = "imx582";
                                        post_crop_frame_drop = [30 00];
                                        use_decibel_gain = "true";
                                        delayed_gain = "true";
                                        use_sensor_mode_id = "true";
                                        limit_analog_gain = "true";
                                        mode0 {
                                                mclk_khz = "24000";
                                                num_lanes = [32 00];
                                                tegra_sinterface = "serial_g";
                                                phy_mode = "DPHY";
                                                discontinuous_clk = "yes";
                                                dpcm_enable = "false";
                                                cil_settletime = "145";
                                                dynamic_pixel_bit_depth = "10";
                                                csi_pixel_bit_depth = "10";
                                                mode_type = "bayer";
                                                pixel_phase = "rggb";
                                                active_w = "8000";
                                                active_h = "6000";
                                                readout_orientation = [30 00];
                                                line_length = "9184";
                                                inherent_gain = [31 00];
                                                mclk_multiplier = [32 00];
                                                pix_clk_hz = "108000000";
                                                gain_factor = "10";
                                                min_gain_val = [31 00];
                                                max_gain_val = "24";
                                                step_gain_val = [31 00];
                                                default_gain = [31 00];
                                                min_hdr_ratio = [31 00];
                                                max_hdr_ratio = [31 00];
                                                framerate_factor = "1000000";
                                                min_framerate = "100000";
                                                max_framerate = "2000000";
                                                step_framerate = [31 00];
                                                default_framerate = "1000000";
                                                exposure_factor = "1000000";
                                                min_exp_time = "30";
                                                max_exp_time = "660000";
                                                step_exp_time = [31 00];
                                                default_exp_time = "33334";
                                                embedded_metadata_height = [31 00];
                                        };

tegra-camera-platform {
                compatible = "nvidia, tegra-camera-platform";
                num_csi_lanes = <2>;
                max_lane_speed = <2160000>;
                min_bits_per_pixel = <0xa>;
                vi_peak_byte_per_pixel = <0x2>;
                vi_bw_margin_pct = <0x19>;
                max_pixel_rate = <0xb71b0>;
                isp_peak_byte_per_pixel = <0x5>;
                isp_bw_margin_pct = <0x19>;
                tpg_max_iso = <0x3bc400>;
                linux,phandle = <0x1cb>;
                phandle = <0x1cb>;

                modules {

test common:

v4l2-ctl --set-fmt-video=width=8000,height=6000,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video0

trace info

kworker/0:0-7796  [000] ....  3224.145694: rtcpu_string: tstamp:101458087476 id:0x04010000 str:"vi5_hwinit: firmware CL2018101701 protocol vers"
     kworker/0:0-7796  [000] ....  3224.145696: rtcpu_string: tstamp:101458087580 id:0x04010000 str:"on 2.2^M
"
     kworker/0:0-7796  [000] ....  3224.145699: rtos_queue_send_from_isr_failed: tstamp:101458101458 queue:0x0bcb41f8
     kworker/0:0-7796  [000] ....  3224.145699: rtos_queue_send_from_isr_failed: tstamp:101458101598 queue:0x0bcb8a60
     kworker/0:0-7796  [000] ....  3224.145700: rtos_queue_send_from_isr_failed: tstamp:101458101741 queue:0x0bcba5e0
     kworker/0:0-7796  [000] ....  3224.145700: rtos_queue_send_from_isr_failed: tstamp:101458101873 queue:0x0bcbb3a0
     kworker/0:0-7796  [000] ....  3224.145700: rtos_queue_send_from_isr_failed: tstamp:101458102004 queue:0x0bcbc160
     kworker/0:0-7796  [000] ....  3224.145705: rtcpu_string: tstamp:101458102834 id:0x04010000 str:"VI GOS[#0] set to VM GOS[4] base 0xc2104000
"
     kworker/0:0-7796  [000] ....  3224.145708: rtos_queue_send_from_isr_failed: tstamp:101458169943 queue:0x0bcb41f8
     kworker/0:0-7796  [000] ....  3224.145708: rtos_queue_send_from_isr_failed: tstamp:101458170080 queue:0x0bcb8a60
     kworker/0:0-7796  [000] ....  3224.145708: rtos_queue_send_from_isr_failed: tstamp:101458170219 queue:0x0bcba5e0
     kworker/0:0-7796  [000] ....  3224.145708: rtos_queue_send_from_isr_failed: tstamp:101458170351 queue:0x0bcbb3a0
     kworker/0:0-7796  [000] ....  3224.145708: rtos_queue_send_from_isr_failed: tstamp:101458170482 queue:0x0bcbc160
     kworker/0:0-7796  [000] ....  3224.145715: rtcpu_vinotify_event: tstamp:101458636229 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:102743257376 data:0x10000000
     kworker/0:0-7796  [000] ....  3224.145717: rtcpu_vinotify_event: tstamp:101458636373 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:102743261216 data:0x31000001
     kworker/0:0-7796  [000] ....  3224.145719: rtcpu_vinotify_event: tstamp:101458636518 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:102743262240 data:0x07020001
     kworker/0:0-7796  [000] ....  3224.145721: rtcpu_vinotify_event: tstamp:101458636640 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:102743295904 data:0x10000000
     kworker/0:0-7796  [000] ....  3224.145723: rtcpu_vinotify_event: tstamp:101458636780 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:102743299840 data:0x31000002
     kworker/0:0-7796  [000] ....  3224.201616: rtcpu_nvcsi_intr: tstamp:101460657663 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:5 vc:0 status:0x00000001
     kworker/0:0-7796  [000] ....  3224.201617: rtcpu_nvcsi_intr: tstamp:101460657663 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000132
     kworker/0:0-7796  [000] ....  3224.201617: rtcpu_nvcsi_intr: tstamp:101460657663 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:5 vc:0 status:0x00000001
     kworker/0:0-7796  [000] ....  3224.201617: rtcpu_nvcsi_intr: tstamp:101460657663 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000132
     kworker/0:0-7796  [000] ....  3224.201619: rtos_queue_peek_from_isr_failed: tstamp:101460697982 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3224.369591: rtos_queue_peek_from_isr_failed: tstamp:101465697983 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3224.537590: rtos_queue_peek_from_isr_failed: tstamp:101470697983 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3224.705583: rtos_queue_peek_from_isr_failed: tstamp:101475697985 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3224.873580: rtos_queue_peek_from_isr_failed: tstamp:101480697982 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3224.985568: rtos_queue_peek_from_isr_failed: tstamp:101485697982 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3225.153572: rtos_queue_peek_from_isr_failed: tstamp:101490697983 queue:0x0bcbcf78
     kworker/0:0-7796  [000] ....  3225.209557: rtcpu_nvcsi_intr: tstamp:101491986314 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209558: rtcpu_nvcsi_intr: tstamp:101491986314 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209558: rtcpu_nvcsi_intr: tstamp:101491986960 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209558: rtcpu_nvcsi_intr: tstamp:101491986960 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209558: rtcpu_nvcsi_intr: tstamp:101491993542 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209558: rtcpu_nvcsi_intr: tstamp:101491993542 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209558: rtcpu_nvcsi_intr: tstamp:101491994176 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209559: rtcpu_nvcsi_intr: tstamp:101491994176 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209559: rtcpu_nvcsi_intr: tstamp:101491994870 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209559: rtcpu_nvcsi_intr: tstamp:101491994870 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209559: rtcpu_nvcsi_intr: tstamp:101491995508 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209559: rtcpu_nvcsi_intr: tstamp:101491995508 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209559: rtcpu_nvcsi_intr: tstamp:101491996195 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209560: rtcpu_nvcsi_intr: tstamp:101491996195 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000044
     kworker/0:0-7796  [000] ....  3225.209560: rtcpu_nvcsi_intr: tstamp:101491996833 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000124

//camrtc-capture.h
/* NVCSI phy/cil intr error flags */
721 #define NVCSI_INTR_FLAG_CIL_INTR_DPHY_ERR_CLK_LANE_CTRL›› (U32_C(1) << 0)
722 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR0_SOT_SB› › (U32_C(1) << 1)
723 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR0_SOT_MB› › (U32_C(1) << 2)
724 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR0_CTRL› › (U32_C(1) << 3)
725 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR0_RXFIFO_FULL›(U32_C(1) << 4)
726 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR1_SOT_SB› › (U32_C(1) << 5)
727 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR1_SOT_MB› › (U32_C(1) << 6)
728 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR1_CTRL› › (U32_C(1) << 7)
729 #define NVCSI_INTR_FLAG_CIL_INTR_DATA_LANE_ERR1_RXFIFO_FULL›(U32_C(1) << 8)

    1. what does ERRO_SOT_MB mean, and how to fix it?
    1. how to configure DTS?

List item

Start of transmission error.
Check the programing guide for the dts configure.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/camera_sensor_prog.html#

hi ShaneCCC:
I read the link, but I don’t know which parameter is wrong.
i capture the MIPI data lane as follow:

What’s the nvcsi and vi dts configure.

I connect sensor to CSI6 ,pinout as follow:
image
nvcsi/vi dts as follow:

vi@15c10000 {
                        compatible = "nvidia,tegra194-vi";
                        reg = <0x0 0x15c10000 0x0 0x230000 0x0 0x15f00000 0x0 0x100000>;
                        resets = <0x5 0x70 0x5 0x61>;
                        reset-names = "vi", "tsctnvi";
                        clocks = <0x4 0xa6 0x4 0xc4 0x4 0x51 0x4 0x52>;
                        clock-names = "vi", "vi-const", "nvcsi", "nvcsilp";
                        power-domains = <0x3 0xc>;
                        nvidia,vi-falcon-device = <0x87>;
                        iommus = <0x2 0x4>;
                        iso-smmu;
                        non-coherent;
                        num-channels = <0x6>;
                        linux,phandle = <0x60>;
                        phandle = <0x60>;

                        ports {
                                #address-cells = <0x1>;
                                #size-cells = <0x0>;

                                port@0 {
....
....
																port@5 {
                                        reg = <0x5>;
                                        status = "ok";
                                        linux,phandle = <0x18d>;
                                        phandle = <0x18d>;

                                        endpoint {
                                                port-index = <0x5>;
                                                bus-width = <0x2>;
                                                remote-endpoint = <0x8d>;
                                                vc-id = <0x0>;
                                                status = "ok";
                                                linux,phandle = <0x9a>;
                                                phandle = <0x9a>;
                                        };
                                };
                        };
								

nvcsi@15a00000 {
                        compatible = "nvidia,tegra194-nvcsi";
                        reg = <0x0 0x15a00000 0x0 0x50000>;
                        power-domains = <0x3 0xc>;
                        resets = <0x5 0x2b>;
                        clocks = <0x4 0x51 0x4 0x52>;
                        clock-names = "nvcsi", "nvcsilp";
                        interrupts = <0x0 0x77 0x4>;
                        num-ports = <0x0c>;
                        num-channels = <0x6>;
                        #address-cells = <0x1>;
                        #size-cells = <0x0>;
                        status = "okay";
                        num-tpg-channels = <0x24>;
                        linux,phandle = <0x61>;
                        phandle = <0x61>;

                        prod-settings {
                                #prod-cells = <0x4>;

                                prod {
                                        prod = <0x0 0x11018 0x70000 0x20000 0x0 0x1109c 0xe000e000 0xc000c000 0x0 0x110a8 0xfefe 0x4c4c 0x0 0x11128 0xe000e000 0xc000c000 0x0 0x11134 0xfefe 0x4c4c 0x0 0x21018 0x70000 0x20000 0x0 0x2109c 0xe000e000 0xc000c000 0x0 0x210a8 0xfefe 0x4c4c 0x0 0x21128 0xe000e000 0xc000c000 0x0 0x21134 0xfefe 0x4c4c 0x0 0x31018 0x70000 0x20000 0x0 0x3109c 0xe000e000 0xc000c000 0x0 0x310a8 0xfefe 0x4c4c 0x0 0x31128 0xe000e000 0xc000c000 0x0 0x31134 0xfefe 0x4c4c 0x0 0x41018 0x70000 0x20000 0x0 0x4109c 0xe000e000 0xc000c000 0x0 0x410a8 0xfefe 0x4c4c 0x0 0x41128 0xe000e000 0xc000c000 0x0 0x41134 0xfefe 0x4c4c 0x0 0x1102c 0xfc000000 0xe0000000 0x0 0x110b8 0xfc000000 0xe0000000 0x0 0x2102c 0xfc000000 0xe0000000 0x0 0x210b8 0xfc000000 0xe0000000 0x0 0x3102c 0xfc000000 0xe0000000 0x0 0x310b8 0xfc000000 0xe0000000 0x0 0x4102c 0xfc000000 0xe0000000 0x0 0x410b8 0xfc000000 0xe0000000>;
                                };

                                prod_c_cphy_mode {
                                        prod = <0x0 0x11030 0x7f7f7f 0x444444 0x0 0x110bc 0x7f7f7f 0x444444 0x0 0x21030 0x7f7f7f 0x444444 0x0 0x210bc 0x7f7f7f 0x444444 0x0 0x31030 0x7f7f7f 0x444444 0x0 0x310bc 0x7f7f7f 0x444444 0x0 0x41030 0x7f7f7f 0x444444 0x0 0x410bc 0x7f7f7f 0x444444 0x0 0x110a8 0xffff 0xfcfc 0x0 0x1109c 0xffffffff 0xd848d848 0x0 0x110a0 0x3 0x0 0x0 0x11098 0x3 0x3 0x0 0x11134 0xffff 0xfcfc 0x0 0x11128 0xffffffff 0xd848d848 0x0 0x1112c 0x3 0x0 0x0 0x11124 0x3 0x3 0x0 0x210a8 0xffff 0xfcfc 0x0 0x2109c 0xffffffff 0xd848d848 0x0 0x210a0 0x3 0x0 0x0 0x21098 0x3 0x3 0x0 0x21134 0xffff 0xfcfc 0x0 0x21128 0xffffffff 0xd848d848 0x0 0x2112c 0x3 0x0 0x0 0x21124 0x3 0x3 0x0 0x310a8 0xffff 0xfcfc 0x0 0x3109c 0xffffffff 0xd848d848 0x0 0x310a0 0x3 0x0 0x0 0x31098 0x3 0x3 0x0 0x31134 0xffff 0xfcfc 0x0 0x31128 0xffffffff 0xd848d848 0x0 0x3112c 0x3 0x0 0x0 0x31124 0x3 0x3 0x0 0x410a8 0xffff 0xfcfc 0x0 0x4109c 0xffffffff 0xd848d848 0x0 0x410a0 0x3 0x0 0x0 0x41098 0x3 0x3 0x0 0x41134 0xffff 0xfcfc 0x0 0x41128 0xffffffff 0xd848d848 0x0 0x4112c 0x3 0x0 0x0 0x41124 0x3 0x3>;
                                };

                                prod_c_dphy_mode {
                                        prod = <0x0 0x11030 0x7f7f7f 0x0 0x0 0x110bc 0x7f7f7f 0x0 0x0 0x21030 0x7f7f7f 0x0 0x0 0x210bc 0x7f7f7f 0x0 0x0 0x31030 0x7f7f7f 0x0 0x0 0x310bc 0x7f7f7f 0x0 0x0 0x41030 0x7f7f7f 0x0 0x0 0x410bc 0x7f7f7f 0x0>;
                                };
                        };

......
......
													channel@5 {
                                reg = <0x5>;
                                status = "ok";
                                linux,phandle = <0x19d>;
                                phandle = <0x19d>;

                                ports {
                                        #address-cells = <0x1>;
                                        #size-cells = <0x0>;

                                        port@0 {
                                                reg = <0x0>;
                                                status = "ok";
                                                linux,phandle = <0x19e>;
                                                phandle = <0x19e>;

                                                endpoint@10 {
                                                        port-index = <0x6>;
                                                        bus-width = <0x2>;
                                                        remote-endpoint = <0x13a>;
                                                        status = "ok";
                                                        linux,phandle = <0x35>;
                                                        phandle = <0x35>;
                                                };
                                        };

                                        port@1 {
                                                reg = <0x1>;
                                                status = "ok";
                                                linux,phandle = <0x19f>;
                                                phandle = <0x19f>;

                                                endpoint@11 {
                                                        remote-endpoint = <0x9a>;
                                                        status = "ok";
                                                        linux,phandle = <0x8d>;
                                                        phandle = <0x8d>;
                                                };
                                        };
                                };
                        };

Could you try connect to CSI0 to check. And check if can configure smaller resolution to try.

thanks, I will try late. but in another discussion, xavier can support 8000*6000 image, which no used ISP . Is there something wrong here?

Yes, so you can’t use ARGUS for 8000x6000 but your can capture by v4l2-ctl

hi ShaneCCC, I tried to change to CSI0, but still get the same error. SoT error means that NVCIS did not receive any data?
I set “cil_settletime” to 20 (85ns+6*UI < (cil_settletime+6)lp_clock_period<145ns+10UI), I will get a RXFIFO_FULL error, as follow:

     kworker/0:4-2272  [000] ....   201.995228: rtcpu_vinotify_event: tstamp:7016689881 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:5473846464 data:0x10000000
     kworker/0:4-2272  [000] ....   201.995229: rtcpu_vinotify_event: tstamp:7016690025 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:5473850368 data:0x31000001
     kworker/0:4-2272  [000] ....   201.995230: rtcpu_vinotify_event: tstamp:7016690170 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:5473851360 data:0x07020001
     kworker/0:4-2272  [000] ....   201.995232: rtcpu_vinotify_event: tstamp:7016690292 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:5473884992 data:0x10000000
     kworker/0:4-2272  [000] ....   201.995233: rtcpu_vinotify_event: tstamp:7016690434 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:5473888928 data:0x31000002
     kworker/0:4-2272  [000] ....   202.051087: rtcpu_nvcsi_intr: tstamp:7018782827 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x0e000000
     kworker/0:4-2272  [000] ....   202.051092: rtcpu_nvcsi_intr: tstamp:7018782827 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000e00
     kworker/0:4-2272  [000] ....   203.058697: rtcpu_nvcsi_intr: tstamp:7050111013 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000110
     kworker/0:4-2272  [000] ....   203.058700: rtcpu_nvcsi_intr: tstamp:7050111013 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000110
     kworker/0:4-2272  [000] ....   203.058702: rtcpu_nvcsi_intr: tstamp:7050111655 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x00000110
     kworker/0:4-2272  [000] ....   203.058703: rtcpu_nvcsi_intr: tstamp:7050111655 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000110

In addition, “Where one lp clock period is 1/(204 MHz)”, it means lp clock is always 204Mhz?, does not rely on sensors?

I also change “pix_clk_hz” to 432000000(Sensor output size*Frame rate:47038*9184*1),it will get a DESKEW_CALIB error, as follwo:

     kworker/0:1-750   [000] ....    70.875950: rtcpu_vinotify_event: tstamp:2920324925 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:3239520640 data:0x10000000
     kworker/0:1-750   [000] ....    70.875951: rtcpu_vinotify_event: tstamp:2920325071 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:3239524512 data:0x31000001
     kworker/0:1-750   [000] ....    70.875952: rtcpu_vinotify_event: tstamp:2920325217 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:3239525536 data:0x07020001
     kworker/0:1-750   [000] ....    70.875953: rtcpu_vinotify_event: tstamp:2920325340 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:3239559360 data:0x10000000
     kworker/0:1-750   [000] ....    70.875954: rtcpu_vinotify_event: tstamp:2920325482 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:3239563296 data:0x31000002
     kworker/0:1-750   [000] ....    70.931858: rtcpu_nvcsi_intr: tstamp:2922547717 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x0e000000
     kworker/0:1-750   [000] ....    70.931863: rtcpu_nvcsi_intr: tstamp:2922547717 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000e00
     kworker/0:1-750   [000] ....    70.987860: rtos_queue_peek_from_isr_failed: tstamp:2923802016 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.155826: rtos_queue_peek_from_isr_failed: tstamp:2928802014 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.323828: rtos_queue_peek_from_isr_failed: tstamp:2933802017 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.491827: rtos_queue_peek_from_isr_failed: tstamp:2938802017 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.659827: rtos_queue_peek_from_isr_failed: tstamp:2943802010 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.771826: rtos_queue_peek_from_isr_failed: tstamp:2948802013 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.939909: rtos_queue_peek_from_isr_failed: tstamp:2953802014 queue:0x0bcbcf78
     kworker/0:1-750   [000] ....    71.939914: rtos_queue_send_from_isr_failed: tstamp:2953893067 queue:0x0bcb41f8
     kworker/0:1-750   [000] ....    71.939916: rtos_queue_send_from_isr_failed: tstamp:2953893206 queue:0x0bcb8a60
     kworker/0:1-750   [000] ....    71.939918: rtos_queue_send_from_isr_failed: tstamp:2953893346 queue:0x0bcba5e0
     kworker/0:1-750   [000] ....    71.939919: rtos_queue_send_from_isr_failed: tstamp:2953893478 queue:0x0bcbb3a0
     kworker/0:1-750   [000] ....    71.939920: rtos_queue_send_from_isr_failed: tstamp:2953893611 queue:0x0bcbc160
     kworker/0:1-750   [000] ....    71.939923: rtcpu_vinotify_event: tstamp:2953962101 tag:FS channel:0x00 frame:1 vi_tstamp:2953875798 data:0x00000015
     kworker/0:1-750   [000] ....    71.939925: rtcpu_vinotify_event: tstamp:2953962263 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:2953875801 data:0x00000000
     kworker/0:1-750   [000] ....    71.939926: rtcpu_vinotify_event: tstamp:2953962394 tag:CHANSEL_EMBED_SOF channel:0x23 frame:1 vi_tstamp:2953875812 data:0x00000004
     kworker/0:1-750   [000] ....    71.939927: rtcpu_vinotify_event: tstamp:2953962538 tag:CHANSEL_EMBED_EOF channel:0x23 frame:1 vi_tstamp:2953876390 data:0x00000008
     kworker/0:1-750   [000] ....    71.939929: rtcpu_vinotify_event: tstamp:2953962661 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:2953876404 data:0x00010800
     kworker/0:1-750   [000] ....    71.939958: rtcpu_vinotify_event: tstamp:2953962808 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:4329742816 data:0x01020001
     kworker/0:1-750   [000] ....    71.939960: rtcpu_vinotify_event: tstamp:2953962929 tag:ATOMP_EMB_DATA_DONE channel:0x23 frame:1 vi_tstamp:2953876413 data:0x00000000
     kworker/0:1-750   [000] ....    71.939961: rtcpu_vinotify_event: tstamp:2953963074 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:4329765248 data:0x03020001
     kworker/0:1-750   [000] ....    71.939962: rtcpu_vinotify_event: tstamp:2953963196 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:2953883043 data:0x00000801
     kworker/0:1-750   [000] ....    71.939964: rtcpu_vinotify_event: tstamp:2953963338 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:4329951968 data:0x01020001
     kworker/0:1-750   [000] ....    72.107827: rtcpu_nvcsi_intr: tstamp:2957869190 class:GLOBAL type:PHY_INTR0 phy:3 cil:0 st:0 vc:0 status:0x0e000000
     kworker/0:1-750   [000] ....    72.107830: rtcpu_nvcsi_intr: tstamp:2957869190 class:CORRECTABLE_ERR type:PHY_INTR phy:3 cil:0 st:0 vc:0 status:0x00000e00
     kworker/0:1-750   [000] ....    72.107860: rtcpu_vinotify_event: tstamp:2957872328 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:2957869066 data:0x176f0802
     kworker/0:1-750   [000] ....    72.107862: rtcpu_vinotify_event: tstamp:2958411461 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:4457510656 data:0x01020001
     kworker/0:1-750   [000] ....    72.107863: rtcpu_vinotify_event: tstamp:2958411593 tag:FE channel:0x00 frame:1 vi_tstamp:2957869079 data:0x00000025

I want to know how can I setting pix_clk_hz/cil_settletime? and I read the source code that “t_clk_settle” ,is set to a fixed value of 33, But the legal value of TCLK-SETTLE in “MIPI_D_PHY_specification_v1_2” is [95,300].

Looks like FIFO full error, try to boost the NVCSI/VI clocks to try.

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
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

https://elinux.org/Jetson/l4t/Camera_BringUp

clk:

998400000
1190400000
400000000

info like:

     kworker/0:0-4     [000] ....  1455.573660: rtcpu_vinotify_event: tstamp:46188573655 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:47800787264 data:0x10000000
     kworker/0:0-4     [000] ....  1455.573661: rtcpu_vinotify_event: tstamp:46188573788 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:47800791136 data:0x31000001
     kworker/0:0-4     [000] ....  1455.573661: rtcpu_vinotify_event: tstamp:46188573932 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:47800792160 data:0x07020001
     kworker/0:0-4     [000] ....  1455.573662: rtcpu_vinotify_event: tstamp:46188574054 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:47800825824 data:0x10000000
     kworker/0:0-4     [000] ....  1455.573663: rtcpu_vinotify_event: tstamp:46188574194 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:47800829728 data:0x31000002
     kworker/0:0-4     [000] ....  1455.573664: rtos_queue_peek_from_isr_failed: tstamp:46188703206 queue:0x0bcbcf78
     kworker/0:0-4     [000] ....  1455.629519: rtcpu_nvcsi_intr: tstamp:46190930728 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x01c00000
     kworker/0:0-4     [000] ....  1455.741506: rtos_queue_peek_from_isr_failed: tstamp:46193703204 queue:0x0bcbcf78
     
  kworker/0:0-4     [000] ....  1456.637472: rtcpu_vinotify_event: tstamp:46222545579 tag:FS channel:0x00 frame:1 vi_tstamp:46222259148 data:0x00000010
     kworker/0:0-4     [000] ....  1456.637474: rtcpu_vinotify_event: tstamp:46222545727 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:46222259148 data:0x00000000
     kworker/0:0-4     [000] ....  1456.637475: rtcpu_vinotify_event: tstamp:46222545855 tag:CHANSEL_EMBED_SOF channel:0x23 frame:1 vi_tstamp:46222259162 data:0x00000004
     kworker/0:0-4     [000] ....  1456.637476: rtcpu_vinotify_event: tstamp:46222546004 tag:CHANSEL_EMBED_EOF channel:0x23 frame:1 vi_tstamp:46222259739 data:0x00000008
     kworker/0:0-4     [000] ....  1456.637477: rtcpu_vinotify_event: tstamp:46222546128 tag:ATOMP_EMB_DATA_DONE channel:0x23 frame:1 vi_tstamp:46222259749 data:0x00000000
     kworker/0:0-4     [000] ....  1456.637478: rtcpu_vinotify_event: tstamp:46222546270 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:44593235744 data:0x03020001
     kworker/0:0-4     [000] ....  1456.637479: rtcpu_vinotify_event: tstamp:46222546392 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:46222259753 data:0x00010800
     kworker/0:0-4     [000] ....  1456.637481: rtcpu_vinotify_event: tstamp:46222546532 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:44593237376 data:0x01020001
     kworker/0:0-4     [000] ....  1456.637482: rtcpu_vinotify_event: tstamp:46222546654 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:46222266391 data:0x00000801
     kworker/0:0-4     [000] ....  1456.637483: rtcpu_vinotify_event: tstamp:46222546794 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:44593448608 data:0x01020001
     kworker/0:0-4     [000] ....  1456.693454: rtos_queue_peek_from_isr_failed: tstamp:46223703206 queue:0x0bcbcf78
     kworker/0:0-4     [000] ....  1456.749466: rtcpu_vinotify_event: tstamp:46226252999 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:46226252416 data:0x176f0802
     kworker/0:0-4     [000] ....  1456.805452: rtcpu_vinotify_event: tstamp:46226541229 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:44721002080 data:0x01020001
     kworker/0:0-4     [000] ....  1456.805454: rtcpu_vinotify_event: tstamp:46226541362 tag:FE channel:0x00 frame:1 vi_tstamp:46226252429 data:0x00000020
     kworker/0:0-4     [000] ....  1456.805455: rtcpu_vinotify_event: tstamp:46226541506 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:46226252429 data:0x00000000
     kworker/0:0-4     [000] ....  1456.805456: rtcpu_vinotify_event: tstamp:46226541629 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:46226252429 data:0x00000000
     kworker/0:0-4     [000] ....  1456.805457: rtcpu_vinotify_event: tstamp:46226541772 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:44721004192 data:0x02020001
     kworker/0:0-4     [000] ....  1456.805458: rtcpu_vinotify_event: tstamp:46226541893 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:44721004608 data:0x07020002
     kworker/0:0-4     [000] ....  1456.805460: rtcpu_vinotify_event: tstamp:46226542035 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:44721014048 data:0x10000000
     kworker/0:0-4     [000] ....  1456.805461: rtcpu_vinotify_event: tstamp:46226542157 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:44721019520 data:0x31000003

The error tell EMBED_RUNAWAY, have confirm the sensor output embedded data line and modify the embedded_metadata_height to correct value.

 kworker/0:0-4     [000] ....  1456.637479: rtcpu_vinotify_event: tstamp:46222546392 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:46222259753 data:0x00010800

hi ShaneCCC:
what does “/sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate” mean? Is it defined in firmware of BPMP (bpmp.bin/bpmp_t194.bin)? I found that if I set pix_clk_hz to more than 400000000(max_rate), a fifo full error will appear. and if I set pix_clk_hz to less than max_rate, a deskw error will appeat.

The the camera driver will calculate and set the NVCSI clock by pix_clk_hz.
So if the NVCSI clock speed not fast enough to process the sensor output will cause the FIFO error. I think it doesn’t matter with the max_rate

What is the maximum of pix_clk_hz that can be set?

Suppose there’s no maximum value.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/camera_sensor_prog.html#wwpID0E0Q50HA