Skip to content

RAS: Merge mce_amd_inj into mce-inject

Borislav Petkov linux-edac lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/mce: Merge mce_amd_inj into mce-injectarch/x86/Kconfig arch/x86/Makefile arch/x86/include/asm/processor.h +4 more+531 -5230 replies
2/4x86/mce: Get rid of register_mce_write_callback()arch/x86/include/asm/mce.h arch/x86/kernel/cpu/mcheck/dev-mcelog.c arch/x86/kernel/cpu/mcheck/mce-inject.c +1 more+61 -620 replies
3/4x86/mce: Cleanup include filesarch/x86/kernel/cpu/mcheck/mce-inject.c+0 -100 replies
4/4x86/mce/mce-inject: Preset the MCE injection structarch/x86/kernel/cpu/mcheck/mce-inject.c+9 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYazen Ghannam
SeriesA-b
1/4
2/4
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 [PATCH 0/4] RAS: Merge mce_amd_inj into mce-inject

From: Borislav Petkov <[email protected]>

Hi,

so there's no need to have two different injectors. Also, the mce_amd_inj interface is much more user-friendly because you can simply write full u64 registers directly.

So merge that functionality into mce-inject. The old /dev/mcelog functionality is still there, behind X86_MCELOG_LEGACY.

Also, the second patch removes register_mce_write_callback() and adds an MCE injector notifier which allows us to have mce-inject be a module and thus be able to modprobe it and remove it on a production system in case we want to do some injecting there.

Later, we might reuse that injector notifier for other stuff if it is deemed interesting.

Borislav Petkov (4):
x86/mce: Merge mce_amd_inj into mce-inject x86/mce: Get rid of register_mce_write_callback() x86/mce: Cleanup include files x86/mce/mce-inject: Preset the MCE injection struct

 arch/x86/Kconfig                          |   2 +-
 arch/x86/Makefile                         |   2 -
 arch/x86/include/asm/mce.h                |   4 -
 arch/x86/include/asm/processor.h          |   5 +
 arch/x86/kernel/cpu/mcheck/dev-mcelog.c   |  47 ++-
 arch/x86/kernel/cpu/mcheck/mce-inject.c   | 567 +++++++++++++++++++++++++++---
 arch/x86/kernel/cpu/mcheck/mce-internal.h |   6 +-
 arch/x86/ras/Kconfig                      |  11 -
 arch/x86/ras/Makefile                     |   2 -
 arch/x86/ras/mce_amd_inj.c                | 492 --------------------------
 10 files changed, 572 insertions(+), 566 deletions(-)
 delete mode 100644 arch/x86/ras/Makefile
 delete mode 100644 arch/x86/ras/mce_amd_inj.c
Signature · 1 line
2.13.0