firmware, DMI: Add function to look up a handle and return DIMM size
authorTony Luck <tony.luck@intel.com>
Mon, 12 Mar 2018 18:24:29 +0000 (11:24 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 14 Mar 2018 11:49:53 +0000 (12:49 +0100)
commit6deae96b42eb1fa84938088087de0bd748f53093
tree99e1f531833a9d88655196e02d24e320788085b5
parent23222f8f8dce6a6d014bc5b7107a83ebe2a9c022
firmware, DMI: Add function to look up a handle and return DIMM size

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.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Aristeu Rozanski <aris@redhat.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: linux-acpi@vger.kernel.org
Cc: linux-nvdimm@lists.01.org
Link: http://lkml.kernel.org/r/20180312182430.10335-5-tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/firmware/dmi_scan.c
include/linux/dmi.h