aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2009-10-16 07:39:30 -0400
committerBorislav Petkov <borislav.petkov@amd.com>2009-12-07 13:14:28 -0500
commit8de1d91e628c19c1154ca15b1ea1fcc0a098b793 (patch)
treea92a88f37eb18e02a65c1fc22cba918e73c962d9 /drivers/edac/amd64_edac.c
parent68798e176012750fe8487bcfa0aa66fee21eae3c (diff)
amd64_edac: cleanup rest of amd64_dump_misc_regs
Clarify bitfields description, add PCI config function/offset names to registers for easy reference, simplify code layout, remove unneeded info. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r--drivers/edac/amd64_edac.c33
1 files changed, 12 insertions, 21 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index cdda8d469cad..c65ad2d57e06 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -862,32 +862,23 @@ static void amd64_dump_misc_regs(struct amd64_pvt *pvt)
862 862
863 amd64_dump_dramcfg_low(pvt->dclr0, 0); 863 amd64_dump_dramcfg_low(pvt->dclr0, 0);
864 864
865 debugf1(" online-spare: 0x%8.08x\n", pvt->online_spare); 865 debugf1("F3xB0 (Online Spare): 0x%08x\n", pvt->online_spare);
866 866
867 if (boot_cpu_data.x86 == 0xf) { 867 debugf1("F1xF0 (DRAM Hole Address): 0x%08x, base: 0x%08x, "
868 debugf1(" dhar: 0x%8.08x Base=0x%08x Offset=0x%08x\n", 868 "offset: 0x%08x\n",
869 pvt->dhar, dhar_base(pvt->dhar), 869 pvt->dhar,
870 k8_dhar_offset(pvt->dhar)); 870 dhar_base(pvt->dhar),
871 debugf1(" DramHoleValid=%s\n", 871 (boot_cpu_data.x86 == 0xf) ? k8_dhar_offset(pvt->dhar)
872 (pvt->dhar & DHAR_VALID) ? "True" : "False"); 872 : f10_dhar_offset(pvt->dhar));
873 873
874 debugf1(" dbam-dkt: 0x%8.08x\n", pvt->dbam0); 874 debugf1(" DramHoleValid: %s\n",
875 (pvt->dhar & DHAR_VALID) ? "yes" : "no");
875 876
876 /* everything below this point is Fam10h and above */ 877 /* everything below this point is Fam10h and above */
878 if (boot_cpu_data.x86 == 0xf)
877 return; 879 return;
878 880
879 } else { 881 /* Only if NOT ganged does dclr1 have valid info */
880 debugf1(" dhar: 0x%8.08x Base=0x%08x Offset=0x%08x\n",
881 pvt->dhar, dhar_base(pvt->dhar),
882 f10_dhar_offset(pvt->dhar));
883 debugf1(" DramMemHoistValid=%s DramHoleValid=%s\n",
884 (pvt->dhar & F10_DRAM_MEM_HOIST_VALID) ?
885 "True" : "False",
886 (pvt->dhar & DHAR_VALID) ?
887 "True" : "False");
888 }
889
890 /* Only if NOT ganged does dcl1 have valid info */
891 if (!dct_ganging_enabled(pvt)) 882 if (!dct_ganging_enabled(pvt))
892 amd64_dump_dramcfg_low(pvt->dclr1, 1); 883 amd64_dump_dramcfg_low(pvt->dclr1, 1);
893 884