Skip to content

RFC marry mcheck to EDAC

Borislav Petkov lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest20 patches 0 repliesNew
  2. v1 RFC14 patches 21 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20topology: introduce cpu_node information for multi-node processorsdrivers/base/topology.c include/linux/topology.h+19 -00 replies
2/20x86: provide CPU topology information for multi-node processorsarch/x86/include/asm/processor.h arch/x86/include/asm/smp.h arch/x86/include/asm/topology.h +3 more+29 -40 replies
3/20x86: add cpu_node topology detection for AMD Magny-Coursarch/x86/include/asm/cpufeature.h arch/x86/kernel/cpu/amd.c+59 -10 replies
4/20x86: cacheinfo: fixup L3 cache information for AMD Magny-Coursarch/x86/kernel/cpu/intel_cacheinfo.c+14 -60 replies
5/20x86: mcheck: make use of cpu_node_mask instead of cpu_core_mask to support multi-node processorsarch/x86/kernel/cpu/mcheck/mce_amd.c+3 -30 replies
6/20EDAC: move MCE error descriptions to EDAC coredrivers/edac/Makefile drivers/edac/amd64_edac.c drivers/edac/amd64_edac.h +3 more+214 -2400 replies
7/20EDAC: beef up ErrorCodeExt error signaturesdrivers/edac/edac_mce_amd.c+37 -340 replies
8/20amd64_edac: cleanup amd64_process_error_infodrivers/edac/amd64_edac.c drivers/edac/amd64_edac.h+25 -290 replies
9/20amd64_edac: cleanup/complete NB MCE decodingdrivers/edac/amd64_edac.c drivers/edac/amd64_edac.h drivers/edac/amd64_edac_dbg.c +1 more+56 -990 replies
10/20amd64_edac: remove memory and GART TLB error decodersdrivers/edac/amd64_edac.c+7 -290 replies
11/20amd64_edac: cleanup amd64_decode_bus_errordrivers/edac/amd64_edac.c+9 -260 replies
12/20x86, mce: pass mce info to EDAC for decodingarch/x86/kernel/cpu/mcheck/mce.c drivers/edac/amd64_edac.c drivers/edac/amd64_edac.h +3 more+170 -1110 replies
13/20EDAC, AMD: carve out MCi_STATUS decodingdrivers/edac/amd64_edac.c drivers/edac/edac_mce_amd.c drivers/edac/edac_mce_amd.h+32 -330 replies
14/20EDAC, AMD: carve out decoding of MCi_STATUS ErrorCodedrivers/edac/amd64_edac.c drivers/edac/edac_mce_amd.c+22 -190 replies
15/20EDAC, AMD: decode data cache MCEsdrivers/edac/edac_mce_amd.c+54 -20 replies
16/20EDAC, AMD: decode instruction cache MCEsdrivers/edac/edac_mce_amd.c+61 -00 replies
17/20EDAC, AMD: decode bus unit MCEsdrivers/edac/edac_mce_amd.c+46 -00 replies
18/20EDAC, AMD: decode load store MCEsdrivers/edac/edac_mce_amd.c+25 -00 replies
19/20EDAC, AMD: decode FR MCEsdrivers/edac/edac_mce_amd.c+13 -00 replies
20/20x86, mce: do not compile mcelog message on AMDarch/x86/kernel/cpu/mcheck/mce.c+4 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC PATCH 0/20 v2] marry mcheck to EDAC

Hi,

this is the second version of the mcheck/EDAC marriage patches. Changes from the first version include:

* MCE decoding has moved into the EDAC core and is being unconditionally enabled on AMD hardware when EDAC is compiled in.

* The amd64_edac module registers a bus error handler with the EDAC MCE code which does the additional decoding of bank 4 errors (CECC/UECCs) and mapping to DIMMs.

I've also added the topology patches by Andreas for reference here. amd64_edac needs the node id (cpuinfo_x86.cpu_node_id) an MCE has happened on (and thus the respective memory controller) in order to get that node's DRAM configuration before further decoding any error info.

As always, give them a good critical look and let me know of any issues.

 arch/x86/kernel/cpu/mcheck/mce.c    |   12 +-
 drivers/edac/Makefile               |    6 +-
 drivers/edac/amd64_edac.c           |  324 +++++++++-------------------
 drivers/edac/amd64_edac.h           |   71 +------
 drivers/edac/amd64_edac_dbg.c       |    2 +-
 drivers/edac/amd64_edac_err_types.c |  161 --------------
 drivers/edac/edac_mce_amd.c         |  412 +++++++++++++++++++++++++++++++++++
 drivers/edac/edac_mce_amd.h         |   68 ++++++
 8 files changed, 604 insertions(+), 452 deletions(-)
Signature · 2 lines
Thanks,
  Boris.