amd64_edac: beef up DRAM error injection
commit94baaee4947d84809b289d5ca03677525ffc6da9
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 24 Sep 2009 09:05:30 +0000 (24 11:05 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 7 Oct 2009 14:51:28 +0000 (7 16:51 +0200)
tree61134e2d9fc2e639d4dfc4ec50f90730d2f21f75
parent66216a7a15e75d517dddd0ac6514924b15071e4c
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