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(+)
--
1.9.1
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.
Ivan Khoronzhuk (2):
firmware: dmi_scan: add function to get SMBIOS entry area
firmware: dmi-sysfs: add SMBIOS entry point area attribute
drivers/firmware/dmi-sysfs.c | 35 +++++++++++++++++++++++++++++++++++
drivers/firmware/dmi_scan.c | 43 +++++++++++++++++++++++++++++++++++++++++++
include/linux/dmi.h | 2 ++
3 files changed, 80 insertions(+)
--
1.9.1
These patches correct dmi version print for BE SoCs and include
docrev field of SMBIOS3 to dmi version var.
Ivan Khoronzhuk (2):
firmware: dmi_scan: correct BE dmi version print
firmware: dmi_scan: use full dmi version for SMBIOS3
drivers/firmware/dmi_scan.c | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)
--
1.9.1
There is no reason to translate guid number to string here.
So remove it in order to not do unneeded work.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk(a)linaro.org>
---
drivers/firmware/efi/efi.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 9035c1b..f6be017 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -272,15 +272,10 @@ static __init int match_config_table(efi_guid_t *guid,
unsigned long table,
efi_config_table_type_t *table_types)
{
- u8 str[EFI_VARIABLE_GUID_LEN + 1];
int i;
if (table_types) {
- efi_guid_unparse(guid, str);
-
for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) {
- efi_guid_unparse(&table_types[i].guid, str);
-
if (!efi_guidcmp(*guid, table_types[i].guid)) {
*(table_types[i].ptr) = table;
pr_cont(" %s=0x%lx ",
--
1.9.1
This series adds dmi sysfs support for dmidecode util.
It's needed when access to /dev/mem is forbidden. In this case
to get needed information the dmi sysfs can be used.
The GIT mirror of CVS dmidecode;
https://git.linaro.org/people/ivan.khoronzhuk/dmidecode.git
based on master
Ivan Khoronzhuk (4):
dmidecode: use common function to get SMBIOS version
dmidecode: use common function to put SMBIOS in dumpfile
dmidecode: move memory map function from dmi_decode
dmidecode: add dmi sysfs support
Makefile | 2 +-
dmidecode.c | 186 ++++++++++++++++++++++++++++++++++++++++--------------------
version.h | 2 +-
3 files changed, 127 insertions(+), 63 deletions(-)
--
1.9.1
* Resending sinces sourceforge drops emails, and some code updates *
The Arm ports support running the IntelBds these days, but still depend
on the ArmPkg BdsLib, and pulls in the LinuxLoader. Break minimal subset
of BdsLib out into a separate library, and fix up some loose ends
causing problems when that happens.
Changes since v1:
- Added support for running Intel on Juno board
- Don't blanket-remove AndroidFastboot support - remove it _and_
LinuxLoader (which is the actual dependency) with another
conditional flag.
- Fix ArmBdsHelperLib to work also for Juno.
Leif Lindholm (5):
ARM: conditionalise inclusion of LinuxLoader/AndroidFastboot
ArmPkg: break out common Bds functions
ArmPkg/ArmPlatformPkg: don't use BdsLib with PlatformIntelBdsLib
ArmVirtualizationPkg: don't use BdsLib with PlatformIntelBdsLib and
INTEL_BDS
ArmPlatformPkg: enable use of IntelBds on Juno
ArmPkg/ArmPkg.dsc | 8 +
ArmPkg/Include/Library/ArmBdsHelperLib.h | 96 ++++
ArmPkg/Library/ArmBdsHelperLib/ArmBdsHelperLib.c | 487 +++++++++++++++++++++
ArmPkg/Library/ArmBdsHelperLib/ArmBdsHelperLib.inf | 45 ++
ArmPkg/Library/BdsLib/BdsFilePath.c | 364 +--------------
ArmPkg/Library/BdsLib/BdsHelper.c | 112 -----
ArmPkg/Library/BdsLib/BdsLib.inf | 1 +
ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc | 19 +
ArmPlatformPkg/ArmJunoPkg/ArmJuno.fdf | 6 +
.../ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf | 2 +-
.../ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c | 2 +-
ArmPlatformPkg/ArmPlatformPkg.dsc | 2 +
ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc | 6 +
.../ArmVirtualizationPkg/ArmVirtualization.dsc.inc | 2 +
.../ArmVirtualizationPkg/ArmVirtualizationQemu.dsc | 1 +
.../PlatformIntelBdsLib/PlatformIntelBdsLib.inf | 2 +-
.../Library/PlatformIntelBdsLib/IntelBdsPlatform.c | 1 +
.../PlatformIntelBdsLib/PlatformIntelBdsLib.inf | 2 +-
EmbeddedPkg/EmbeddedPkg.dsc | 2 +
19 files changed, 681 insertions(+), 479 deletions(-)
create mode 100644 ArmPkg/Include/Library/ArmBdsHelperLib.h
create mode 100644 ArmPkg/Library/ArmBdsHelperLib/ArmBdsHelperLib.c
create mode 100644 ArmPkg/Library/ArmBdsHelperLib/ArmBdsHelperLib.inf
--
2.1.3