Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212117
b: refs/heads/master
c: 9be0bb1
h: refs/heads/master
i:
  212115: 1ac2314
v: v3
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Oct 21, 2010
1 parent b5eba3f commit a98fef1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 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: f0157b3afd2ec6331245768a785487249a3c9734
refs/heads/master: 9be0bb1072e3544934e0ac20f184e50805aecf9c
24 changes: 17 additions & 7 deletions trunk/drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,10 @@ static const char *f10h_nb_mce_desc[] = {
"ECC Error in the Probe Filter directory"
};

static bool f10h_dc_mce(u16 ec)
static bool f12h_dc_mce(u16 ec)
{
u8 r4 = (ec >> 4) & 0xf;
bool ret = false;

if (r4 == R4_GEN) {
pr_cont("during data scrub.\n");
return true;
}

if (MEM_ERROR(ec)) {
u8 ll = ec & 0x3;
ret = true;
Expand All @@ -98,6 +92,18 @@ static bool f10h_dc_mce(u16 ec)
return ret;
}

static bool f10h_dc_mce(u16 ec)
{
u8 r4 = (ec >> 4) & 0xf;
u8 ll = ec & 0x3;

if (r4 == R4_GEN && ll == LL_L1) {
pr_cont("during data scrub.\n");
return true;
}
return f12h_dc_mce(ec);
}

static bool k8_dc_mce(u16 ec)
{
if (BUS_ERROR(ec)) {
Expand Down Expand Up @@ -632,6 +638,10 @@ static int __init mce_amd_init(void)
fam_ops->nb_mce = f10h_nb_mce;
break;

case 0x12:
fam_ops->dc_mce = f12h_dc_mce;
break;

case 0x14:
nb_err_cpumask = 0x3;
fam_ops->dc_mce = f14h_dc_mce;
Expand Down

0 comments on commit a98fef1

Please sign in to comment.