作者:hankf,Xilinx Employee
启动XEN后,测试ZDMA应用程序, 检查DMA的secure模式。打算在XSCT下读取寄存器 slcr_gdma。
如果target选择A53 #0,不能读取寄存器 slcr_gdma。
如果target选择PSU,能读取寄存器 slcr_gdma。
xsct% connect tcfchan#1 xsct% target 1 PS TAP 2 PMU 3 PL 4 PSU 5 RPU 6 Cortex-R5 #0 (Halted) 7 Cortex-R5 #1 (Lock Step Mode) 8 APU 9 Cortex-A53 #0 (Running) 10 Cortex-A53 #1 (Running) 11 Cortex-A53 #2 (Running) 12 Cortex-A53 #3 (Running) xsct% targ 4 xsct% stop xsct% Info: Cortex-A53 #0 (target 9) Stopped at 0x241ebc (External Debug Request) xsct% Info: Cortex-A53 #1 (target 10) Stopped at 0x241ebc (External Debug Request) xsct% Info: Cortex-A53 #2 (target 11) Stopped at 0x241ebc (External Debug Request) xsct% Info: Cortex-A53 #3 (target 12) Stopped at 0x241ebc (External Debug Request) xsct% rrd adma_ch0 adma_ch1 adma_ch2 ... ... ... ... vcu_slcr wdt alg_vcu_dec_top alg_vcu_enc_top xsct% target 9 xsct% rrd r0: 0000000000000000 r1: 0000000000000000 ... ... ... ... pc: 0000000000241ebc cpsr: 600002c9 vfp sys acpu_gic xsct% mrd 0xFD690050 xsct% Memory read error at 0xFD690050. MMU fault at VA 0xFD690050. Translation fault, first level xsct% target 4 xsct% target 1 PS TAP 2 PMU 3 PL 4* PSU 5 RPU 6 Cortex-R5 #0 (Halted) 7 Cortex-R5 #1 (Lock Step Mode) 8 APU 9 Cortex-A53 #0 (Running) 10 Cortex-A53 #1 (Running) 11 Cortex-A53 #2 (Running) 12 Cortex-A53 #3 (Running) xsct% mrd 0xFD690050 FD690050: 000000FF xsct% con Info: Cortex-A53 #0 (target 9) Running Info: Cortex-A53 #1 (target 10) Running Info: Cortex-A53 #2 (target 11) Running Info: Cortex-A53 #3 (target 12) Running