工具与软件:
您好!
我们正在尝试运行 AM62A7的 MCU_PLUS 用户指南的 AM62A7多核部分中提到的 rpmsg_zero_copy 示例:
https://git.ti.com/cgit/rpmsg/rpmsg_char_zerocopy/
我们将遵循 Git 区域中的 README.md。 我们能够毫无问题地执行 hello world 和 echo 测试。
我们的客户有兴趣将 DSP 用于特定应用、在可能使用 C7x 实现预期 AI 功能的通用硬件的单独应用中将一些滤波/FFT 转移到 C7x DSP。
我们使用以下命令行:
rpmsg_char_zerocopy -r 8 -s 10 -e "linux,cma"
我们已更新 DSP 应用程序中的 example.syscfg 以添加 CMA 保留区域:
mmu_armv812.$name = "CONFIG_SHARED";mmu_armv812.vAddr = 0xC0000000;mmu_armv812.pAddr = 0xC0000000;mmu_armv812.size = 0x1000000;mmu_armv812.attribute = "MAIR4";
Linux 在这里得到并停止
Created endpt device rpmsg-char-8-1317, fd = 4 port = 1025Exchanging 1 messages with rpmsg device on rproc id 8 ...
dma-buf address: 0xc00f4000Buffer @0xffff891f7000 (size 10240) filled with pattern 0xaaaa5555Sending buffer data #0 Address: 0xc00f4000 Size: 10240 Pattern: 0xaaaa5555Receiving buffer data #0:
当我们转储跟踪缓冲区时、DSP 崩溃(似乎会不断循环出错、因此我们会遗漏开始)。 但调试程序显示它在 Cache_inv()操作中使 buffer_validate()崩溃。
cat /sys/kernel/debug/remoteproc/remoteproc0/trace0][c75ss0] 174.365843s : 0x000000000000000a [7] 0x0000000000000000 [7][c75ss0] 174.365361s :[c75ss0] 174.365553s : Exception at 0x0000000000000000[c75ss0] 174.365903s : TSR at time of exception: 0x0000000000000000[c75ss0] 174.365342s : Page fault:[c75ss0] 174.365545s : IERR=0x0000000000000001[c75ss0] 174.365825s : IEAR=0x00000000c00f4000[c75ss0] 174.365115s : IESR=0x00000000000300c5[c75ss0] 174.365424s : Page fault exception:[c75ss0] 174.365711s : uTLB Fault, cpu_se_N_rstatus[10:0]=0xc5 0x0000000000000000 [6][c75ss0] 174.365704s : 0x0000000000000000 [7] 0x0000000000000000 [7][c75ss0] 174.365218s :[c75ss0] 174.365376s : SE1_2=0x0000000000000000 [0] SE1_3=0x021dcee084aa6e66 [0][c75ss0] 174.365882s : 0x0000000000000000 [1] 0xf7d5bfac76060c23 [1][c75ss0] 174.365412s : 0x0000000000000000 [2] 0x0e8880a01e30789d [2][c75ss0] 174.365943s : 0x0000000000000003 [3] 0x0000000000000808 [3][c75ss0] 174.365425s : 0x4d41bc6801f7043a [4] 0x1509a1111a904103 [4][c75ss0] 174.365957s : 0xd038226ce83bd4f6 [5] 0x89a919006ebacd26 [5][c75ss0] 174.365511s : 0x80283da21d502185 [6] 0x043844ec8c92c192 [6][c75ss0] 174.365063s : 0x0000000000000800 [7] 0x0000000000000010 [7]
是否有任何明显的问题我们可能做错了?
谢谢!
Mike
