Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273306
b: refs/heads/master
c: c6e13b5
h: refs/heads/master
v: v3
  • Loading branch information
Mark A. Grondona authored and Mauro Carvalho Chehab committed Nov 1, 2011
1 parent 758bb5f commit 9dc0f3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 3d78c9af78e080db1961fd30ede1720d6e6e5999
refs/heads/master: c6e13b528f5a6c6a6ae260007d4fd14c3dbc5648
7 changes: 4 additions & 3 deletions trunk/drivers/edac/sb_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ static int get_dimm_config(const struct mem_ctl_info *mci)
unsigned long last_page = 0;
u32 reg;
enum edac_type mode;
enum mem_type mtype;

pci_read_config_dword(pvt->pci_br, SAD_TARGET, &reg);
pvt->sbridge_dev->source_id = SOURCE_ID(reg);
Expand Down Expand Up @@ -601,10 +602,10 @@ static int get_dimm_config(const struct mem_ctl_info *mci)
if (IS_RDIMM_ENABLED(reg)) {
/* FIXME: Can also be LRDIMM */
debugf0("Memory is registered\n");
mode = MEM_RDDR3;
mtype = MEM_RDDR3;
} else {
debugf0("Memory is unregistered\n");
mode = MEM_DDR3;
mtype = MEM_DDR3;
}

/* On all supported DDR3 DIMM types, there are 8 banks available */
Expand Down Expand Up @@ -643,7 +644,7 @@ static int get_dimm_config(const struct mem_ctl_info *mci)
csr->dtype = (banks == 8) ? DEV_X8 : DEV_X4;
csr->ce_count = 0;
csr->ue_count = 0;
csr->mtype = mode;
csr->mtype = mtype;
csr->edac_mode = mode;
csr->nr_channels = 1;
csr->channels[0].chan_idx = i;
Expand Down

0 comments on commit 9dc0f3e

Please sign in to comment.