-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/ras: Move AMD MCE injector to arch/x86/ras/
This is an x86-specific module and would benefit from being closer to the arch code. Move it there. Update copyright while at it. Signed-off-by: Borislav Petkov <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Tony Luck <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information
1 parent
a79da38
commit 6c36dfe
Showing
7 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
config AMD_MCE_INJ | ||
tristate "Simple MCE injection interface for AMD processors" | ||
depends on RAS && EDAC_DECODE_MCE && DEBUG_FS | ||
default n | ||
help | ||
This is a simple debugfs interface to inject MCEs and test different | ||
aspects of the MCE handling code. | ||
|
||
WARNING: Do not even assume this interface is staying stable! | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
obj-$(CONFIG_AMD_MCE_INJ) += mce_amd_inj.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* This file may be distributed under the terms of the GNU General Public | ||
* License version 2. | ||
* | ||
* Copyright (c) 2010-14: Borislav Petkov <[email protected]> | ||
* Copyright (c) 2010-15: Borislav Petkov <[email protected]> | ||
* Advanced Micro Devices Inc. | ||
*/ | ||
|
||
|
@@ -19,7 +19,7 @@ | |
#include <linux/uaccess.h> | ||
#include <asm/mce.h> | ||
|
||
#include "mce_amd.h" | ||
#include "../kernel/cpu/mcheck/mce-internal.h" | ||
|
||
/* | ||
* Collect all the MCi_XXX settings | ||
|
@@ -195,7 +195,7 @@ static void do_inject(void) | |
i_mce.status |= MCI_STATUS_MISCV; | ||
|
||
if (inj_type == SW_INJ) { | ||
amd_decode_mce(NULL, 0, &i_mce); | ||
mce_inject_log(&i_mce); | ||
return; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,7 @@ menuconfig RAS | |
data corruption. | ||
|
||
if RAS | ||
|
||
source arch/x86/ras/Kconfig | ||
|
||
endif |