...
[ 3.818923] EDAC DEBUG: edac_device_create_sysfs: idx=0[ 3.818936] EDAC DEBUG: edac_device_create_instances:
...
to module This
...
directory as To inject CE Errors
Configure the bit position to generate CE Error
...
4 > # echo 31 >
Write any data to any OCM Memory area, so at the time of writing data the controller injects errors and will report when you read back
the location
# devmem 0xfffd0000 64 0xFFFFFFFFFFFF
read back the data
# devmem
[ 379.903651] EDAC DEVICE0: CE: zynqmp_ocm instance: zynqmp_ocm0 block: zynqmp_ocm0 '
OCM ECC error type :CE
...
To inject UE ErrorsConfigure the bit positions to generate UE Error
...
4 > # echo 7 >
# echo 32 >
Write any data to any OCM Memory area, so at the time of writing data the controller injects errors and will report when you read back
the location
# devmem 0xfffc0000 64 0xFFFFFFFFFFFF
# devmem 0xfffc0000
[ 64.973665] Unhandled fault: synchronous external abort (0x92999219) at 0x0000007f9182b000)
[ 64.973674] EDAC DEVICE0: UE: zynqmp_ocm instance: zynqmp_ocm0 block: zynqmp_ocm0 '
OCM ECC error type :UE
...
Fault Data : 0xFFFEFFFFFF7FExpected Output
...
1 > root@Xilinx-ZCU102-2016_1:~# echo 4 >
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000 32 0x1234
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000
...
xlnx,zynqmp-ocmc-1.0 instance: OCM ECC error type :CE Addr: [0xFFFC0000] Fault Data: [0x1236]'
0x00001234
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000
...
xlnx,zynqmp-ocmc-1.0 instance: OCM ECC error type :CE Addr: [0xFFFC0000] Fault Data: [0x1236]'
0x00001234
root@Xilinx-ZCU102-2016_1:~#
root@Xilinx-ZCU102-2016_1:~#
...
4 > root@Xilinx-ZCU102-2016_1:~# echo 0 >
[ 1363.242555] EDAC ZynqMP-OCM: Set another bit position for UE, if not set
...
7 > [ 1377.012548] EDAC ZynqMP-OCM: UE at Bit Position0: 0 Bit Position1: 7
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffe4200 32 0xFFFF
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffe4200
...
xlnx,zynqmp-ocmc-1.0 instance: OCM ECC error type :UE Addr: [0xFFFE4200] Fault Data: [0xFF7E]'
0x0000FF7E
root@Xilinx-ZCU102-2016_1:~#cat
Fault Injection Data Reg: [0x81]
root@Xilinx-ZCU102-2016_1:~#
root@Xilinx-ZCU102-2016_1:~#
root@Xilinx-ZCU102-2016_1:~#cat
2
root@Xilinx-ZCU102-2016_1:~#cat
1
root@Xilinx-ZCU102-2016_1:~#