[PATCH 2/5] edac: Add new memory type for non-volatile DIMMs

2018-03-12 Thread Tony Luck
There are now non-volatile versions of DIMMs. Add a new entry to "enum mem_type" and a new string in edac_mem_types[]. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/edac_mc.c | 3 ++- include/linux/edac.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletio

[PATCH 5/5] EDAC, skx_edac: Detect non-volatile DIMMs

2018-03-12 Thread Tony Luck
This just covers the topology function of the EDAC driver. We locate which DIMM slots are populated with NVDIMMs and query the NFIT and SMBIOS tables to get the size. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/Kconfig| 5 +++- drivers/edac/skx_edac.

[PATCH 4/5] firmware: dmi: Add function to look up a handle and return DIMM size

2018-02-22 Thread Tony Luck
When we first scan the SMBIOS table, save the size of the DIMM. Provide a function for other code (EDAC driver) to look up the size of a DIMM from its SMBIOS handle. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/firmware/dmi_scan.c | 31 +++ i

[PATCH 2/5] edac: Add new memory type for non-volatile DIMMs

2018-02-22 Thread Tony Luck
There are now non-volatile versions of DIMMs. Add a new entry to "enum mem_type" and a new string in edac_mem_types[]. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/edac_mc.c | 3 ++- include/linux/edac.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletio

[PATCH 3/5] acpi, nfit: Add function to look up nvdimm device and provide SMBIOS handle

2018-02-22 Thread Tony Luck
EDAC driver needs to look up attributes of NVDIMMs provided in SMBIOS. Provide a function that looks up an acpi_nfit_memory_map from a device handle (node/socket/mc/channel/dimm) and returns the SMBIOS handle. Also pass back the "flags" so we can see if the NVDIMM is OK. Signed-off-by:

[PATCH 1/5] EDAC: Drop duplicated array of strings for memory type names

2018-02-22 Thread Tony Luck
may depend on that. Reported-by: Borislav Petkov <b...@suse.de> Acked-by: Borislav Petkov <b...@suse.de> Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/edac_mc.c | 40 drivers/edac/edac_mc_sysfs.c | 26 ++-

[PATCH 5/5] EDAC, skx_edac: Detect non-volatile DIMMs

2018-02-22 Thread Tony Luck
This just covers the topology function of the EDAC driver. We locate which DIMM slots are populated with NVDIMMs and query the NFIT and SMBIOS tables to get the size. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/Kconfig| 5 +++- drivers/edac/skx_edac.

[PATCH 0/5] Teach EDAC about non-volatile DIMMs and add partial support to skx_edac

2018-02-22 Thread Tony Luck
. The "partial support" part is that the changes here only do the detection of the non-volatile DIMMs. Coming later will be another patch/series to teach skx_edac how to decode system addresses to NVDIMM addresses. But this part stands on its own and is a useful first step. Tony Luck (

[RFC PATCH 2/4] firmware: dmi: Add function to look up a handle and return DIMM size

2017-11-30 Thread Tony Luck
When we first scan the SMBIOS table, save the size of the DIMM. Provide a function for other code (EDAC driver) to look up the size of a DIMM from its SMBIOS handle. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/firmware/dmi_scan.c | 29 + include

[RFC PATCH 3/4] edac: Add new memory type for non-volatile DIMMs

2017-11-30 Thread Tony Luck
There are now non-volatile versions of DIMMs. Add a new entry to "enum mem_type" and update places that use it with new strings. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/edac_mc.c | 1 + drivers/edac/edac_mc_sysfs.c | 3 ++- include/linux/edac.h

[RFC PATCH 0/4] Teach EDAC driver about NVDIMMs

2017-11-30 Thread Tony Luck
n 20171110 which has only just made it to Rafael's tree. Some of you may only care about some of the parts that touch code you maintain, but I copied you on all four because you might like to see the bigger picture. Tony Luck (4): acpi, nfit: Add function to look up nvdimm device and prov

[RFC PATCH 4/4] EDAC, skx_edac: Detect non-volatile DIMMs

2017-11-30 Thread Tony Luck
This just covers the topology function of the EDAC driver. We locate which DIMM slots are populated with NVDIMMs and query the NFIT and SMBIOS tables to get the size. Signed-off-by: Tony Luck <tony.l...@intel.com> --- drivers/edac/Kconfig| 2 ++ drivers/edac/skx_edac.

[RFC PATCH 1/4] acpi, nfit: Add function to look up nvdimm device and provide SMBIOS handle

2017-11-30 Thread Tony Luck
EDAC driver needs to look up attributes of NVDIMMs provided in SMBIOS. Provide a function that looks up an acpi_nfit_memory_map from a device handle (node/socket/mc/channel/dimm) and returns the SMBIOS handle. Also pass back the "flags" so we can see if the NVDIMM is OK. Signed-off-by: