Skip to content

EDAC: Convert ghes_edac to a normal module

Borislav Petkov linux-edac lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3EDAC: Add edac_pr_err/info macrosdrivers/edac/edac_mc.h+3 -00 replies
2/3ACPI/GHES: Add an EDAC notifier chaindrivers/acpi/apei/ghes.c include/acpi/ghes.h+16 -00 replies
3/3EDAC, ghes: Make it a proper moduledrivers/acpi/apei/ghes.c drivers/edac/Kconfig drivers/edac/ghes_edac.c +1 more+74 -10215 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/3] EDAC: Convert ghes_edac to a normal module

From: Borislav Petkov <[email protected]>

Hi,

here's the conversion of ghes_edac to a proper module using a notifier. This is only the bare minimum stuff and we should do all outstanding work ontop. Which right now is:

* platform whitelist

* Tony: "Additional cleanup: edac_ghes.c should really call cper_mem_err_location() instead of doing pretty much the same thing but with subtle formatting differences ("node:%d" vs. "node: %d")."

Yes, I think we should take a look at doing that eventually as a sensible cleanup.

* Tony: "This driver isn't going to set the EDAC error counts since it just does:

        e->top_layer = -1;
        e->mid_layer = -1;
        e->low_layer = -1;

"

Right, that we should address by making layer 0 EDAC_MC_LAYER_SLOT and no other layers as we can't get any channel, branch or whatever DIMM topology from GHES. At least I'm not aware of any.

But that should be enough as this info is good enough for pinpointing the DIMM. From our discussion with Tony:

Quoted 7 lines
Quoted 4 lines

The FRU identifier is:

"The module number of the memory error location. (NODE, CARD, and MODULE should provide the information necessary to identify the failing FRU)."

Sounds pretty good. Generally people don't care about the channel. They want to know which DIMM to replace. This will give them what they want.

Thanks.

Borislav Petkov (3):
EDAC: Add edac_pr_err/info macros
ACPI/GHES: Add an EDAC notifier chain
EDAC, ghes: Make it a proper module

 drivers/acpi/apei/ghes.c |  32 +++++++-----
 drivers/edac/Kconfig     |   4 +-
 drivers/edac/edac_mc.h   |   3 ++
 drivers/edac/ghes_edac.c | 129 ++++++++++++++++++++++++-----------------------
 include/acpi/ghes.h      |  27 +---------
 5 files changed, 93 insertions(+), 102 deletions(-)
Signature · 1 line
2.14.0.rc0