Skip to contentSkip to conversation

Oops on startup: Kernel failure: EDAC amd64: WARNING: ECC is disabled by BIOS

Bug 15238 Borislav Petkov 2 participants 2 messages Feb 11, 2010 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

Quoted 31 lines · Doug Thompson

boris, can you look at this as well.

I think changing WARNING to a NOTICE in the log output would stop the oops parsing code from thinking this an OOPS event, when it is not

doug t

Quoted 22 lines · --- On Mon, 2/8/10, [email protected]…

From: [email protected] <[email protected]>
Subject: [Bug 15238] Oops on startup: Kernel failure: EDAC amd64: WARNING: ECC is disabled by BIOS
To: [email protected]
Date: Monday, February 8, 2010, 2:42 PM
http://bugzilla.kernel.org/show_bug.cgi?id=15238

Andrew Morton <[email protected]>
changed:

           What
  |Removed
         |Added
----------------------------------------------------------------------------
         AssignedTo|[email protected]   |[email protected]

--- Comment #1 from Andrew Morton <[email protected]>

2010-02-08 21:42:40 ---

Doug, could you please take a look at this one?

How about something like the following? If everyone is ok with that I'll send it to Linus and stable later since it is trivial enough:

dmesg:

EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
Either enable ECC checking or force module loading by setting 'ecc_enable_override'. (Note that use of the override may cause unknown side effects.)

patch:

drivers/edac/amd64_edac.c +8 -7
index 000dc67..3391e67 100644
@@ -2658,10 +2658,11 @@ static void amd64_restore_ecc_error_reporting(struct amd64_pvt *pvt)
  * the memory system completely. A command line option allows to force-enable
  * hardware ECC later in amd64_enable_ecc_error_reporting().
  */
-static const char *ecc_warning =
-	"WARNING: ECC is disabled by BIOS. Module will NOT be loaded.\n"
-	" Either Enable ECC in the BIOS, or set 'ecc_enable_override'.\n"
-	" Also, use of the override can cause unknown side effects.\n";
+static const char *ecc_msg =
+	"ECC disabled in the BIOS or no ECC capability, module will not load.\n"
+	" Either enable ECC checking or force module loading by setting "
+	"'ecc_enable_override'.\n"
+	" (Note that use of the override may cause unknown side effects.)\n";
 
 static int amd64_check_ecc_enabled(struct amd64_pvt *pvt)
 {
@@ -2673,7 +2674,7 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt)
 
 	ecc_enabled = !!(value & K8_NBCFG_ECC_ENABLE);
 	if (!ecc_enabled)
-		amd64_printk(KERN_WARNING, "This node reports that Memory ECC "
+		amd64_printk(KERN_NOTICE, "This node reports that Memory ECC "
 			     "is currently disabled, set F3x%x[22] (%s).\n",
 			     K8_NBCFG, pci_name(pvt->misc_f3_ctl));
 	else
@@ -2681,13 +2682,13 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt)
 
 	nb_mce_en = amd64_nb_mce_bank_enabled_on_node(pvt->mc_node_id);
 	if (!nb_mce_en)
-		amd64_printk(KERN_WARNING, "NB MCE bank disabled, set MSR "
+		amd64_printk(KERN_NOTICE, "NB MCE bank disabled, set MSR "
 			     "0x%08x[4] on node %d to enable.\n",
 			     MSR_IA32_MCG_CTL, pvt->mc_node_id);
 
 	if (!ecc_enabled || !nb_mce_en) {
 		if (!ecc_enable_override) {
-			amd64_printk(KERN_WARNING, "%s", ecc_warning);
+			amd64_printk(KERN_NOTICE, "%s", ecc_msg);
 			return -ENODEV;
 		}
 		ecc_enable_override = 0;

--

Thanks.

Signature · 6 lines
Regards/Gruss,
Boris.

--
Advanced Micro Devices, Inc.
Operating Systems Research Center
#2 lore raw
Quoted 55 lines · Borislav Petkov

From: Borislav Petkov <[email protected]>
Subject: Re: Fw: [Bug 15238] Oops on startup: Kernel failure: EDAC amd64: WARNING: ECC is disabled by BIOS
To: "Doug Thompson" <[email protected]>, "Andrew Morton" <[email protected]>
Cc: [email protected], "edac-devel" <[email protected]>
Date: Thursday, February 11, 2010, 7:34 AM
Hi,

Quoted 3 lines · Doug Thompson

boris, can you look at this as well.

I think changing WARNING to a NOTICE in the log output

would stop the oops parsing code from thinking this an OOPS event, when it is not

Quoted 5 lines

doug t

--- On Mon, 2/8/10, [email protected]

<[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

From: [email protected]

<[email protected]>

Quoted 1 line
Quoted 1 line

Subject: [Bug 15238] Oops on startup: Kernel

failure: EDAC amd64: WARNING: ECC is disabled by BIOS

Quoted 5 lines
Quoted 5 lines

To: [email protected]
Date: Monday, February 8, 2010, 2:42 PM
http://bugzilla.kernel.org/show_bug.cgi?id=15238

Quoted 7 lines
Quoted 7 lines

Andrew Morton <[email protected]>
changed:

           What
  |Removed
         |Added

----------------------------------------------------------------------------

Quoted 8 lines
Quoted 8 lines

         AssignedTo|[email protected]   |[email protected]

--- Comment #1 from Andrew Morton <[email protected]>

2010-02-08 21:42:40 ---

Doug, could you please take a look at this one?

How about something like the following? If everyone is ok with that
I'll send it to Linus and stable later since it is trivial enough:

dmesg:

Quoted 8 lines

EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
Either enable ECC checking or force module loading by
setting 'ecc_enable_override'.
(Note that use of the override may cause unknown side
effects.)

patch:

Quoted 91 lines
drivers/edac/amd64_edac.c +0 -0
index 000dc67..3391e67 100644
@@ -2658,10 +2658,11 @@ static void
 amd64_restore_ecc_error_reporting(struct amd64_pvt *pvt)
   * the memory system completely. A command line

option allows to force-enable
  * hardware ECC later in
amd64_enable_ecc_error_reporting().
  */
-static const char *ecc_warning =
-    "WARNING: ECC is disabled by BIOS.
Module will NOT be loaded.\n"
-    " Either Enable ECC in the BIOS, or set
'ecc_enable_override'.\n"
-    " Also, use of the override can cause
unknown side effects.\n";
+static const char *ecc_msg =
+    "ECC disabled in the BIOS or no ECC
capability, module will not load.\n"
+    " Either enable ECC checking or force
module loading by setting "
+    "'ecc_enable_override'.\n"
+    " (Note that use of the override may
cause unknown side effects.)\n";

static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) {

drivers/edac/amd64_edac.c +0 -1
@@ -2673,7 +2674,7 @@ static int
 amd64_check_ecc_enabled(struct amd64_pvt *pvt)
 
     ecc_enabled = !!(value &
 K8_NBCFG_ECC_ENABLE);
     if (!ecc_enabled)
-       

amd64_printk(KERN_WARNING, "This node reports that Memory ECC "
+
amd64_printk(KERN_NOTICE, "This node reports that Memory ECC "

     "is currently disabled, set
F3x%x[22] (%s).\n",

     K8_NBCFG,
pci_name(pvt->misc_f3_ctl));
    else

drivers/edac/amd64_edac.c +0 -1
@@ -2681,13 +2682,13 @@ static int
 amd64_check_ecc_enabled(struct amd64_pvt *pvt)
 
     nb_mce_en =
 amd64_nb_mce_bank_enabled_on_node(pvt->mc_node_id);
     if (!nb_mce_en)
-       

amd64_printk(KERN_WARNING, "NB MCE bank disabled, set MSR " +
amd64_printk(KERN_NOTICE, "NB MCE bank disabled, set MSR "
     "0x%08x[4] on node %d to
enable.\n",

     MSR_IA32_MCG_CTL,
pvt->mc_node_id);

    if (!ecc_enabled || !nb_mce_en) {
        if
(!ecc_enable_override) {
-
amd64_printk(KERN_WARNING, "%s", ecc_warning);
+
amd64_printk(KERN_NOTICE, "%s", ecc_msg);

return -ENODEV;
        }
        ecc_enable_override
= 0;
--

Thanks.

Signature · 6 lines
Regards/Gruss,
Boris.

--
Advanced Micro Devices, Inc.
Operating Systems Research Center