tegra194-vi5 15c10000.vi: corr_err: discarding frame when capture raw data 8 bit 1280x800

Hello,
I am writing driver for ov9782 camera Xavier platform
When I start streaming via V4L2 API I get errors from kernel and then kernel crashes

How can I get more details what is wrong about the stream?

tegra194-vi5 15c10000.vi: corr_err: discarding frame 1177, flags: 0, err_data 512
[ 94.915688] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 94.935553] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 94.952601] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1178, flags: 0, err_data 512
[ 94.952841] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1179, flags: 0, err_data 512
[ 94.955398] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 94.975307] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 94.992341] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1180, flags: 0, err_data 512
[ 94.992567] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1181, flags: 0, err_data 512
[ 94.996126] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.015204] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.032159] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1182, flags: 0, err_data 512
[ 95.032396] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1183, flags: 0, err_data 512
[ 95.034911] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.054798] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.071835] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1184, flags: 0, err_data 512
[ 95.072023] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1185, flags: 0, err_data 512
[ 95.074616] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.091808] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1186, flags: 0, err_data 512
[ 95.094502] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.111549] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1187, flags: 0, err_data 512
[ 95.114379] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.134269] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 12583008
[ 95.315650] CPU2: SError detected, daif=140, spsr=0x60c00045, mpidr=80000100, esr=be000000
[ 95.315687] CPU0: SError detected, daif=1c0, spsr=0x80c000c5, mpidr=80000000, esr=be000000
[ 95.315720] CPU3: SError detected, daif=140, spsr=0x40400045, mpidr=80000101, esr=be000000
[ 95.315733] CPU1: SError detected, daif=140, spsr=0x40400045, mpidr=80000001, esr=be000000
[ 95.315775] **************************************
[ 95.315778] * For more Internal Decode Help
[ 95.315779] * http://nv/cbberr
[ 95.315781] * NVIDIA userID is required to access
[ 95.315783] **************************************
[ 95.315785] CPU:0, Error:RCE-NOC
[ 95.315791] Error Logger : 1
[ 95.315831] ErrLog0 : 0x80030600
[ 95.315833] Transaction Type : RD - Read, Incrementing
[ 95.315836] Error Code : TMO
[ 95.315838] Error Source : Target NIU
[ 95.315839] Error Description : Target time-out error
[ 95.315841] Packet header Lock : 0
[ 95.315842] Packet header Len1 : 3
[ 95.315844] NOC protocol version : version >= 2.7
[ 95.315852] ErrLog1 : 0x157600
[ 95.315854] ErrLog2 : 0x0
[ 95.315855] RouteId : 0x157600
[ 95.315865] InitFlow : cpu_p_i/I/0
[ 95.315867] Targflow : cbb_t/T/0
[ 95.315868] TargSubRange : 27
[ 95.315870] SeqId : 0
[ 95.315871] ErrLog3 : 0x5c00414
[ 95.315873] ErrLog4 : 0x0
[ 95.315920] Address : 0x15c00414 (unknown device)
[ 95.315921] ErrLog5 : 0x387e31
[ 95.315924] Master ID : RCE
[ 95.315926] Security Group(GRPSEC): 0x3f
[ 95.315928] Cache : 0x1 – Device
[ 95.315930] Protection : 0x3 – Privileged, Non-Secure, Data Access
[ 95.315932] FALCONSEC : 0x0
[ 95.315934] Virtual Queuing Channel(VQC): 0x0
[ 95.315938] **************************************
[ 95.315953] **************************************
[ 95.315954] * For more Internal Decode Help
[ 95.315955] * http://nv/cbberr
[ 95.315956] * NVIDIA userID is required to access
[ 95.315958] **************************************
[ 95.315959] CPU:0, Error:CBB-NOC
[ 95.315960] Error Logger : 1
[ 95.315970] ErrLog0 : 0x80030600
[ 95.315971] Transaction Type : RD - Read, Incrementing
[ 95.315973] Error Code : TMO
[ 95.315974] Error Source : Target NIU
[ 95.315976] Error Description : Target time-out error
[ 95.315977] Packet header Lock : 0
[ 95.315979] Packet header Len1 : 3
[ 95.315980] NOC protocol version : version >= 2.7
[ 95.315982] ErrLog1 : 0x9528aa
[ 95.315983] ErrLog2 : 0x0
[ 95.315985] RouteId : 0x9528aa
[ 95.315987] InitFlow : rce_p2ps/I/rce_p2ps
[ 95.315989] Targflow : host1x_p2pm/T/host1x_p2pm
[ 95.315990] TargSubRange : 20
[ 95.315992] SeqId : 0
[ 95.315993] ErrLog3 : 0x414

Enable the trace to get more information.

echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

I used an advice from this topic
https://devtalk.nvidia.com/default/topic/1052790/jetson-agx-xavier/why-get-video-data-error-through-ov4689-sensor-2-lane-mipi-/2

sudo sh -c ‘echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked’

helped me to get an image,

But I don’t understand how to fix the pix_clk_hz in the device tree.
I am using ov9782 connected to TI DS90UB954 serdes connected to Xavier

Have a check the sensor programing guide for modify the driver and DT.

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

Hello ShaneCCC,
I was using this manual

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3102/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fcamera_sensor_prog.html%23

there was no serdes_pix_clk_hz field of the device tree like in the new manual above.
I’ll try using it.

I build kernel that I downloaded from Nvidia download site, it is not marked with version but sources are from March 11, on target system I get 4.9.140-tegra

Thanks,
Marina

The document have tell how to download/build the kernel too.
Did you connect to ser/deser? You can increase the pix_clk_hz instead if your case didn’t connect to ser/deser.

I do connect to ser/deser