diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-03-09 06:46:00 -0500 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2010-08-03 10:13:31 -0400 |
commit | ad6a32e96939a0eb0eb382e7d78dbf33457aed1a (patch) | |
tree | 62824540584ff79cde370edc3730d2b592a5a0d9 /drivers/edac/amd64_edac.h | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
amd64_edac: Sanitize syndrome extraction
Remove the two syndrome extraction macros and add a single function
which does the same thing but with proper typechecking. While at it,
make sure to cache ECC syndrome size and dump it in debug output.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index 0d4bf5638243..707745b36733 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -382,6 +382,8 @@ enum { | |||
382 | #define K8_NBCAP_SECDED BIT(3) | 382 | #define K8_NBCAP_SECDED BIT(3) |
383 | #define K8_NBCAP_DCT_DUAL BIT(0) | 383 | #define K8_NBCAP_DCT_DUAL BIT(0) |
384 | 384 | ||
385 | #define EXT_NB_MCA_CFG 0x180 | ||
386 | |||
385 | /* MSRs */ | 387 | /* MSRs */ |
386 | #define K8_MSR_MCGCTL_NBE BIT(4) | 388 | #define K8_MSR_MCGCTL_NBE BIT(4) |
387 | 389 | ||
@@ -471,6 +473,9 @@ struct amd64_pvt { | |||
471 | u32 dram_ctl_select_high; /* DRAM Controller Select High Reg */ | 473 | u32 dram_ctl_select_high; /* DRAM Controller Select High Reg */ |
472 | u32 online_spare; /* On-Line spare Reg */ | 474 | u32 online_spare; /* On-Line spare Reg */ |
473 | 475 | ||
476 | /* x4 or x8 syndromes in use */ | ||
477 | u8 syn_type; | ||
478 | |||
474 | /* temp storage for when input is received from sysfs */ | 479 | /* temp storage for when input is received from sysfs */ |
475 | struct err_regs ctl_error_info; | 480 | struct err_regs ctl_error_info; |
476 | 481 | ||