Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359986
b: refs/heads/master
c: 5ee726d
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Feb 25, 2013
1 parent c616d89 commit 0241229
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32fa1f53c2daf9f55f17ff883b4297f86095b09c
refs/heads/master: 5ee726db521fddf991f261e5c45e04a7d2bf1bc1
17 changes: 13 additions & 4 deletions trunk/drivers/edac/ghes_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,19 @@ int ghes_edac_register(struct ghes *ghes, struct device *dev)
mci->dev_name = "ghes";

if (!fake) {
/* Fill DIMM info from DMI */
dimm_fill.count = 0;
dimm_fill.mci = mci;
dmi_walk(ghes_edac_dmidecode, &dimm_fill);
/*
* Fill DIMM info from DMI for the memory controller #0
*
* Keep it in blank for the other memory controllers, as
* there's no reliable way to properly credit each DIMM to
* the memory controller, as different BIOSes fill the
* DMI bank location fields on different ways
*/
if (!ghes_edac_mc_num) {
dimm_fill.count = 0;
dimm_fill.mci = mci;
dmi_walk(ghes_edac_dmidecode, &dimm_fill);
}
} else {
struct dimm_info *dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms,
mci->n_layers, 0, 0, 0);
Expand Down

0 comments on commit 0241229

Please sign in to comment.