Some utils, like dmidecode and smbios, needs to access SMBIOS entry table area in order to get information like SMBIOS version, size, etc. Currently it's done via /dev/mem. But for situation when /dev/mem usage is disabled, the utils have to use dmi sysfs instead, which doesn't represent SMBIOS entry. So this patch series adds SMBIOS area to dmi sysfs in order to allow utils in question to work correctly with dmi sysfs.
v1: http://lists.linaro.org/pipermail/linaro-uefi/2015-January/000671.html
v2..v1: firmware: dmi_scan: add symbol to get SMBIOS entry area - used static array instead of remapping base address - removed extern attribute in header
firmware: dmi-sysfs: add SMBIOS entry point area attribute - got SMBIOS table and it's size at init time - moved smbios raw attribute creation after dmi_scan. - read internal array to get SMBIOS table in read funcion - renamed attribute to "smbios_raw_header" instead of smbios_raw
Ivan Khoronzhuk (2): firmware: dmi_scan: add symbol to get SMBIOS entry area firmware: dmi-sysfs: add SMBIOS entry point area attribute
drivers/firmware/dmi-sysfs.c | 42 ++++++++++++++++++++++++++++++++++++++++++ drivers/firmware/dmi_scan.c | 34 ++++++++++++++++++++++++++++++++++ include/linux/dmi.h | 2 ++ 3 files changed, 78 insertions(+)