diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-10-14 10:01:30 -0400 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2011-01-07 05:34:00 -0500 |
commit | ae7bb7c679e7ddba6c52d1a78a30f9bc868d9738 (patch) | |
tree | dccc3bdf93c8746a77d84ecb20b103ddab722e64 /drivers/edac/amd64_edac.h | |
parent | f1db274e1ba7004909de4a9cee62f631c030ba3e (diff) |
amd64_edac: Carve out ECC-related hw settings
This is in preparation for the init path reorganization where we want
only to
1) test whether a particular node supports ECC
2) can it be enabled
and only then do the necessary allocation/initialization. For that,
we need to decouple the ECC settings of the node from the instance's
descriptor.
The should be no functional change introduced by this patch.
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 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index 4bc6f183d97c..b76dce96e8e6 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -461,17 +461,21 @@ struct amd64_pvt { | |||
461 | /* place to store error injection parameters prior to issue */ | 461 | /* place to store error injection parameters prior to issue */ |
462 | struct error_injection injection; | 462 | struct error_injection injection; |
463 | 463 | ||
464 | /* Save old hw registers' values before we modified them */ | ||
465 | u32 nbctl_mcgctl_saved; /* When true, following 2 are valid */ | ||
466 | u32 old_nbctl; | ||
467 | |||
468 | /* DCT per-family scrubrate setting */ | 464 | /* DCT per-family scrubrate setting */ |
469 | u32 min_scrubrate; | 465 | u32 min_scrubrate; |
470 | 466 | ||
471 | /* family name this instance is running on */ | 467 | /* family name this instance is running on */ |
472 | const char *ctl_name; | 468 | const char *ctl_name; |
473 | 469 | ||
474 | /* misc settings */ | 470 | }; |
471 | |||
472 | /* | ||
473 | * per-node ECC settings descriptor | ||
474 | */ | ||
475 | struct ecc_settings { | ||
476 | u32 old_nbctl; | ||
477 | bool nbctl_valid; | ||
478 | |||
475 | struct flags { | 479 | struct flags { |
476 | unsigned long nb_mce_enable:1; | 480 | unsigned long nb_mce_enable:1; |
477 | unsigned long nb_ecc_prev:1; | 481 | unsigned long nb_ecc_prev:1; |