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.

AM5728: AM5728的配置

Part Number: AM5728

Hi,

My project 用到CMEM,linux下的DTS reserved-memory,都是default的,DDR3 0xa0000000~, OCMC-RAM3 0x40500000~0x40600000;

共享内存在ARM与DSP1之间put/get, 现在是CMEM用DDR3上的,程序能长时间运行;但是在OCMC-RAM3上,加载到load-firmware时有unload时的错误,load好像正常。

后面app_host, 就报如下错误, 不知道是不是remoteproc,mmu什么定义有问题,是不是跟OCMC-RAM3 0x40500000~0x40600000区间冲突了?

DSP1/DSP2的mmu定义我没有修改,应该都是default的。

请问专家,这是什么问题导致的,如何修改?

谢谢!

root@xivi:/lib/firmware# ./load-firmware.sh
[ 5021.198313] omap_hwmod: timer6: _wait_target_disable failed
[ 5021.214544] remoteproc remoteproc2: failed to unmap 16777216/0
[ 5021.250868] remoteproc remoteproc2: stopped remote processor 40800000.dsp
[ 5021.258985] remoteproc remoteproc2: releasing 40800000.dsp
[ 5021.265239] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
[ 5021.277205] remoteproc remoteproc2: 40800000.dsp is available
[ 5021.293507] remoteproc remoteproc2: powering up 40800000.dsp
[ 5021.299212] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4832640
root@xivi:/lib/firmware# [ 5021.318217] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 5021.325344] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 5021.368338] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 5021.373972] remoteproc remoteproc2: registered virtio1 (type 7)
[ 5021.386279] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[ 5021.396255] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 5021.406619] prueth pruss2_eth: port 1: using random MAC addr: ce:4b:6a:4c:f2:f3
[ 5021.417153] virtio_rpmsg_bus virtio1: creating channel rpmsg-proto addr 0x3d
[ 5021.427305] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 5021.434350] prueth pruss2_eth: port 1: using random MAC addr: 4a:20:75:3c:11:71

root@xivi:/lib/firmware# ./app_host DSP1 &
[1] 974
--> main:
TCP mss = 536
Welcome! This is a UDP server.
--> Main_main:
--> App_create:
recv data from client prior recv...CMEM_init success
MessageQ_Params_init
TCP mss = 536 now set
send buffer size = 327680
recv buffer size = 89600
Waiting for client connection...
MessageQ_create
queue name DSP1:MsgQ:01
MessageQ_open
root@xivi:/lib/firmware# queue name DSP1:MsgQ:02
MessageQ_open
App_create: Host is ready
<-- App_create: status=0
--> App_exec:
Message put dataQueue
Message put dataQueue
Message put dataQueue
Message put dataQueue
Message put dataQueue
Message put dataQueue
Message put dataQueue
Message put dataQueue
-- GPMC CMEM alloc.physical_address: 0x01000000
Message put GPMC memory pass Queue
--cmd Queue, CMEM alloc.physical_address: 0x40570000
Message put cmd Queue
Message get cmd Queue
Client accepted : 192.168.207.101:52634
1.4 Got ending
[ 5075.529625] omap-iommu 40d02000.mmu: iommu fault: da 0x405f0010 flags 0x0
[ 5075.536993] remoteproc remoteproc2: crash detected in 40800000.dsp: type mmufault
receive msg = , cmd=0x10000004
Message put
Message get
[ 5075.544520] omap-iommu 40d02000.mmu: 40d02000.mmu: errs:0x00000002 da:0x405f0010 pgd:0xee0c5014 *pgd:px00000000
[ 5075.559840] remoteproc remoteproc2: handling crash #1 in 40800000.dsp
[ 5075.566315] remoteproc remoteproc2: recovering 40800000.dsp
recvfrom failed: Link has been severed (67)
rpmsgThreadFxn: transportGet failed on fd 14, returned -20
recvfrom failed: Link has been severed (67)
rpmsgThreadFxn: transportGet failed on fd [ 5075.588493] omap_hwmod: timer6: _wait_target_disable failed
15, returned -20
Message get DataQueue: status=-20
[ 5075.601696] remoteproc remoteproc2: failed to unmap 16777216/0
[ 5075.636821] remoteproc remoteproc2: stopped remote processor 40800000.dsp
[ 5075.643650] remoteproc remoteproc2: powering up 40800000.dsp
[ 5075.657593] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4832640
[ 5075.672658] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 5075.678561] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 5075.718781] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 5075.724348] remoteproc remoteproc2: registered virtio1 (type 7)
[ 5075.733110] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[ 5075.743037] virtio_rpmsg_bus virtio1: creating channel rpmsg-proto addr 0x3d
[ 5075.752345] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 5075.757922] prueth pruss2_eth: port 1: using random MAC addr: f2:d7:91:e5:79:c9