public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] AMD64_EDAC:  simple fix to allow better report on ECE CE errors
@ 2009-09-18  2:09 Keith Mannthey
  2009-09-18 14:10 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Mannthey @ 2009-09-18  2:09 UTC (permalink / raw)
  To: lkml; +Cc: borislav.petkov, dougthompson

I tested 2.6.31 and the mainline amd64_edac driver. This is was the
first simple fix.  

This allows the errors to be further decoded and mapped to csrows. 
Tested with ECC debug dimms and an Rev F cpu based system. 

Submitted-by:  Keith Mannthey<kmannth@us.ibm.com>
--- 

diff -urN linux-2.6.31/drivers/edac/amd64_edac.c linux-2.6.31-fixed/drivers/edac/amd64_edac.c
--- linux-2.6.31/drivers/edac/amd64_edac.c	2009-09-09 15:13:59.000000000 -0700
+++ linux-2.6.31-fixed/drivers/edac/amd64_edac.c	2009-09-17 22:32:09.000000000 -0700
@@ -1136,7 +1138,7 @@
 	 * different from the node that detected the error.
 	 */
 	src_mci = find_mc_by_sys_addr(mci, SystemAddress);
-	if (src_mci) {
+	if (!src_mci) {
 		amd64_mc_printk(mci, KERN_ERR,
 			     "failed to map error address 0x%lx to a node\n",
 			     (unsigned long)SystemAddress);



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] AMD64_EDAC:  simple fix to allow better report on ECE CE errors
  2009-09-18  2:09 [Patch] AMD64_EDAC: simple fix to allow better report on ECE CE errors Keith Mannthey
@ 2009-09-18 14:10 ` Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2009-09-18 14:10 UTC (permalink / raw)
  To: Keith Mannthey; +Cc: lkml, dougthompson

Hi Keith,

On Thu, Sep 17, 2009 at 07:09:39PM -0700, Keith Mannthey wrote:
> I tested 2.6.31 and the mainline amd64_edac driver. This is was the
> first simple fix.  
> 
> This allows the errors to be further decoded and mapped to csrows. 
> Tested with ECC debug dimms and an Rev F cpu based system. 
> 
> Submitted-by:  Keith Mannthey<kmannth@us.ibm.com>

Thanks, applied. By the way, the tagging is not 'Submitted-by' but
'Signed-off-by' - I've corrected it accordingly. Please consult
<Documentation/SubmittingPatches> for more details on how to prepare
your patches.

> --- 
> 
> diff -urN linux-2.6.31/drivers/edac/amd64_edac.c linux-2.6.31-fixed/drivers/edac/amd64_edac.c

Add the -p option when creating the diffs so that it is visible which
function you're editing.

> --- linux-2.6.31/drivers/edac/amd64_edac.c	2009-09-09 15:13:59.000000000 -0700
> +++ linux-2.6.31-fixed/drivers/edac/amd64_edac.c	2009-09-17 22:32:09.000000000 -0700
> @@ -1136,7 +1138,7 @@
>  	 * different from the node that detected the error.
>  	 */
>  	src_mci = find_mc_by_sys_addr(mci, SystemAddress);
> -	if (src_mci) {
> +	if (!src_mci) {
>  		amd64_mc_printk(mci, KERN_ERR,
>  			     "failed to map error address 0x%lx to a node\n",
>  			     (unsigned long)SystemAddress);
> 
> 
> 

-- 
Regards/Gruss,
Boris.

Operating | Advanced Micro Devices GmbH
  System  | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
 Research | Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
  Center  | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
  (OSRC)  | Registergericht München, HRB Nr. 43632


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-18 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18  2:09 [Patch] AMD64_EDAC: simple fix to allow better report on ECE CE errors Keith Mannthey
2009-09-18 14:10 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox