RAS/CEC: Reduce offline page threshold for Intel systems
[linux-2.6-block.git] / drivers / ras / cec.c
index 42f2fc0bc8a98f993fdd61bfcb101a4b52ce0430..321af498ee119d62610b308901932848124b1230 100644 (file)
@@ -556,6 +556,14 @@ static int __init cec_init(void)
        if (ce_arr.disabled)
                return -ENODEV;
 
+       /*
+        * Intel systems may avoid uncorrectable errors
+        * if pages with corrected errors are aggressively
+        * taken offline.
+        */
+       if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL)
+               action_threshold = 2;
+
        ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL);
        if (!ce_arr.array) {
                pr_err("Error allocating CE array page!\n");