Skip to content

EDAC/ghes: Cleanup, rework and improvement of memory reporting

Robert Richter linux-edac lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11EDAC/mc: Use int type for parameters of edac_mc_alloc()drivers/edac/edac_mc.c drivers/edac/edac_mc.h+6 -71 reply
2/11EDAC/ghes: Setup DIMM label from DMI and use it in error reportsdrivers/edac/ghes_edac.c+28 -160 replies
3/11EDAC/ghes: Remove local variable rdr_mask in ghes_edac_dmidecode()drivers/edac/ghes_edac.c+2 -21 reply
4/11EDAC/ghes: Remove unused members of struct ghes_edac_pvt, rename it to ghes_mcidrivers/edac/ghes_edac.c+5 -80 replies
5/11EDAC/ghes: Cleanup struct ghes_edac_dimm_fill, rename it to ghes_dimm_filldrivers/edac/ghes_edac.c+12 -121 reply
6/11EDAC/ghes: Carve out MC device handling into separate functionsdrivers/edac/ghes_edac.c+79 -542 replies
7/11EDAC/ghes: Have a separate code path for creating the fake MCdrivers/edac/ghes_edac.c+40 -250 replies
8/11EDAC/ghes: Carve out code into ghes_edac_register_{one,fake}()drivers/edac/ghes_edac.c+40 -320 replies
9/11EDAC/ghes: Implement DIMM mapping table for SMBIOS handlesdrivers/edac/ghes_edac.c include/linux/edac.h+136 -381 reply
10/11EDAC/ghes: Create an own device for each mcidrivers/edac/ghes_edac.c+23 -31 reply
11/11EDAC/ghes: Create one memory controller per physical memory arraydrivers/edac/ghes_edac.c+107 -307 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAristeu RozanskiMatthias Brugger
SeriesA-b
1/11R-b
2/11
3/11R-b
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

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 00/11] EDAC/ghes: Cleanup, rework and improvement of memory reporting

This series contains a significant cleanup and rework of the ghes driver and improves the memory reporting as follows:

* fix of DIMM label in error reports (patch #2),

* creation of multiple memory controllers to group DIMMs depending on the physical memory array (patches #9-#11). This should reflect the memory topology of a system in sysfs. Esp. multi-node systems show up with one memory controller per node now.

The changes base on the remaining patches that are a general cleanup and rework:

* small change to edac_mc, not really dependent on the rest of the series (patch #1),

* general cleanup and rework of the ghes driver (patches #3-#8).

The implementation of multiple memory controllers bases on the suggestion from James (see patch #11), thank you James for your valuable input here. The patches are created newly from scratch and obsolete the GHES part of my previous postings a while ago that have not been accepted upstream:

https://lore.kernel.org/patchwork/cover/1093488/

Tested on a Marvell/Cavium ThunderX2 Sabre (dual socket) system.

Robert Richter (11):
EDAC/mc: Use int type for parameters of edac_mc_alloc() EDAC/ghes: Setup DIMM label from DMI and use it in error reports EDAC/ghes: Remove local variable rdr_mask in ghes_edac_dmidecode() EDAC/ghes: Remove unused members of struct ghes_edac_pvt, rename it to
ghes_mci
EDAC/ghes: Cleanup struct ghes_edac_dimm_fill, rename it to
ghes_dimm_fill
EDAC/ghes: Carve out MC device handling into separate functions EDAC/ghes: Have a separate code path for creating the fake MC EDAC/ghes: Carve out code into ghes_edac_register_{one,fake}() EDAC/ghes: Implement DIMM mapping table for SMBIOS handles EDAC/ghes: Create an own device for each mci
EDAC/ghes: Create one memory controller per physical memory array

 drivers/edac/edac_mc.c   |   7 +-
 drivers/edac/edac_mc.h   |   6 +-
 drivers/edac/ghes_edac.c | 514 +++++++++++++++++++++++++++++----------
 include/linux/edac.h     |   2 -
 4 files changed, 390 insertions(+), 139 deletions(-)
Signature · 1 line
2.20.1