revyos / th1520-npu

2 stars 0 forks source link

run_nnvm_testbench.sh got wrong memory alignment #1

Open cwt opened 1 month ago

cwt commented 1 month ago

I repackage this as an Arch pakage. I got this error then I run run_nnvm_testbench.sh.

[root@LPi4A test]# ./run_nnvm_testbench.sh 
***************************************************************
Copyright (c) Imagination Technologies Ltd. All Rights Reserved
***************************************************************
Version: REL_3.8-cl6140200_1.9
INFO: NNA clock:792000 [kHz]
INFO: Heap :ocm (0x18)
INFO: Heap :anonymous (0x2)
INFO: Heap :dmabuf (0x2)
INFO: Heap :unified (0x5)
WARNING: Mapping to the on chip ram failed (384 > 256), continuing...
FATAL: Importing 602112 bytes of CPU memory has failed (wrong memory alignment)
SUCCESS
cwt commented 1 month ago

FYI: The Arch package I mention is here: https://github.com/cwt-lpi4a/th1520-npu

cwt commented 1 month ago

FYI: This is the error from dmesg:

[  115.546584] ax3xxx-nna fffc800000.vha: vha_map_to_onchip: moving a page to on chip ram failed!
[  115.566224] _img_mem_get_user_pages wrong alignment of 0x3fe560b010 address!
[  115.573347] img_mem_import:697 getting user pages failed