Tool/software: TI-RTOS
Hi all,
We are working on vision sdk 2.12 version. we are trying to load the bsp_examples_loopback_m4vpss_release.xem4 image via linux kernel, remote-proc framework.
This image is part of BSP-vps (loopback)applicatiion
We have added resourcetable using base of IPC-ipu (rsc_table_vayu_ipu.h)header file.
Attached rsc_table_vayu_ipu.c, bld and memory map file.
We are getting MMU fault while loading via linux kernel. Please let me know to debug this.
Note: we have verified the IPC of A15-IPU1 by using default message_single.xem4 image.
modprobe omap_remoteproc
[ 333.406894] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[ 333.416005] remoteproc0: 58820000.ipu is available
[ 333.421969] remoteproc0: Note: remoteproc is still under development and considered experimental.
[ 333.431842] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 333.444948] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
[ 333.454327] remoteproc1: 55020000.ipu is available
[ 333.460216] remoteproc1: Note: remoteproc is still under development and considered experimental.
[ 333.471301] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 333.483464] remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
root@mmt2020-a879-b0:~# [ 333.495089] remoteproc1: failed to load dra7-ipu2-fw.xem4
[ 333.718135] remoteproc0: powering up 58820000.ipu
[ 333.723510] remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 5662500
[ 333.731050] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[ 333.753889] omap-iommu 58882000.mmu: iommu fault: da 0x800063d0 flags 0x0
[ 333.760997] remoteproc0: crash detected in 58820000.ipu: type mmufault
[ 333.767925] omap-iommu 58882000.mmu: 58882000.mmu: errs:0x00000002 da:0x800063d0 pgd:0xed34a000 *pgd:px9d200002
[ 333.779448] remoteproc0: remote processor 58820000.ipu is now up
[ 333.787027] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 333.793352] remoteproc0: registered virtio0 (type 7)
[ 333.799803] remoteproc0: handling crash #1 in 58820000.ipu
[ 333.806190] remoteproc0: recovering 58820000.ipu
[ 333.819824] remoteproc0: stopped remote processor 58820000.ipu
[ 333.840688] remoteproc0: powering up 58820000.ipu
[ 333.846342] remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 5662500
[ 333.854480] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[ 333.876894] omap-iommu 58882000.mmu: iommu fault: da 0x800063f0 flags 0x0
[ 333.884007] remoteproc0: crash detected in 58820000.ipu: type mmufault
[ 333.890930] omap-iommu 58882000.mmu: 58882000.mmu: errs:0x00000002 da:0x800063f0 pgd:0xed34a000 *pgd:px9d200002
[ 333.902793] remoteproc0: remote processor 58820000.ipu is now up
[ 333.909922] remoteproc0: handling crash #2 in 58820000.ipu
[ 333.916244] remoteproc0: recovering 58820000.ipu
[ 333.921646] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 333.927829] Unable to handle kernel NULL pointer dereference at virtual address 00000012
[ 333.936831] remoteproc0: registered virtio0 (type 7)
[ 333.943992] pgd = c0004000
[ 333.946830] [00000012] *pgd=00000000
[ 333.950583] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 333.956233] Modules linked in: omap_remoteproc rpmsg_rpc virtio_rpmsg_bus remoteproc virtio_ring virtio spi_dab_plugin
[ 333.967502] CPU: 0 PID: 741 Comm: kworker/0:2 Not tainted 4.4.23 #4
[ 333.974059] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 333.980452] Workqueue: events rproc_crash_handler_work [remoteproc]
[ 333.987018] task: ef35a6c0 ti: ee5a8000 task.ti: ee5a8000
[ 333.992673] PC is at klist_put+0x1c/0x98
[ 333.996780] LR is at klist_del+0x14/0x18
[ 334.000888] pc : [<c067caac>] lr : [<c067cb3c>] psr: a0070013
[ 334.000888] sp : ee5a9e00 ip : ee5a9e20 fp : ee5a9e1c
[ 334.012897] r10: 00000000 r9 : eea7a100 r8 : 00000000
[ 334.018361] r7 : 00000001 r6 : ed352000 r5 : ee598a14 r4 : 00000000
[ 334.025194] r3 : 00000000 r2 : 0000000e r1 : 00000001 r0 : ee598a14
[ 334.032024] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 334.039488] Control: 10c5387d Table: ae7e406a DAC: 00000051
[ 334.045505] Process kworker/0:2 (pid: 741, stack limit = 0xee5a8218)
[ 334.052154] Stack: (0xee5a9e00 to 0xee5aa000)
[ 334.056715] 9e00: ef0ae220 ef0ae220 ed352000 ed352020 ee5a9e2c ee5a9e20 c067cb3c c067ca9c
[ 334.065276] 9e20: ee5a9e64 ee5a9e30 c0432f40 c067cb34 ee5a9e54 ee5a9e40 c0433484 c0433284
[ 334.073832] 9e40: ed352000 ef0ae220 ed3521e4 ed352000 ed352000 00000000 ee5a9e7c ee5a9e68
[ 334.082389] 9e60: c0433130 c0432ef0 00000000 ed3521e4 ee5a9e94 ee5a9e80 bf008820 c043310c
[ 334.090944] 9e80: ed3521e4 ed3521e4 ee5a9ea4 ee5a9e98 bf018978 bf008810 ee5a9ec4 ee5a9ea8
[ 334.099506] 9ea0: bf017bc4 bf018968 ed35220c ed35218c ed352020 ed352000 ee5a9ee4 ee5a9ec8
[ 334.108059] 9ec0: bf017c9c bf017b78 ed35220c eea7a100 ef7888c0 ef78e600 ee5a9f24 ee5a9ee8
[ 334.116615] 9ee0: c0050adc bf017c1c ee5a9f0c ee5a9ef8 c00626f8 c0062614 ef7888c0 ef7888c0
[ 334.125174] 9f00: eea7a118 ef7888d4 00000008 c09b3cbc eea7a100 ef7888c0 ee5a9f5c ee5a9f28
[ 334.133730] 9f20: c0050f3c c00509a4 00000000 ef788a24 00000000 00000000 eeb58480 eea7a100
[ 334.142290] 9f40: c0050efc 00000000 00000000 00000000 ee5a9fac ee5a9f60 c0056a78 c0050f08
[ 334.150849] 9f60: e0904008 00000000 00000009 eea7a100 00000000 00000000 ee5a9f78 ee5a9f78
[ 334.159406] 9f80: 00000000 00000000 ee5a9f88 ee5a9f88 eeb58480 c0056994 00000000 00000000
[ 334.167961] 9fa0: 00000000 ee5a9fb0 c0010b58 c00569a0 00000000 00000000 00000000 00000000
[ 334.176518] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 334.185074] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 20813000 a48d3080
[ 334.193622] Backtrace:
[ 334.196197] [<c067ca90>] (klist_put) from [<c067cb3c>] (klist_del+0x14/0x18)
[ 334.203572] r7:ed352020 r6:ed352000 r5:ef0ae220 r4:ef0ae220
[ 334.209543] [<c067cb28>] (klist_del) from [<c0432f40>] (device_del+0x5c/0x21c)
[ 334.217102] [<c0432ee4>] (device_del) from [<c0433130>] (device_unregister+0x30/0x74)
[ 334.225299] r8:00000000 r7:ed352000 r6:ed352000 r5:ed3521e4 r4:ef0ae220
[ 334.232374] [<c0433100>] (device_unregister) from [<bf008820>] (unregister_virtio_device+0x1c/0x30 [virtio])
[ 334.242659] r5:ed3521e4 r4:00000000
[ 334.246442] [<bf008804>] (unregister_virtio_device [virtio]) from [<bf018978>] (rproc_remove_virtio_dev+0x1c/0x20 [remoteproc])
[ 334.258454] r5:ed3521e4 r4:ed3521e4
[ 334.262237] [<bf01895c>] (rproc_remove_virtio_dev [remoteproc]) from [<bf017bc4>] (rproc_trigger_recovery+0x58/0xa4 [remoteproc])
[ 334.274456] [<bf017b6c>] (rproc_trigger_recovery [remoteproc]) from [<bf017c9c>] (rproc_crash_handler_work+0x8c/0xc4 [remoteproc])
[ 334.286737] r7:ed352000 r6:ed352020 r5:ed35218c r4:ed35220c
[ 334.292724] [<bf017c10>] (rproc_crash_handler_work [remoteproc]) from [<c0050adc>] (process_one_work+0x144/0x564)
[ 334.303461] r7:ef78e600 r6:ef7888c0 r5:eea7a100 r4:ed35220c
[ 334.309438] [<c0050998>] (process_one_work) from [<c0050f3c>] (worker_thread+0x40/0x544)
[ 334.317897] r10:ef7888c0 r9:eea7a100 r8:c09b3cbc r7:00000008 r6:ef7888d4 r5:eea7a118
[ 334.326138] r4:ef7888c0
[ 334.328804] [<c0050efc>] (worker_thread) from [<c0056a78>] (kthread+0xe4/0x100)
[ 334.336449] r10:00000000 r9:00000000 r8:00000000 r7:c0050efc r6:eea7a100 r5:eeb58480
[ 334.344696] r4:00000000
[ 334.347362] [<c0056994>] (kthread) from [<c0010b58>] (ret_from_fork+0x14/0x3c)
[ 334.354915] r7:00000000 r6:00000000 r5:c0056994 r4:eeb58480
[ 334.360882] Code: e5904000 e1a07001 e3c44001 e1a05000 (e1d461b2)
[ 334.372801] ---[ end trace b5d1b08738efef78 ]---
[ 334.383359] Kernel panic - not syncing: Fatal exception
[ 334.388837] CPU1: stopping
[ 334.391681] CPU: 1 PID: 751 Comm: systemd-journal Tainted: G D 4.4.23 #4
[ 334.399871] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 334.406237] Backtrace:
[ 334.408815] [<c00153d8>] (dump_backtrace) from [<c0015624>] (show_stack+0x20/0x24)
[ 334.416737] r7:c098f66c r6:200e0193 r5:ffffffff r4:00000000
[ 334.422699] [<c0015604>] (show_stack) from [<c0353820>] (dump_stack+0x8c/0xa8)
[ 334.430264] [<c0353794>] (dump_stack) from [<c00178b0>] (handle_IPI+0x320/0x360)
[ 334.438004] r9:ee5cbda8 r8:00000001 r7:00000000 r6:c0946518 r5:c0946518 r4:00000005
[ 334.446160] [<c0017590>] (handle_IPI) from [<c00095a0>] (gic_handle_irq+0x84/0x8c)
[ 334.454079] r9:fa213000 r8:00000000 r7:fa212000 r6:c094d000 r5:ee5cbda8 r4:fa21200c
[ 334.462236] [<c000951c>] (gic_handle_irq) from [<c0685534>] (__irq_svc+0x54/0x90)
[ 334.470064] Exception stack(0xee5cbda8 to 0xee5cbdf0)
[ 334.475348] bda0: ee870000 00000001 ee80a680 00000001 ee5cbea0 ee870010
[ 334.483912] bdc0: 00000041 00000000 ee870000 ee61c700 00000000 ee5cbe1c ee5cbdf8 ee5cbdf8
[ 334.492460] bde0: c015f088 c015f088 200e0013 ffffffff
[ 334.497745] r9:ee61c700 r8:ee870000 r7:ee5cbddc r6:ffffffff r5:200e0013 r4:c015f088
[ 334.505901] [<c015ee80>] (path_init) from [<c0160ca8>] (path_openat+0x58/0xf90)
[ 334.513548] r9:ee61c700 r8:ee870000 r7:00000001 r6:ee5cbea0 r5:ee5cbea0 r4:ee5cbf54
[ 334.521696] [<c0160c50>] (path_openat) from [<c0162f08>] (do_filp_open+0x70/0xd4)
[ 334.529512] r10:00000000 r9:ee5ca000 r8:ee870000 r7:00000001 r6:ee5cbf54 r5:ee5cbea0
[ 334.537750] r4:000a0000
[ 334.540412] [<c0162e98>] (do_filp_open) from [<c015264c>] (do_sys_open+0x110/0x2ac)
[ 334.548423] r7:0000000b r6:ffffff9c r5:000001b6 r4:000a0000
[ 334.554379] [<c015253c>] (do_sys_open) from [<c0152810>] (SyS_open+0x28/0x2c)
[ 334.561845] r10:00000000 r9:ee5ca000 r8:c0010c64 r7:00000005 r6:00000008 r5:7f634db0
[ 334.570078] r4:7f634db0
[ 334.572737] [<c01527e8>] (SyS_open) from [<c0010aa0>] (ret_fast_syscall+0x0/0x3c)
[ 334.592451] Rebooting in 1 seconds..couldn't find valid volume 'BOOTINFO'
IPL(8): MMT_2020_J6 (A880,B0,4) ver.17323A [built 2017-08-09 16:21:45 5000694+]
CPU: 1b99002f, GP
RAM: 1024 MB
IOC: 64, 0x01
BOOT:!IOC@1,EMLINUX1
Regards
Gokulipu1-debug.zip