From: Randy Dunlap <randy.dunlap@oracle.com>
To: Doug Thompson <norsk5@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] EDAC: e752x-bit-mask-fix
Date: Wed, 3 Jan 2007 15:39:41 -0800 [thread overview]
Message-ID: <20070103153941.1486073f.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20070103001336.84797.qmail@web50110.mail.yahoo.com>
On Tue, 2 Jan 2007 16:13:36 -0800 (PST) Doug Thompson wrote:
> from: Brian Pomerantz <bapper@mvista.com>
>
> Description:
> The fatal vs. non-fatal mask for the sysbus FERR status is
> incorrect
> according to the E7520 datasheet. This patch corrects the mask to
> correctly
> handle fatal and non-fatal errors.
>
> Signed-off-by: Brian Pomerantz <bapper@mvista.com>
> Signed-off-by: Dave Jiang <djiang@mvista.com>
> Signed-off-by: Doug Thompson <norsk5@xmission.com>
>
> e752x_edac.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> Index: linux-2.6.18/drivers/edac/e752x_edac.c
> ===================================================================
> --- linux-2.6.18.orig/drivers/edac/e752x_edac.c
> +++ linux-2.6.18/drivers/edac/e752x_edac.c
> @@ -561,17 +561,17 @@ static void e752x_check_sysbus(struct e7
> error32 = (stat32 >> 16) & 0x3ff;
> stat32 = stat32 & 0x3ff;
>
> - if(stat32 & 0x083)
> - sysbus_error(1, stat32 & 0x083, error_found, handle_error);
> + if(stat32 & 0x087)
> + sysbus_error(1, stat32 & 0x087, error_found, handle_error);
>
> - if(stat32 & 0x37c)
> - sysbus_error(0, stat32 & 0x37c, error_found, handle_error);
> + if(stat32 & 0x378)
> + sysbus_error(0, stat32 & 0x378, error_found, handle_error);
>
> - if(error32 & 0x083)
> - sysbus_error(1, error32 & 0x083, error_found, handle_error);
> + if(error32 & 0x087)
> + sysbus_error(1, error32 & 0x087, error_found, handle_error);
>
> - if(error32 & 0x37c)
> - sysbus_error(0, error32 & 0x37c, error_found, handle_error);
> + if(error32 & 0x378)
> + sysbus_error(0, error32 & 0x378, error_found, handle_error);
> }
if (
Are these bit masks documented somewhere?
You could make that almost readable by using some #defines for them.
---
~Randy
prev parent reply other threads:[~2007-01-03 23:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-03 0:13 Doug Thompson
2007-01-03 23:39 ` Randy Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070103153941.1486073f.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=norsk5@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®