|
@@ -3336,7 +3336,7 @@ static int probe_one_instance(unsigned int nid)
|
|
ecc_stngs[nid] = s;
|
|
ecc_stngs[nid] = s;
|
|
|
|
|
|
if (!ecc_enabled(F3, nid)) {
|
|
if (!ecc_enabled(F3, nid)) {
|
|
- ret = -ENODEV;
|
|
|
|
|
|
+ ret = 0;
|
|
|
|
|
|
if (!ecc_enable_override)
|
|
if (!ecc_enable_override)
|
|
goto err_enable;
|
|
goto err_enable;
|
|
@@ -3465,6 +3465,11 @@ static int __init amd64_edac_init(void)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!edac_has_mcs()) {
|
|
|
|
+ err = -ENODEV;
|
|
|
|
+ goto err_pci;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* register stuff with EDAC MCE */
|
|
/* register stuff with EDAC MCE */
|
|
if (report_gart_errors)
|
|
if (report_gart_errors)
|
|
amd_report_gart_errors(true);
|
|
amd_report_gart_errors(true);
|