ECC Error Injection Test

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ECC Error Injection Test

ECC Error Injection Test

1. DDR Hardware ECC Error Injection Test
Test Sequence
1. Write DATA_ERR_INJECT_LO = 0x1
Select the least significant bit of the low 32-bit data word for inversion.
2. Set ERR_SBE[SBET] = 5
Write 0x00050000 and read ERR_SBE back.
3. Set ECC_ERR_INJECT[EIEN] = 1
Write 0x00000100 and read back to confirm.
4. Write 0x0000000000000000 to DDR
The injection logic inverts bit 0 while generating the stored data/ECC codeword.
5. Generate the required number of errors
Repeat injection at additional safe DDR locations, or repeat the enable/write/read cycle as appropriate. Five corrected events exercise SBET=5.
6. Disable injection
Write 0 to ECC_ERR_INJECT.
7. Read the injected DDR location
ECC corrects the single-bit error; the returned value should be 0.
8. Read ERR_SBE
Check SBEC. A corrected single-bit event increments the count. When the threshold is reached, the counter wraps to its reset value according to the register description.
9. Read ERR_DETECT
Check that SBE is asserted.
10. Restore the DDR location
With injection disabled, write 0 to replace the corrupted codeword.
11. Clear status
Clear ERR_SBE and clear ERR_DETECT[SBE] by writing 0x4; then read back for verification.

2. EDAC for Linux
Using the EDAC driver is another good way for the Layerscape to test the ECC ejection.

Attachments
No ratings
Version history
Last update:
yesterday
Updated by: