This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2EG: csi2Cal_multi_cam_view usecase Linux kernel panic issue

Part Number: TDA2EG

Tool/software: Linux

Hi

    I am try to run the "hlos\adas\src\usecases\csi2Cal_multi_cam_view" usecase. When the usecase has run into the "steady state" in which "Chains Run-time Menu" has shown, the linux kernel got panic.

Here is the log:

[14:47:05] [HOST] [HOST ] =========
[14:47:05] [HOST] [HOST ] Test Menu
[14:47:05] [HOST] [HOST ] =========
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] Single Camera Use-cases,
[14:47:05] [HOST] [HOST ] ------------------------
[14:47:05] [HOST] [HOST ] 1: 1CH VIP capture + SGX Copy + DISPLAY
[14:47:05] [HOST] [HOST ] 2: 1CH VIP capture + Encode + Decode + SGX Copy + DISPLAY
[14:47:05] [HOST] [HOST ] 5: NullSrc + Decode + Display (Only 1920x1080 H264/MJPEG Video Input Bit-Stream Supported)
[14:47:05] [HOST] [HOST ] 6: 1CH VIP capture + Alg Frame Copy (A15) + SGX Copy + DISPLAY
[14:47:05] [HOST] [HOST ] 7: 1CH VIP + Alg Frame Copy (A15) + Connetor Links (Dup, Merge, Select, Gate on A15) + SGX Copy + DISPLAY
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] Multi-Camera LVDS Use-cases,
[14:47:05] [HOST] [HOST ] ----------------------------
[14:47:05] [HOST] [HOST ] a: 4CH VIP LVDS capture + SGX MOSAIC + DISPLAY
[14:47:05] [HOST] [HOST ] t: 4CH VIP LVDS capture + Scale + Encode + Null (file dump)
[14:47:05] [HOST] [HOST ] b: 4CH VIP LVDS capture + 3D SRV (SGX/A15) + DISPLAY - Only HDMI 1080p display supported
[14:47:05] [HOST] [HOST ] e: Surround View Calibration
[14:47:05] [HOST] [HOST ] j: 4CH CSI2 CAL capture + 3D SRV (SGX/A15) + DISPLAY - Only HDMI 1080p display supported
[14:47:05] [HOST] [HOST ] k: CSI2 CAL Surround View Calibration
[14:47:05] [HOST] [HOST ] w: 4CH CSI2 CAL capture + SgxFrmCpy + DISPLAY - Only HDMI 1080p display supported
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] AVB RX Use-cases, (TDA2x ONLY)
[14:47:05] [HOST] [HOST ] ------------------------------
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] OPENVX Usecase, (TDA2x ONLY)
[14:47:05] [HOST] [HOST ] ----------------------------
[14:47:05] [HOST] [HOST ] m: OpenVX v1.1 Conformance Test
[14:47:05] [HOST] [HOST ] q: OpenVX Tutorials
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] n: 4CH CSI2 CAL capture + 3D SRV (SGX/A15) + Car Black Box + DISPLAY - Only HDMI 1080p display supported
[14:47:05] [HOST] [HOST ] p: CPU Status
[14:47:05] [HOST] [HOST ] i: Show IP Addr (IPU + NDK + AVB)
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] s: System Settings
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] x: Exit
[14:47:05] [HOST] [HOST ] z: Exit - AND SHUTDOWN Remote CPUs
[14:47:05] [HOST] [HOST ]
[14:47:05] [HOST] [HOST ] Enter Choice:
[14:47:05] [HOST] [HOST ]
[14:47:13]w
[14:47:13] [HOST] [HOST ] 84.129445 s:
[14:47:13] [HOST] [HOST ] xuanbo chains_csi2CalMultiCam_View bp0
[14:47:13] [HOST] [IPU2 ] 84.222961 s: ISSCAPTURE: Create in progress !!!
[14:47:14] [HOST] [IPU2 ] 84.763832 s: ISSCAPTURE: Create Done !!!
[14:47:14] [HOST] [IPU2 ] 84.764320 s: VPE: Create in progress !!!
[14:47:14][ 81.260612] vpe 489d0000.vpe: instance released before end of transaction
[14:47:14] [HOST] [IPU2 ] 85.153266 s: VPE: Loading Down-scaling Co-effs
[14:47:14] [HOST] [IPU2 ] 85.153510 s: VPE: Co-effs Loading ... DONE !!!
[14:47:14] [HOST] [IPU2 ] 85.153724 s: VPE: Create Done !!!
[14:47:14] [HOST] [IPU2 ] 85.162752 s: IPC_OUT_0 : Create in progress !!!
[14:47:14]failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
[14:47:14]failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
[14:47:14]loaded module : gbm_pvr.so
[14:47:14]found valid GBM backend : gbm_pvr.so
[14:47:14] [HOST] [HOST ] 85.163453 s: IPC_IN_0 : Create in progress !!!
[14:47:14] [HOST] [HOST ] 85.163880 s: IPC_IN_0 : Create Done !!!
[14:47:14] [HOST] [HOST ] 85.164002 s: SGXFRMCPY: Create in progress for resolution: 1920x1080 !!!
[14:47:14] [HOST] [HOST ] 85.167266 s: SYSTEM_PVRSCOPE: FIFO /opt/vision_sdk/gpufifo opened successfully
[14:47:14] [HOST] [IPU2 ] 85.163087 s: IPC_OUT_0 : Create Done !!!
[14:47:14] [HOST] [HOST ] 85.182303 s: EGL: version 1.4
[14:47:14] [HOST] [HOST ] 85.193863 s: EGL: GL Version = OpenGL ES 2.0 build 1.14@3699939 (MAIN)
[14:47:14] [HOST] [HOST ] 85.193863 s: EGL: GL Vendor = Imagination Technologies
[14:47:14] [HOST] [HOST ] 85.193863 s: EGL: GL Renderer = PowerVR SGX 544MP
[14:47:14] [HOST] [HOST ] 85.193893 s: EGL: GL Extensions = GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot GL_OES_surfaceless_context GL_EXT_discard_framebuffer GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_draw_buffers GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_ob
[14:47:14] [HOST] [HOST ] ect GL_IMG_multisampled_render_to_texture GL_KHR_debug
[14:47:14] [HOST] [HOST ] 85.231470 s: SGXFRMCPY: Create Done for resolution: 1920x1080 !!!
[14:47:14] [HOST] [HOST ] 85.231653 s: IPC_OUT_0 : Create in progress !!!
[14:47:14] [HOST] [HOST ] 85.231806 s: IPC_OUT_0 : Create Done !!!
[14:47:14] [HOST] [IPU2 ] 85.231958 s: IPC_IN_0 : Create in progress !!!
[14:47:14] [HOST] [IPU2 ] 85.233087 s: IPC_IN_0 : Create Done !!!
[14:47:14] [HOST] [IPU2 ] 85.233544 s: DISPLAY: Create in progress !!!
[14:47:14] [HOST] [IPU2 ] 85.234063 s: DISPLAY: Create Done !!!
[14:47:14] [HOST] [IPU2 ] 85.234490 s: GRPXSRC: Create in progress !!!
[14:47:16] [HOST] [IPU2 ] 87.530287 s: GRPXSRC: Create Done !!!
[14:47:17] [HOST] [IPU2 ] 87.530805 s: DISPLAY: Create in progress !!!
[14:47:17] [HOST] [IPU2 ] 87.531354 s: DISPLAY: Create Done !!!
[14:47:17] [HOST] [IPU2 ] 87.532300 s: *** UTILS: CPU KHz = 20000 Khz ***
[14:47:17] [HOST] [DSP1 ] 87.632038 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
[14:47:17] [HOST] [DSP1 ] 87.632099 s: SYSTEM: Heap = LOCAL_L2 @ 0x00800000, Total size = 227264 B (221 KB), Free size = 227264 B (221 KB)
[14:47:17] [HOST] [DSP1 ] 87.632129 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 524288 B (512 KB), Free size = 521576 B (509 KB)
[14:47:17] [HOST] [IPU2 ] 87.632434 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
[14:47:17] [HOST] [IPU2 ] 87.632587 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 254072 B (248 KB)
[14:47:17] [HOST] [IPU2 ] 87.632739 s: SYSTEM: Heap = SR_OCMC @ 0x00000000, Total size = 0 B (0 KB), Free size = 0 B (0 KB)
[14:47:17] [HOST] [IPU2 ] 87.632892 s: SYSTEM: Heap = SR_DDR_CACHED @ 0x84203000, Total size = 262144000 B (250 MB), Free size = 161689600 B (154 MB)
[14:47:17] [HOST] [IPU2 ] 87.633075 s: SYSTEM: Heap = SR_DDR_NON_CACHED @ 0xa0100000, Total size = 1047040 B (0 MB), Free size = 1037824 B (0 MB)
[14:47:17] [HOST] [IPU2 ] 87.633532 s: CHAINS: ChainsCommon_MultiCam_StartCaptureDevice
[14:47:17] [HOST] [IPU2 ] 87.633898 s: Detected UB964 !!!
[14:47:17] [HOST] [IPU2 ] 87.634173 s: Detected UB964 !!!
[14:47:17] [HOST] [IPU2 ] 87.634386 s: Switching to 800MHz Mode !!!
[14:47:17] [HOST] [IPU2 ] 87.653663 s: VIDEO_SENSOR: Detected 4 Camera modules !!!
[14:47:17] [HOST] [IPU2 ] 88.074178 s: VIDEO_SENSOR: VIP 42: DRV ID 1205 (I2C ADDR 0x38): a635:0000:7fa2
[14:47:17] [HOST] [IPU2 ] 88.495150 s: VIDEO_SENSOR: VIP 43: DRV ID 1205 (I2C ADDR 0x39): a635:0000:7fa2
[14:47:18] [HOST] [IPU2 ] 88.915665 s: VIDEO_SENSOR: VIP 44: DRV ID 1205 (I2C ADDR 0x3a): a635:0000:7fa2
[14:47:18] [HOST] [IPU2 ] 89.337461 s: VIDEO_SENSOR: VIP 45: DRV ID 1205 (I2C ADDR 0x3b): a635:0000:7fa2
[14:47:18] [HOST] [HOST ] 89.345391 s: SGXFRMCPY: Start in progress !!!
[14:47:18] [HOST] [HOST ] 89.345421 s: SGXFRMCPY: Start Done !!!
[14:47:18] [HOST] [HOST ] 89.347099 s:
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] ====================
[14:47:18] [HOST] [HOST ] Chains Run-time Menu
[14:47:18] [HOST] [HOST ] ====================
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] 0: Stop Chain
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] 1: Change Display Channel (Support 4CH LVDS + Mosaic use-case only)
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] p: Print Performance Statistics
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] Enter Choice:
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] 89.347160 s:
[14:47:18] [HOST] [HOST ] Unsupported option '
[14:47:18] [HOST] [HOST ] '. Please try again
[14:47:18] [HOST] [HOST ] 89.347160 s:
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] ====================
[14:47:18] [HOST] [HOST ] Chains Run-time Menu
[14:47:18] [HOST] [HOST ] ====================
[14:47:18] [HOST] [HOST ]
[14:47:18] [HOST] [HOST ] 0: Stop Chain
[14:47:18] [HOST] [HOST ]
[14:47:18]85.474836] Unable to handle kernel NULL pointer dereference at virtual address 000003f8
[14:47:18][ 85.558669] pgd = c0003000
[14:47:18][ 85.561386] [000003f8] *pgd=80000080004003, *pmd=00000000
[14:47:18][ 85.566829] Internal error: Oops: 207 [#1] PREEMPT SMP ARM
[14:47:18][ 85.572337] Modules linked in: cmemk(O) memcache(O) bc_example(O) rpmsg_proto virtio_rpmsg_bus xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 bluetooth ah4 af_key xfrm_algo extcon_usb_gpio pvrsrvkm(O) ahci_platform libahci_platform libahci omap_aes_driver omap_sham libata omap_wdt scsi_mod dwc3_omap extcon rtc_omap omap_des omap_rng rng_core omap_remoteproc remoteproc virtio virtio_ring sch_fq_codel
[14:47:18][ 85.608141] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 4.4.84-00012-gf07f446-dirty #4
[14:47:18][ 85.617136] Hardware name: Generic DRA72X (Flattened Device Tree)
[14:47:18][ 85.623256] task: c092f8b8 ti: c092a000 task.ti: c092a000
[14:47:18][ 85.628681] PC is at _raw_spin_lock+0x28/0x64
[14:47:18][ 85.633058] LR is at cal_irq+0x70/0x258
[14:47:18][ 85.636910] pc : [<c067cca0>] lr : [<c04b6214>] psr: 200f0193
[14:47:18][ 85.636910] sp : c092bdd0 ip : c092bde0 fp : c092bddc
[14:47:19][ 85.648436] r10: c0978fcb r9 : ef221900 r8 : 00000160
[14:47:19][ 85.653682] r7 : 00000000 r6 : fa45b000 r5 : 000003f8 r4 : 00000000
[14:47:19][ 85.660235] r3 : c092a000 r2 : 00010002 r1 : ee9b2790 r0 : 000003f8
[14:47:19][ 85.666790] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[14:47:19][ 85.674217] Control: 30c5387d Table: a8268c80 DAC: fffffffd
[14:47:19][ 85.679986] Process swapper/0 (pid: 0, stack limit = 0xc092a210)
[14:47:19][ 85.686016] Stack: (0xc092bdd0 to 0xc092c000)
[14:47:19][ 85.690391] bdc0: c092be04 c092bde0 c04b6214 c067cc84
[14:47:19][ 85.698603] bde0: eea38140 ef221960 00000000 00000000 00000160 ef221900 c092be4c c092be08
[14:47:19][ 85.706815] be00: c0080950 c04b61b0 00000000 c092c144 c092be54 c0819ecc c0819eb8 c0819e90
[14:47:19][ 85.715027] be20: e5d01d00 ef221900 ef221960 c0949a64 00000000 ef006000 c0681224 c092c50c
[14:47:19][ 85.723239] be40: c092be6c c092be50 c0080a3c c00808a8 ef221900 ef221960 c0949a64 00000000
[14:47:19][ 85.731451] be60: c092be8c c092be70 c0083d80 c0080a08 c0926424 00000160 00000000 00000000
[14:47:19][ 85.739663] be80: c092be9c c092be90 c007ff7c c0083ccc c092bec4 c092bea0 c0080254 c007ff5c
[14:47:19][ 85.747875] bea0: c092c8ec fa21200c c092bef0 fa212000 fa213000 c0681224 c092beec c092bec8
[14:47:19][ 85.756087] bec0: c000948c c00801fc c0010600 600f0013 ffffffff c092bf24 c092bf60 c0681224
[14:47:19][ 85.764299] bee0: c092bf4c c092bef0 c0013ec0 c0009458 00000001 00000000 fe600000 00000000
[14:47:19][ 85.772510] bf00: c092a000 c092c4ac 00000000 00000000 c092bf60 c0681224 c092c50c c092bf4c
[14:47:19][ 85.780722] bf20: c092bf2c c092bf40 c0027fe8 c0010600 600f0013 ffffffff c00105fc c0028214
[14:47:19][ 85.788935] bf40: c092bf5c c092bf50 c0071190 c00105e4 c092bf84 c092bf60 c00713f0 c0071174
[14:47:19][ 85.797146] bf60: c0978fc9 c092c514 c09275a8 c0925364 00000002 00000000 c092bf9c c092bf88
[14:47:19][ 85.805359] bf80: c067849c c00711fc c097b040 c097b000 c092bff4 c092bfa0 c08d5d88 c0678418
[14:47:19][ 85.813570] bfa0: ffffffff ffffffff 00000000 c08d56e8 ffffffff 00000000 00000000 c092c400
[14:47:19][ 85.821782] bfc0: 00000000 c0916a28 00000000 c097b214 c092c484 c0916a24 c0930b38 80007000
[14:47:19][ 85.829995] bfe0: 412fc0f2 00000000 00000000 c092bff8 80008090 c08d5994 00000000 00000000
[14:47:19][ 85.838202] Backtrace:
[14:47:19][ 85.840670] [<c067cc78>] (_raw_spin_lock) from [<c04b6214>] (cal_irq+0x70/0x258)
[14:47:19][ 85.848104] [<c04b61a4>] (cal_irq) from [<c0080950>] (handle_irq_event_percpu+0xb4/0x160)
[14:47:19][ 85.856314] r9:ef221900 r8:00000160 r7:00000000 r6:00000000 r5:ef221960 r4:eea38140
[14:47:19][ 85.864138] [<c008089c>] (handle_irq_event_percpu) from [<c0080a3c>] (handle_irq_event+0x40/0x64)
[14:47:19][ 85.873047] r10:c092c50c r9:c0681224 r8:ef006000 r7:00000000 r6:c0949a64 r5:ef221960
[14:47:19][ 85.880950] r4:ef221900
[14:47:19][ 85.883505] [<c00809fc>] (handle_irq_event) from [<c0083d80>] (handle_fasteoi_irq+0xc0/0x194)
[14:47:19][ 85.892064] r7:00000000 r6:c0949a64 r5:ef221960 r4:ef221900
[14:47:19][ 85.897782] [<c0083cc0>] (handle_fasteoi_irq) from [<c007ff7c>] (generic_handle_irq+0x2c/0x3c)
[14:47:19][ 85.906428] r7:00000000 r6:00000000 r5:00000160 r4:c0926424
[14:47:19][ 85.912146] [<c007ff50>] (generic_handle_irq) from [<c0080254>] (__handle_domain_irq+0x64/0xbc)
[14:47:19][ 85.920886] [<c00801f0>] (__handle_domain_irq) from [<c000948c>] (gic_handle_irq+0x40/0x7c)
[14:47:19][ 85.929270] r9:c0681224 r8:fa213000 r7:fa212000 r6:c092bef0 r5:fa21200c r4:c092c8ec
[14:47:19][ 85.937088] [<c000944c>] (gic_handle_irq) from [<c0013ec0>] (__irq_svc+0x40/0x74)
[14:47:19][ 85.944601] Exception stack(0xc092bef0 to 0xc092bf38)
[14:47:19][ 85.949673] bee0: 00000001 00000000 fe600000 00000000
[14:47:19][ 85.957886] bf00: c092a000 c092c4ac 00000000 00000000 c092bf60 c0681224 c092c50c c092bf4c
[14:47:19][ 85.966097] bf20: c092bf2c c092bf40 c0027fe8 c0010600 600f0013 ffffffff
[14:47:19][ 85.972736] r9:c0681224 r8:c092bf60 r7:c092bf24 r6:ffffffff r5:600f0013 r4:c0010600
[14:47:19][ 85.980559] [<c00105d8>] (arch_cpu_idle) from [<c0071190>] (default_idle_call+0x28/0x34)
[14:47:19][ 85.988690] [<c0071168>] (default_idle_call) from [<c00713f0>] (cpu_startup_entry+0x200/0x260)
[14:47:19][ 85.997344] [<c00711f0>] (cpu_startup_entry) from [<c067849c>] (rest_init+0x90/0x94)
[14:47:19][ 86.005116] r7:00000000
[14:47:19][ 86.007671] [<c067840c>] (rest_init) from [<c08d5d88>] (start_kernel+0x400/0x40c)
[14:47:19][ 86.015184] r5:c097b000 r4:c097b040
[14:47:19][ 86.018792] [<c08d5988>] (start_kernel) from [<80008090>] (0x80008090)
[14:47:19][ 86.025349] Code: e5932004 e2822001 e5832004 f590f000 (e1903f9f)
[14:47:19][ 86.031468] ---[ end trace 6ea762c265ffe8c6 ]---
[14:47:19][ 86.036103] Kernel panic - not syncing: Fatal exception in interrupt
[14:47:19][ 86.042486] ---[ end Kernel panic - not syncing: Fatal exception in interrupt

      Please help me find where the problem is, thank you~

Thanks

xuanbo