diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2009-11-12 09:37:57 -0500 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2009-12-07 13:14:31 -0500 |
commit | 6b4c0bdeb00f35cad2d3e0dc0d97bb4950a8f86e (patch) | |
tree | 6df106fc0acba87e83980b524d54eefcba0afbb1 /drivers | |
parent | 239642fe19adc19ba0a69e96f3b1904dfd6a3b9f (diff) |
amd64_edac: detect DDR3 memory type
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/amd64_edac.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 708d065efc95..d9cde7132e89 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -1017,10 +1017,11 @@ static enum mem_type amd64_determine_memory_type(struct amd64_pvt *pvt) | |||
1017 | enum mem_type type; | 1017 | enum mem_type type; |
1018 | 1018 | ||
1019 | if (boot_cpu_data.x86 >= 0x10 || pvt->ext_model >= K8_REV_F) { | 1019 | if (boot_cpu_data.x86 >= 0x10 || pvt->ext_model >= K8_REV_F) { |
1020 | /* Rev F and later */ | 1020 | if (pvt->dchr0 & DDR3_MODE) |
1021 | type = (pvt->dclr0 & BIT(16)) ? MEM_DDR2 : MEM_RDDR2; | 1021 | type = (pvt->dclr0 & BIT(16)) ? MEM_DDR3 : MEM_RDDR3; |
1022 | else | ||
1023 | type = (pvt->dclr0 & BIT(16)) ? MEM_DDR2 : MEM_RDDR2; | ||
1022 | } else { | 1024 | } else { |
1023 | /* Rev E and earlier */ | ||
1024 | type = (pvt->dclr0 & BIT(18)) ? MEM_DDR : MEM_RDDR; | 1025 | type = (pvt->dclr0 & BIT(18)) ? MEM_DDR : MEM_RDDR; |
1025 | } | 1026 | } |
1026 | 1027 | ||