Jetson Orin NX MIPI CSI issue: CORRECTABLE_ERR

Hi there,

Currently working on a custom camera setup, FPGA is being connected to Orin NX via MIPI CSI.

Setup Details:
Source: Custom FPGA (camera sensor)
Resolution: 1024 × 768
Format: YUYV
Frame rate: 136 FPS

Modified dts:

mode 3 {
mclk_khz = “24000”;
num_lanes = “4”;
tegra_sinterface = “serial_a”;
phy_mode = “DPHY”;
discontinuous_clk = “yes”;
dpcm_enable = “false”;
cil_settletime = “0”;
lane_polarity = “6”;
active_w = “1024”;
active_h = “768”;
mode_type = “yuv”;
pixel_phase = “yuyv”;
csi_pixel_bit_depth = “16”;
readout_orientation = “90”;
line_length = “1024”;
inherent_gain = “1”;
mclk_multiplier = “9.33”;
pix_clk_hz = “297000000”;
gain_factor = “16”;
framerate_factor = “1000000”;
exposure_factor = “1000000”;
min_gain_val = “16”;
max_gain_val = “170”;
step_gain_val = “1”;
default_gain = “16”;
min_hdr_ratio = “1”;
max_hdr_ratio = “1”;
min_framerate = “1000000”;
max_framerate = “30000000”;
step_framerate = “1”;
default_framerate = “30000000”;
max_exp_time = “1000000”;
step_exp_time = “100”;
default_exp_time = “12800”;
embedded_metadata_height = “0”;
}

After acquiring streams from the camera, no video is displayed on the qv4l2 window.
Then trace log being enabled, CORRECTABLE_ERR is shown in the log.

vi rate and nvcsi rate are already at their maximum:

cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate
550400000
cat /sys/kernel/debug/bpmp/debug/clk/vi/rate
550400000
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate
214300000
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
214300000

Down here is the trace log:

trace_log.txt (17.7 KB)

Is there anything wrong with my setup?

hello howard0808,

let me double check, is it a customize carrier board?
Orin Nano developer kit doesn’t route out CSI-0_CLK to the camera connector.

Yes, it is a customize carrier board.

hello howard0808,

according to the logs..
rtcpu_nvcsi_intr: tstamp:115176726216 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000004
rtcpu_nvcsi_intr: tstamp:115176726216 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:3 status:0x00000008
0x04 means “Packet payload CRC check failed”,
0x08 means “Packet terminate before getting the expect word count data”,

however,
I do see a pair of CHANSEL_PXL_SOF/CHANSEL_PXL_EOF in your tracing logs, which means you should already have a frame received by VI engine.