Skip to content

Handle corrected machine check interrupt storms

Tony Luck linux-edac linux-patches lkml oe-kbuild-all oe-lkp 9 versions – 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 · linked by author and title

  1. v10 Latest3 patches 2 repliesApplied
  2. v93 patches 17 repliesSuperseded
  3. v83 patches 1 replySuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v73 patches4 repliesSuperseded
v64 patches5 repliesSuperseded
v55 patches2 repliesSuperseded
v45 patches4 repliesSuperseded
v35 patches8 repliesSuperseded
v25 patches1 replySuperseded

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/3x86/mce: Remove old CMCI storm mitigation codearch/x86/kernel/cpu/mce/core.c arch/x86/kernel/cpu/mce/intel.c arch/x86/kernel/cpu/mce/internal.h+1 -1700 replies
2/3x86/mce: Add per-bank CMCI storm mitigationarch/x86/kernel/cpu/mce/core.c arch/x86/kernel/cpu/mce/internal.h arch/x86/kernel/cpu/mce/threshold.c+194 -90 replies
3/3x86/mce: Handle Intel threshold interrupt stormsarch/x86/kernel/cpu/mce/intel.c arch/x86/kernel/cpu/mce/internal.h arch/x86/kernel/cpu/mce/threshold.c+160 -502 replies

Reviews trailers per patch

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

PatchYazen Ghannam
1/3R-b T-b
2/3
3/3

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

Read the v10 thread

Cover letter [PATCH v10 0/3] Handle corrected machine check interrupt storms

Linux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.

There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.

This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.

---
Changes since v9 (based on Boris reviews)

#1 Better commit comment on flow. Added detail that both timer poll
and CMCI feed results of scanning each bank into the history calculation. Also added comment in code where mce_trac_storm() is called.
#2 Set a flag for banks that don't support CMCI so they can be
excluded from history processing
#3 Skip history processing if CMCI globally disabled with boot
argument mce=cmci_disable
#4 Move struct mca_storm_desc definition to internal.h (I had argued
against the need for this, but the new "poll_mode" flag added in change #2 needs to be set in intel.c).
#5 Add #define NUM_HISTORY_BITS instead of hard-coded "64". #6 Rebase to v6.7-rc1

Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms

 arch/x86/kernel/cpu/mce/internal.h  |  66 +++++-
 arch/x86/kernel/cpu/mce/core.c      |  53 +++--
 arch/x86/kernel/cpu/mce/intel.c     | 304 ++++++++++++----------------
 arch/x86/kernel/cpu/mce/threshold.c | 115 +++++++++++
 4 files changed, 332 insertions(+), 206 deletions(-)

base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86

Signature · 1 line
2.41.0