aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-12-23 08:07:18 -0500
committerBorislav Petkov <borislav.petkov@amd.com>2011-03-17 09:46:16 -0400
commita97fa68ec403e2761a37b28651de8fd9da8c5e1f (patch)
tree3f9e70f80e4cbe15f603547e2360438a41179cbe /drivers/edac/amd64_edac.h
parentc9f4f26eae096c39547139666e8af607c2447f94 (diff)
amd64_edac: Cleanup NBCFG handling
The fact whether we are chipkill capable or not does not have any bearing when computing the channel index on a ganged DCT configuration so remove that. Also, simplify debug statements. Finally, remove old error injection leftovers, while at it. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r--drivers/edac/amd64_edac.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
index fc609d1164a..6c52736b09f 100644
--- a/drivers/edac/amd64_edac.h
+++ b/drivers/edac/amd64_edac.h
@@ -246,9 +246,9 @@
246 */ 246 */
247#define NBCTL 0x40 247#define NBCTL 0x40
248 248
249#define K8_NBCFG 0x44 249#define NBCFG 0x44
250#define K8_NBCFG_CHIPKILL BIT(23) 250#define NBCFG_CHIPKILL BIT(23)
251#define K8_NBCFG_ECC_ENABLE BIT(22) 251#define NBCFG_ECC_ENABLE BIT(22)
252 252
253#define K8_NBSL 0x48 253#define K8_NBSL 0x48
254 254
@@ -420,9 +420,6 @@ struct amd64_pvt {
420 /* x4 or x8 syndromes in use */ 420 /* x4 or x8 syndromes in use */
421 u8 syn_type; 421 u8 syn_type;
422 422
423 /* temp storage for when input is received from sysfs */
424 struct err_regs ctl_error_info;
425
426 /* place to store error injection parameters prior to issue */ 423 /* place to store error injection parameters prior to issue */
427 struct error_injection injection; 424 struct error_injection injection;
428 425