Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215985
b: refs/heads/master
c: 1aa4a7b
h: refs/heads/master
i:
  215983: 10fa695
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Sep 24, 2010
1 parent 9aa5203 commit ba452e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 3c9c92b6b5016a2e02c3438386b1c5efe7f588e4
refs/heads/master: 1aa4a7b6b082adbfa704988dd098bc96b8837d5a
18 changes: 9 additions & 9 deletions trunk/drivers/edac/i7300_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ static void i7300_enable_error_reporting(struct mem_ctl_info *mci)
static int decode_mtr(struct i7300_pvt *pvt,
int slot, int ch, int branch,
struct i7300_dimm_info *dinfo,
struct csrow_info *p_csrow)
struct csrow_info *p_csrow,
u32 *last_page)
{
int mtr, ans, addrBits, channel;

Expand Down Expand Up @@ -663,6 +664,11 @@ static int decode_mtr(struct i7300_pvt *pvt,
p_csrow->grain = 8;
p_csrow->nr_pages = dinfo->megabytes << 8;
p_csrow->mtype = MEM_FB_DDR2;
p_csrow->csrow_idx = slot;
p_csrow->first_page = *last_page;
*last_page += p_csrow->nr_pages;
p_csrow->last_page = *last_page;
p_csrow->page_mask = 0;

/*
* The type of error detection actually depends of the
Expand Down Expand Up @@ -774,6 +780,7 @@ static int i7300_init_csrows(struct mem_ctl_info *mci)
int rc = -ENODEV;
int mtr;
int ch, branch, slot, channel;
u32 last_page = 0;

pvt = mci->pvt_info;

Expand Down Expand Up @@ -811,18 +818,11 @@ static int i7300_init_csrows(struct mem_ctl_info *mci)
p_csrow = &mci->csrows[slot];

mtr = decode_mtr(pvt, slot, ch, branch,
dinfo, p_csrow);
dinfo, p_csrow, &last_page);
/* if no DIMMS on this row, continue */
if (!MTR_DIMMS_PRESENT(mtr))
continue;

p_csrow->csrow_idx = slot;

/* FAKE OUT VALUES, FIXME */
p_csrow->first_page = 0 + slot * 20;
p_csrow->last_page = 9 + slot * 20;
p_csrow->page_mask = 0xfff;

rc = 0;
}
}
Expand Down

0 comments on commit ba452e3

Please sign in to comment.