Skip to content

RFC x86/ras: Move AMD MCE injection module to arch/x86/

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4RAS: Add a menuconfig option with descriptive textdrivers/ras/Kconfig+32 -20 replies
2/4x86/mce: Rename rcu_dereference_check_mce() to mce_log_get_idx_check()arch/x86/kernel/cpu/mcheck/mce.c+4 -41 reply
3/4x86/mce: Add a wrapper around mce_log() for injectionarch/x86/kernel/cpu/mcheck/mce-internal.h arch/x86/kernel/cpu/mcheck/mce.c+9 -00 replies
4/4x86/ras: Move AMD MCE injector to arch/x86/ras/arch/x86/Makefile arch/x86/ras/Kconfig arch/x86/ras/Makefile +4 more+21 -140 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchPaul E. McKenney
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/4] x86/ras: Move AMD MCE injection module to arch/x86/

From: Borislav Petkov <[email protected]>

Hi all,

so this has been on my mind for a while now and the recent pull request sdebacle imply accelerated it. The advantage of moving it closer to MCE code is that improvements/additions to the MCE code can automatically get injection functionality added for testing.

With that in place, injection of threshold and deferred errors will get added.

Still RFC as there's more RAS stuff pending review currently.

Thanks.

Borislav Petkov (4):
RAS: Add a menuconfig option with descriptive text x86/mce: Rename rcu_dereference_check_mce() to mce_log_get_idx_check() x86/mce: Add a wrapper around mce_log() for injection x86/ras: Move AMD MCE injector to arch/x86/ras/

 arch/x86/Makefile                            |  2 ++
 arch/x86/kernel/cpu/mcheck/mce-internal.h    |  2 ++
 arch/x86/kernel/cpu/mcheck/mce.c             | 15 ++++++++---
 arch/x86/ras/Kconfig                         | 11 +++++++++
 arch/x86/ras/Makefile                        |  2 ++
 {drivers/edac => arch/x86/ras}/mce_amd_inj.c |  6 ++---
 drivers/edac/Kconfig                         | 10 --------
 drivers/edac/Makefile                        |  1 -
 drivers/ras/Kconfig                          | 37 ++++++++++++++++++++++++++--
 9 files changed, 66 insertions(+), 20 deletions(-)
 create mode 100644 arch/x86/ras/Kconfig
 create mode 100644 arch/x86/ras/Makefile
 rename {drivers/edac => arch/x86/ras}/mce_amd_inj.c (98%)
Signature · 1 line
2.5.0.rc2.28.g6003e7f