Skip to content

Commit f65ac45

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp: x86, mce: do not compile mcelog message on AMD EDAC, AMD: decode FR MCEs EDAC, AMD: decode load store MCEs EDAC, AMD: decode bus unit MCEs EDAC, AMD: decode instruction cache MCEs EDAC, AMD: decode data cache MCEs EDAC, AMD: carve out decoding of MCi_STATUS ErrorCode EDAC, AMD: carve out MCi_STATUS decoding x86, mce: pass mce info to EDAC for decoding amd64_edac: cleanup amd64_decode_bus_error amd64_edac: remove memory and GART TLB error decoders amd64_edac: cleanup/complete NB MCE decoding amd64_edac: cleanup amd64_process_error_info EDAC: beef up ErrorCodeExt error signatures EDAC: move MCE error descriptions to EDAC core
2 parents 4142e0d + 22223c9 commit f65ac45

8 files changed

Lines changed: 619 additions & 452 deletions

File tree

‎arch/x86/kernel/cpu/mcheck/mce.c‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ void mce_log(struct mce *mce)
183183
set_bit(0, &mce_need_notify);
184184
}
185185

186+
void __weak decode_mce(struct mce *m)
187+
{
188+
return;
189+
}
190+
186191
static void print_mce(struct mce *m)
187192
{
188193
printk(KERN_EMERG
@@ -205,6 +210,8 @@ static void print_mce(struct mce *m)
205210
printk(KERN_EMERG "PROCESSOR %u:%x TIME %llu SOCKET %u APIC %x\n",
206211
m->cpuvendor, m->cpuid, m->time, m->socketid,
207212
m->apicid);
213+
214+
decode_mce(m);
208215
}
209216

210217
static void print_mce_head(void)
@@ -215,7 +222,10 @@ static void print_mce_head(void)
215222
static void print_mce_tail(void)
216223
{
217224
printk(KERN_EMERG "This is not a software problem!\n"
218-
"Run through mcelog --ascii to decode and contact your hardware vendor\n");
225+
#if (!defined(CONFIG_EDAC) || !defined(CONFIG_CPU_SUP_AMD))
226+
"Run through mcelog --ascii to decode and contact your hardware vendor\n"
227+
#endif
228+
);
219229
}
220230

221231
#define PANIC_TIMEOUT 5 /* 5 seconds */

‎drivers/edac/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ ifdef CONFIG_PCI
1717
edac_core-objs += edac_pci.o edac_pci_sysfs.o
1818
endif
1919

20+
ifdef CONFIG_CPU_SUP_AMD
21+
edac_core-objs += edac_mce_amd.o
22+
endif
23+
2024
obj-$(CONFIG_EDAC_AMD76X) += amd76x_edac.o
2125
obj-$(CONFIG_EDAC_CPC925) += cpc925_edac.o
2226
obj-$(CONFIG_EDAC_I5000) += i5000_edac.o
@@ -32,7 +36,7 @@ obj-$(CONFIG_EDAC_X38) += x38_edac.o
3236
obj-$(CONFIG_EDAC_I82860) += i82860_edac.o
3337
obj-$(CONFIG_EDAC_R82600) += r82600_edac.o
3438

35-
amd64_edac_mod-y := amd64_edac_err_types.o amd64_edac.o
39+
amd64_edac_mod-y := amd64_edac.o
3640
amd64_edac_mod-$(CONFIG_EDAC_DEBUG) += amd64_edac_dbg.o
3741
amd64_edac_mod-$(CONFIG_EDAC_AMD64_ERROR_INJECTION) += amd64_edac_inj.o
3842

0 commit comments

Comments
 (0)