Commit dfb2a763 authored by Brian Pomerantz's avatar Brian Pomerantz Committed by Linus Torvalds

[PATCH] EDAC: e752x bit mask fix

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: default avatarBrian Pomerantz <bapper@mvista.com>
Signed-off-by: default avatarDave Jiang <djiang@mvista.com>
Signed-off-by: default avatarDoug Thompson <norsk5@xmission.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andi Kleen <ak@suse.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 27b0b2f4
...@@ -556,17 +556,17 @@ static void e752x_check_sysbus(struct e752x_error_info *info, ...@@ -556,17 +556,17 @@ static void e752x_check_sysbus(struct e752x_error_info *info,
error32 = (stat32 >> 16) & 0x3ff; error32 = (stat32 >> 16) & 0x3ff;
stat32 = stat32 & 0x3ff; stat32 = stat32 & 0x3ff;
if(stat32 & 0x083) if(stat32 & 0x087)
sysbus_error(1, stat32 & 0x083, error_found, handle_error); sysbus_error(1, stat32 & 0x087, error_found, handle_error);
if(stat32 & 0x37c) if(stat32 & 0x378)
sysbus_error(0, stat32 & 0x37c, error_found, handle_error); sysbus_error(0, stat32 & 0x378, error_found, handle_error);
if(error32 & 0x083) if(error32 & 0x087)
sysbus_error(1, error32 & 0x083, error_found, handle_error); sysbus_error(1, error32 & 0x087, error_found, handle_error);
if(error32 & 0x37c) if(error32 & 0x378)
sysbus_error(0, error32 & 0x37c, error_found, handle_error); sysbus_error(0, error32 & 0x378, error_found, handle_error);
} }
static void e752x_check_membuf (struct e752x_error_info *info, static void e752x_check_membuf (struct e752x_error_info *info,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment