AMD64 (Opteron, Athlon64)

modulename: amd64_edac.ko

configname: CONFIG_EDAC_AMD64

Linux Kernel Configuration
└─>Device Drivers
└─>EDAC (Error Detection And Correction) reporting
└─>AMD64 (Opteron, Athlon64)
In linux kernel since version 2.6.31 (release Date: 2009-09-09)  
Support for error detection and correction of DRAM ECC errors on
the AMD64 families (>= K8) of memory controllers.

When EDAC_DEBUG is enabled, hardware error injection facilities
through sysfs are available:

AMD CPUs up to and excluding family 0x17 provide for Memory
Error Injection into the ECC detection circuits. The amd64_edac
module allows the operator/user to inject Uncorrectable and
Correctable errors into DRAM.

When enabled, in each of the respective memory controller directories
(/sys/devices/system/edac/mc/mcX), there are 3 input files:

- inject_section (0..3, 16-byte section of 64-byte cacheline),
- inject_word (0..8, 16-bit word of 16-byte section),
- inject_ecc_vector (hex ecc vector: select bits of inject word)

In addition, there are two control files, inject_read and inject_write,
which trigger the DRAM ECC Read and Write respectively.

source code: