Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1276119
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/4] x86/mce: Add the missing memory error check on AMD |
| Date | 2015-11-24 08:50 +0100 |
| Message-ID | <qygwq-58x-19@gated-at.bofh.it> (permalink) |
| References | <qygwq-58x-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Borislav Petkov <bp@suse.de>
We simply need to look at the extended error code when detecting whether
the error is of type memory.
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Tony Luck <tony.luck@intel.com>
---
arch/x86/kernel/cpu/mcheck/mce.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index fb8b1db7b150..e00e85ab7387 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -522,10 +522,10 @@ static bool memory_error(struct mce *m)
struct cpuinfo_x86 *c = &boot_cpu_data;
if (c->x86_vendor == X86_VENDOR_AMD) {
- /*
- * coming soon
- */
- return false;
+ /* ErrCodeExt[20:16] */
+ u8 xec = (m->status >> 16) & 0x1f;
+
+ return (xec == 0x0 || xec == 0x8);
} else if (c->x86_vendor == X86_VENDOR_INTEL) {
/*
* Intel SDM Volume 3B - 15.9.2 Compound Error Codes
--
2.3.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] RAS stuff for tip:x86/ras Borislav Petkov <bp@alien8.de> - 2015-11-24 08:50 +0100
[PATCH 1/4] x86/mce: Do not enter deferred errors into the generic pool twice Borislav Petkov <bp@alien8.de> - 2015-11-24 08:50 +0100
[tip:ras/core] x86/mce: Do not enter deferred errors into the generic pool twice tip-bot for Tony Luck <tipbot@zytor.com> - 2015-11-24 10:40 +0100
[PATCH 3/4] x86/mce: Add the missing memory error check on AMD Borislav Petkov <bp@alien8.de> - 2015-11-24 08:50 +0100
[tip:ras/core] x86/mce: Add the missing memory error check on AMD tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-11-24 11:00 +0100
[PATCH 2/4] x86/RAS: Remove mce.usable_addr Borislav Petkov <bp@alien8.de> - 2015-11-24 08:50 +0100
[tip:ras/core] x86/RAS: Remove mce.usable_addr tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-11-24 10:40 +0100
csiph-web