Skip to content

x86/mce/amd: Fix some CPU hotplug insanity

Borislav Petkov linux-edac lkml 1 version Applied

Status from this message: The following commit has been merged into the ras/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7x86/mce/amd: Do proper cleanup on error pathsarch/x86/kernel/cpu/mce/amd.c+8 -70 replies
2/7x86/mce/amd: Init thresholding machinery only on relevant vendorsarch/x86/kernel/cpu/mce/amd.c arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/cpu/mce/internal.h+17 -50 replies
3/7x86/mce/amd: Protect a not-fully initialized bank from the thresholding interruptarch/x86/kernel/cpu/mce/amd.c+17 -20 replies
4/7x86/mce/amd: Sanitize thresholding device creation hotplug patharch/x86/kernel/cpu/mce/amd.c arch/x86/kernel/cpu/mce/core.c+27 -410 replies
5/7x86/mce/amd: Straighten CPU hotplug patharch/x86/kernel/cpu/mce/amd.c+15 -170 replies
6/7x86/mce/amd: Cleanup threshold device remove patharch/x86/include/asm/amd_nb.h arch/x86/kernel/cpu/mce/amd.c+38 -420 replies
7/7x86/mce/amd: Make threshold bank setting hotplug robustarch/x86/kernel/cpu/mce/amd.c+11 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] x86/mce/amd: Fix some CPU hotplug insanity

From: Borislav Petkov <[email protected]>

Hi,

so tglx found a couple of issues while we were talking about something else and threw a couple of fixes over the wall, my way. Here's the productized and tested result.

Thx.

Thomas Gleixner (7):
x86/mce/amd: Do proper cleanup on error paths x86/mce/amd: Init thresholding machinery only on relevant vendors x86/mce/amd: Protect a not-fully initialized bank from the
thresholding interrupt
x86/mce/amd: Sanitize thresholding device creation hotplug path x86/mce/amd: Straighten CPU hotplug path
x86/mce/amd: Cleanup threshold device remove path x86/mce/amd: Make threshold bank setting hotplug robust

 arch/x86/include/asm/amd_nb.h      |   1 +
 arch/x86/kernel/cpu/mce/amd.c      | 224 ++++++++++++++---------------
 arch/x86/kernel/cpu/mce/core.c     |  12 ++
 arch/x86/kernel/cpu/mce/internal.h |   9 +-
 4 files changed, 131 insertions(+), 115 deletions(-)
Signature · 1 line
2.21.0