]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: dmi_scan: add SBMIOS entry and DMI tables
authorIvan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
Thu, 25 Jun 2015 07:06:56 +0000 (09:06 +0200)
committerDan Duval <dan.duval@oracle.com>
Wed, 1 Nov 2017 21:56:26 +0000 (17:56 -0400)
commit8d9871d1a9670c7495a95643d4068febd41ea91d
treeaea20a37ca079c8ea3f9eeb11a330724edc34a65
parente10b5e3d5659105da2c0f0c5cb7bda5458f9bbb8
firmware: dmi_scan: add SBMIOS entry and DMI tables

Orabug: 27023745

Some utils, like dmidecode and smbios, need 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 and adds code/delay redundancy when direct
access for table is needed.

So this patch creates dmi/tables and adds SMBIOS entry point to allow
utils in question to work correctly without /dev/mem. Also patch adds
raw dmi table to simplify dmi table processing in user space, as
proposed by Jean Delvare.

Tested-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
(cherry picked from commit d7f96f97c4031fa4ffdb7801f9aae23e96170a6f)
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
Conflict:

MAINTAINERS
Documentation/ABI/testing/sysfs-firmware-dmi-tables [new file with mode: 0644]
MAINTAINERS
drivers/firmware/dmi-sysfs.c
drivers/firmware/dmi_scan.c
include/linux/dmi.h