IMX93 M33 add LPSPI3 initialize code in ethosu_app_rpmsg

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX93 M33 add LPSPI3 initialize code in ethosu_app_rpmsg

873 Views
lzxxxx
Contributor I

Hello,

I'm using both M33 and A55 (imx93). I want to drive a lcd screen from MCU ( LPSPI3) in project ethosu_app_rpmsg.

When i compile this project and move the output elf file to A55(imx93) to execute, unexcepted error occurred:

INFO: [ 267.292524] remoteproc remoteproc0: powering up imx-rproc
Ethosu delegate: [ 267.298756] remoteproc remoteproc0: Booting fw image ethosu_firmware, size 244976
device_name set to /dev/ethosu0.
INFO: Ethosu delegate: cache_file_path set to .
INFO: Ethosu delegate: timeout[ 267.316902] imx-rproc imx93-cm33: Translation failed: da = 0xffed550 len = 0x12c20
set to 60000000000.
INFO: Ethos[ 267.327253] remoteproc remoteproc0: bad phdr da 0xffed550 mem 0x12c20
u delegate: enable_cycle_counter[ 267.336496] remoteproc remoteproc0: Failed to load program segments: -22
set to 0.
INFO:[ 267.344747] ethosu ethosu: could not boot a remote processor
Ethosu delegate: enable_profiling set to 0.
INFO: Ethosu delegate: profiling_buffer_size set to 2048.
INFO: Ethosu delegate: pmu_event0 set t[ 267.361698] Unable to handle kernel paging request at virtual address ffff80000af9802c
o 0.
INFO: Ethos[ 267.371056] Mem abort info:
u delegate: pmu_e[ 267.375858] ESR = 0x0000000096000047
vent1 set to 0.
[ 267.380844] EC = 0x25: DABT (current EL), IL = 32 bits
INFO: Ethosu delegate: pmu_event[ 267.389144] SET = 0, FnV = 0
2 set to 0.
INFO[ 267.393652] EA = 0, S1PTW = 0
: Ethosu delegate: pmu_event3 set to 0.
[ 267.403537] FSC = 0x07: level 3 translation fault
[ 267.408497] Data abort info:
[ 267.411368] ISV = 0, ISS = 0x00000047
[ 267.415973] CM = 0, WnR = 1
[ 267.418943] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000081bd0000
[ 267.426297] [ffff80000af9802c] pgd=10000000bffff003, p4d=10000000bffff003, pud=10000000bfffe003, pmd=10000000849d3003, pte=0000000000000000
[ 267.439240] Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP
[ 267.445497] Modules linked in: rpmsg_ctrl rpmsg_char crct10dif_ce polyval_ce polyval_generic flexcan layerscape_edac_mod soc_imx9 nvmem_imx_ocotp_fsb_s400 can_dev imx8_media_dev(Ce
[ 267.462009] CPU: 1 PID: 575 Comm: imx93_app Tainted: G C 6.1.55 #2
[ 267.469564] Hardware name: ATK-DLIMX93 Development board (DT)
[ 267.475294] pstate: 40400009 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 267.482243] pc : virtqueue_add_split+0x168/0x550
[ 267.486854] lr : virtqueue_add_split+0x144/0x550
[ 267.491456] sp : ffff80000ad73b70
[ 267.494757] x29: ffff80000ad73b70 x28: 0000000000000000 x27: 0000000000000400
[ 267.501882] x26: ffff80000ad73c40 x25: 0000000000000001 x24: 0000000000000001
[ 267.509006] x23: 0000000000000000 x22: ffff80000af98000 x21: 0000000000000002
[ 267.516130] x20: 0000000000000002 x19: ffff000005907000 x18: 0000000000000000
[ 267.523254] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 267.530378] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 267.537501] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[ 267.544626] x8 : ffff80000ad73c60 x7 : ffff00000579a000 x6 : 0000000000000000
[ 267.551750] x5 : 000000000000001c x4 : 0000000000000001 x3 : 0000000000000020
[ 267.558874] x2 : ffff80000af98020 x1 : fffffc0000a03800 x0 : 00000000a80e0800
[ 267.565998] Call trace:
[ 267.568434] virtqueue_add_split+0x168/0x550
[ 267.572697] virtqueue_add_outbuf+0x48/0x5c
[ 267.576874] rpmsg_send_offchannel_raw+0x2c4/0x3a0
[ 267.581658] virtio_rpmsg_send+0x28/0x34
[ 267.585567] rpmsg_send+0x20/0x40
[ 267.588877] ethosu_rpmsg_version_request+0x4c/0xa0
[ 267.593748] ethosu_ioctl+0x140/0x2a0
[ 267.597397] __arm64_sys_ioctl+0xac/0xf0
[ 267.601314] invoke_syscall+0x48/0x114
[ 267.605058] el0_svc_common.constprop.0+0x44/0xec
[ 267.609747] do_el0_svc+0x2c/0xd0
[ 267.613049] el0_svc+0x2c/0x84
[ 267.616099] el0t_64_sync_handler+0xf4/0x120
[ 267.620355] el0t_64_sync+0x18c/0x190
[ 267.624007] Code: d37c7ea3 b9400f45 8b0302c2 f9404a67 (79001858)
[ 267.630080] ---[ end trace 0000000000000000 ]---

Message from syslogd@atk-imx93 at Thu Mar 9 10:25:37 2023 ...
kernel: Code: d37c7ea3 b9400f45 8b0302c2 f9404a67 (79001858)

Message from syslogd@atk-imx93 at Thu Mar 9 10:25:37 2023 ...
kernel: Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP
Segmentation fault

If you can help !

0 Kudos
Reply
1 Reply

854 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 Kudos
Reply