RTCPU crashes while stopping the image streaming at the end of the application.
Details:
- libargus examples - argus_userautoexposure, argus_eglimage (even happens with V4L2 capture but much lesser compared to argus application)
- IMX392 Image sensor module - 1920x1200@30fps - Bayer RG10 format - 4 Lanes.
- Pixel clock: 74.25MHz
- Have enabled max speed for ISP and NVCSI as per the below commands
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
RTCPU crash dmesg log:
[ 101.050707] CPU:0, Error:rce-noc@0xbe00000,irq=21
[ 101.050879] **************************************
[ 101.051035] CPU:0, Error:rce-noc
[ 101.051121] Error Logger : 0
[ 101.051238] ErrLog0 : 0x80030000
[ 101.051329] Transaction Type : RD - Read, Incrementing
[ 101.051440] Error Code : SLV
[ 101.051516] Error Source : Target
[ 101.051591] Error Description : Target error detected by CBB slave
[ 101.051769] Packet header Lock : 0
[ 101.051844] Packet header Len1 : 3
[ 101.051919] NOC protocol version : version >= 2.7
[ 101.052019] ErrLog1 : 0x157600
[ 101.052089] ErrLog2 : 0x0
[ 101.052151] RouteId : 0x157600
[ 101.052221] InitFlow : cpu_p_i/I/0
[ 101.052301] Targflow : cbb_t/T/0
[ 101.053248] TargSubRange : 27
[ 101.053807] SeqId : 0
[ 101.056952] ErrLog3 : 0x5c01814
[ 101.059930] ErrLog4 : 0x0
[ 101.062905] Address accessed : 0x15c01814
[ 101.067021] ErrLog5 : 0x387e31
[ 101.070516] Master ID : RCE
[ 101.073664] Security Group(GRPSEC): 0x3f
[ 101.077434] Cache : 0x1 -- Bufferable
[ 101.081636] Protection : 0x1 -- Privileged, Secure, Data Access
[ 101.087846] FALCONSEC : 0x0
[ 101.090995] Virtual Queuing Channel(VQC): 0x0
[ 101.095729] **************************************
[ 101.101145] CPU:0, Error:cbb-noc@0x2300000,irq=15
[ 101.105606] **************************************
[ 101.110591] CPU:0, Error:cbb-noc
[ 101.113830] Error Logger : 0
[ 101.116898] ErrLog0 : 0x80030000
[ 101.120478] Transaction Type : RD - Read, Incrementing
[ 101.125813] Error Code : SLV
[ 101.128969] Error Source : Target
[ 101.132902] Error Description : Target error detected by CBB slave
[ 101.138952] AXI2APB_5 bridge error: RDFIFOF - Read Response FIFO Full interrupt
[ 101.146561] Packet header Lock : 0
[ 101.150502] Packet header Len1 : 3
[ 101.154164] NOC protocol version : version >= 2.7
[ 101.158894] ErrLog1 : 0x9528aa
[ 101.162476] ErrLog2 : 0x0
[ 101.165106] RouteId : 0x9528aa
[ 101.168432] InitFlow : rce_p2ps/I/rce_p2ps
[ 101.173152] Targflow : host1x_p2pm/T/host1x_p2pm
[ 101.177964] TargSubRange : 20
[ 101.181202] SeqId : 0
[ 101.184002] ErrLog3 : 0x1814
[ 101.186718] ErrLog4 : 0x0
[ 101.189867] Address accessed : 0x15c01814
[ 101.194327] ErrLog5 : 0x2af0fc71
[ 101.197826] Non-Modify : 0x1
[ 101.201240] AXI ID : 0x55
[ 101.204131] Master ID : RCE
[ 101.207196] Security Group(GRPSEC): 0x3f
[ 101.211652] Cache : 0x1 -- Bufferable
[ 101.215594] Protection : 0x3 -- Privileged, Non-Secure, Data Access
[ 101.222677] FALCONSEC : 0x0
[ 101.225827] Virtual Queuing Channel(VQC): 0x0
[ 101.230209] **************************************
[ 101.235613] Host read timeout at address 1814
[ 101.240368] [RCE] VM0 deactivating.VM0 activating.VM0 deactivating.VM0 activating.VM0 deactivating.*** DATA ABORT EXCEPTION ***
[ 101.240383] [RCE] R0: 15c00000 R1: 00001814 R2: 00008010 R3: 00000000
[ 101.240394] [RCE] R4: 0bcd0188 R5: 00000000 R6: 00000000 R7: 799ce800
[ 101.240404] [RCE] R8: 0bcc27b0 R9: 0bcc27b2 R10: 0bcc27a8 R11: 0003f310
[ 101.240415] [RCE] R12: 0000ed45 SP: 0bcc2768 LR: 0bcaaa2c PC: 0bcaaa48
[ 101.240423] [RCE] SPSR: 6000011f
[ 101.240449] [RCE] DFSR: 00001008 DFAR: 15c01814 ADFSR: 00500000
[ 101.240459] [RCE] IFSR: 00000000 IFAR: 00000000 AIFSR: 0000000
Trace log:
kworker/0:5-478 [000] .... 94.735641: rtcpu_vinotify_event: tstamp:3562814093 cch:1 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:2400 vi_tstamp:114001598272 data:0x0000000000000001
kworker/0:5-478 [000] .... 94.735641: rtcpu_vinotify_event: tstamp:3562814253 cch:1 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2400 vi_tstamp:114001600960 data:0x00000000080203f3
kworker/0:5-478 [000] .... 94.735642: rtcpu_vinotify_event: tstamp:3563152516 cch:1 vi:0 tag:ATOMP_FRAME_NLINES_DONE channel:0x23 frame:2400 vi_tstamp:114016316160 data:0x0000000000000000
kworker/0:5-478 [000] .... 94.735642: rtcpu_vinotify_event: tstamp:3563152677 cch:1 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2400 vi_tstamp:114016318720 data:0x00000000020203f3
kworker/0:5-478 [000] .... 94.735643: rtcpu_vinotify_event: tstamp:3563491412 cch:1 vi:0 tag:ATOMP_FRAME_NLINES_DONE channel:0x23 frame:2400 vi_tstamp:114031045248 data:0x0000000000000000
kworker/0:5-478 [000] .... 94.735643: rtcpu_vinotify_event: tstamp:3563491577 cch:1 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2400 vi_tstamp:114031047808 data:0x00000000020203f3
kworker/0:5-478 [000] .... 94.735645: rtcpu_vinotify_event: tstamp:3563609671 cch:1 vi:0 tag:CHANSEL_PXL_EOF channel:0x23 frame:2400 vi_tstamp:114034685600 data:0x0000000004af0002
kworker/0:5-478 [000] .... 94.735645: rtcpu_vinotify_event: tstamp:3563609834 cch:1 vi:0 tag:ATOMP_FRAME_DONE channel:0x23 frame:2400 vi_tstamp:114034686112 data:0x0000000000000000
kworker/0:5-478 [000] .... 94.735646: rtcpu_vinotify_event: tstamp:3563609976 cch:1 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2400 vi_tstamp:114034690912 data:0x00000000020203f3
kworker/0:5-478 [000] .... 94.735646: rtcpu_vinotify_event: tstamp:3563610136 cch:1 vi:0 tag:FE channel:0x00 frame:2400 vi_tstamp:114035414080 data:0x0000000000000020
kworker/0:5-478 [000] .... 94.735647: rtcpu_vinotify_event: tstamp:3563610283 cch:1 vi:0 tag:ATOMP_FE channel:0x00 frame:2400 vi_tstamp:114035414080 data:0x0000000800000000
kworker/0:5-478 [000] .... 94.735647: rtcpu_vinotify_event: tstamp:3563932377 cch:1 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2400 vi_tstamp:114035425344 data:0x00000000000203f3
kworker/0:5-478 [000] .... 94.735653: rtcpu_nvcsi_intr: tstamp:3563942574 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x00000008
kworker/0:5-478 [000] .... 94.735654: rtcpu_nvcsi_intr: tstamp:3563942574 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:0 st:0 vc:0 status:0x00000008
CaptureSchedule-2293 [001] .... 94.735661: csi_s_stream: enable : 0x0
CaptureSchedule-2293 [001] .... 94.736786: tegra_channel_set_power: vc_mipi 9-001a : 0x0
CaptureSchedule-2293 [001] .... 94.736799: camera_common_s_power: status : 0x0
CaptureSchedule-2293 [001] .... 94.736830: tegra_channel_set_power: 13e10000.host1x:nvcsi@15a00000- : 0x0
CaptureSchedule-2293 [001] .... 94.736832: csi_s_power: enable : 0x0
nvargus-daemon-2277 [002] .... 94.792193: tegra_channel_close: vi-output, vc_mipi 9-001a
kworker/0:5-478 [000] .... 94.847630: rtcpu_isp_falcon_task_start: tstamp:3565931685 ch:0 task:HANDLE_EVENT
kworker/0:5-478 [000] .... 94.847635: rtcpu_isp_falcon_task_end: tstamp:3565931756 task:HANDLE_EVENT
kworker/0:5-478 [000] .... 101.240342: rtcpu_string: tstamp:3761243274 id:0x04010000 str:"VM0 deactivating."
kworker/0:5-478 [000] .... 101.240346: rtcpu_string: tstamp:3761607850 id:0x04010000 str:"*** DATA ABORT EXCEPTION ***