aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mce_amd.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-09-02 12:33:24 -0400
committerBorislav Petkov <bp@amd64.org>2010-10-21 08:47:59 -0400
commit9cdeb404a1870c5022915e576dbdc3cde21af5bf (patch)
tree19843bf914f56f362a7c9cdf86c27a648caa475c /drivers/edac/edac_mce_amd.h
parent30e1f7a8122145f44f45c95366e27b6bb0b08428 (diff)
EDAC, MCE: Rework MCE injection
Add sysfs injection facilities for testing of the MCE decoding code. Remove large parts of amd64_edac_dbg.c, as a result, which did only NB MCE injection anyway and the new injection code supports that functionality already. Add an injection module so that MCE decoding code in production kernels like those in RHEL and SLES can be tested. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/edac_mce_amd.h')
-rw-r--r--drivers/edac/edac_mce_amd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/edac/edac_mce_amd.h b/drivers/edac/edac_mce_amd.h
index 0fba0e76c25f..2712a906afdf 100644
--- a/drivers/edac/edac_mce_amd.h
+++ b/drivers/edac/edac_mce_amd.h
@@ -1,6 +1,8 @@
1#ifndef _EDAC_MCE_AMD_H 1#ifndef _EDAC_MCE_AMD_H
2#define _EDAC_MCE_AMD_H 2#define _EDAC_MCE_AMD_H
3 3
4#include <linux/notifier.h>
5
4#include <asm/mce.h> 6#include <asm/mce.h>
5 7
6#define ERROR_CODE(x) ((x) & 0xffff) 8#define ERROR_CODE(x) ((x) & 0xffff)
@@ -61,10 +63,10 @@ struct err_regs {
61 u32 nbeal; 63 u32 nbeal;
62}; 64};
63 65
64
65void amd_report_gart_errors(bool); 66void amd_report_gart_errors(bool);
66void amd_register_ecc_decoder(void (*f)(int, struct mce *, u32)); 67void amd_register_ecc_decoder(void (*f)(int, struct mce *, u32));
67void amd_unregister_ecc_decoder(void (*f)(int, struct mce *, u32)); 68void amd_unregister_ecc_decoder(void (*f)(int, struct mce *, u32));
68void amd_decode_nb_mce(int, struct mce *, u32); 69void amd_decode_nb_mce(int, struct mce *, u32);
70int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data);
69 71
70#endif /* _EDAC_MCE_AMD_H */ 72#endif /* _EDAC_MCE_AMD_H */