Mipi csi-2 on the jetson orin nx contd

Continuing the conversation from this thread. Mipi csi-2 on the jetson orin nx - #7 by a.knapper

@jose.morera @JerryChang

In summary, my group is trying to bringup the orin nx 16gb in a custom cca to receive video over csi-2. x4 lanes, over CSI0 and CSI1.

Using this csi configuration.

It appears we’ve setup the device tree properly as the media graph has been created and the endpoints are linked properly.

media-ctl

The driver also appears to have been inserted successfully.

sensor driver

The problem I’m currently hitting is starting streaming on the that video device results in errors being thrown.

I’ve been using this site as a guide to enable more logging. the repeated error I’m seeing in the trace file is:

 kworker/0:2-141     [000] .......  2962.498878: rtcpu_nvcsi_intr: tstamp:93236202390 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000008
 kworker/0:2-141     [000] .......  2962.498879: rtcpu_nvcsi_intr: tstamp:93236202390 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000008
 kworker/0:2-141     [000] .......  2962.498879: rtcpu_nvcsi_intr: tstamp:93236203039 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x0000000a
 kworker/0:2-141     [000] .......  2962.498880: rtcpu_nvcsi_intr: tstamp:93236203039 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x0000000a
 kworker/0:2-141     [000] .......  2962.498881: rtcpu_nvcsi_intr: tstamp:93236203661 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:0 vc:0 status:0x00000001
 kworker/0:2-141     [000] .......  2962.498881: rtcpu_nvcsi_intr: tstamp:93236203661 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000002

Any ideas how to debug this further? I’ve looked through the TRM and CORRECTABLE_ERR seems to point to a CRC error potentially.

/sys/kernel/debug/tracing/trace attached

full-trace.txt (1.2 MB)

hello a.knapper,

according to the tracing logs,
it looks you’ve CORRECTABLE_ERR reported, which has interrupted by below..
you may see-also TRM, NVCSI_STREAM_0_CORRECTABLE_ERR_INTR_STATUS_VC0_0
err_intr_stat_ph_ecc_single_bit_err_vc0: Single bit ECC error in the packet header,
err_intr_stat_pd_wc_short_err_vc0: Packet terminate before getting the expect word count data.
this usually due to incorrect settings from sensor side, please review the sensor configurations.

thanks for the advice, I will review the sensor-side configuration