acpi, nfit: Add function to look up nvdimm device and provide SMBIOS handle
authorTony Luck <tony.luck@intel.com>
Mon, 12 Mar 2018 18:24:28 +0000 (11:24 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 14 Mar 2018 11:43:50 +0000 (12:43 +0100)
commit23222f8f8dce6a6d014bc5b7107a83ebe2a9c022
treed44949bbc2b3ccb51cb2cf2c815019063255c061
parent001f86137d3fca3c9002beaa7609c666715ebc70
acpi, nfit: Add function to look up nvdimm device and provide SMBIOS handle

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.

Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Aristeu Rozanski <aris@redhat.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Erik Schmauss <erik.schmauss@intel.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Robert Moore <robert.moore@intel.com>
Cc: devel@acpica.org
Cc: linux-acpi@vger.kernel.org
Cc: linux-nvdimm@lists.01.org
Link: http://lkml.kernel.org/r/20180312182430.10335-4-tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/acpi/nfit/core.c
include/acpi/nfit.h [new file with mode: 0644]