]> git.baikalelectronics.ru Git - kernel.git/commit
amd64_edac: beef up DRAM error injection
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 24 Sep 2009 09:05:30 +0000 (11:05 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 7 Oct 2009 14:51:28 +0000 (16:51 +0200)
commit0cfe3de38eb4ce3dfd8d3cbe8c5dbf5cea9bfad0
tree61134e2d9fc2e639d4dfc4ec50f90730d2f21f75
parent1df03ef32db16a769e59fa69a28dca6b8e84754e
amd64_edac: beef up DRAM error injection

When injecting DRAM ECC errors (F3xBC_x8), EccVector[15:0] is a bitmask
of which bits should be error injected when written to and holds the
payload of 16-bit DRAM word when read, respectively.

Add /sysfs members to show the DRAM ECC section/word/vector.

Fail wrong injection values entered over /sysfs instead of truncating
them.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.h
drivers/edac/amd64_edac_inj.c