提交 c66b5a79 编写于 作者: M Mauro Carvalho Chehab

edac: add a new memory layer type

There are some cases where the memory controller layout is
completely hidden. This is the case of firmware-driven error
code, like the one provided by GHES. Add a new layer to be
used on such memory error report mechanisms.
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 4ab19b06
...@@ -900,6 +900,7 @@ const char *edac_layer_name[] = { ...@@ -900,6 +900,7 @@ const char *edac_layer_name[] = {
[EDAC_MC_LAYER_CHANNEL] = "channel", [EDAC_MC_LAYER_CHANNEL] = "channel",
[EDAC_MC_LAYER_SLOT] = "slot", [EDAC_MC_LAYER_SLOT] = "slot",
[EDAC_MC_LAYER_CHIP_SELECT] = "csrow", [EDAC_MC_LAYER_CHIP_SELECT] = "csrow",
[EDAC_MC_LAYER_ALL_MEM] = "memory",
}; };
EXPORT_SYMBOL_GPL(edac_layer_name); EXPORT_SYMBOL_GPL(edac_layer_name);
......
...@@ -375,6 +375,9 @@ enum scrub_type { ...@@ -375,6 +375,9 @@ enum scrub_type {
* @EDAC_MC_LAYER_CHANNEL: memory layer is named "channel" * @EDAC_MC_LAYER_CHANNEL: memory layer is named "channel"
* @EDAC_MC_LAYER_SLOT: memory layer is named "slot" * @EDAC_MC_LAYER_SLOT: memory layer is named "slot"
* @EDAC_MC_LAYER_CHIP_SELECT: memory layer is named "chip select" * @EDAC_MC_LAYER_CHIP_SELECT: memory layer is named "chip select"
* @EDAC_MC_LAYER_ALL_MEM: memory layout is unknown. All memory is mapped
* as a single memory area. This is used when
* retrieving errors from a firmware driven driver.
* *
* This enum is used by the drivers to tell edac_mc_sysfs what name should * This enum is used by the drivers to tell edac_mc_sysfs what name should
* be used when describing a memory stick location. * be used when describing a memory stick location.
...@@ -384,6 +387,7 @@ enum edac_mc_layer_type { ...@@ -384,6 +387,7 @@ enum edac_mc_layer_type {
EDAC_MC_LAYER_CHANNEL, EDAC_MC_LAYER_CHANNEL,
EDAC_MC_LAYER_SLOT, EDAC_MC_LAYER_SLOT,
EDAC_MC_LAYER_CHIP_SELECT, EDAC_MC_LAYER_CHIP_SELECT,
EDAC_MC_LAYER_ALL_MEM,
}; };
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册