Yi Li | 25 Nov 17:44 2013

[PATCH 0/3] *** Support SMBIOS/DMI on arm32/64 ***

The patches support SMBIOS/DMI on arm system, it tested by dmidecode
and lshw tools.

The first patch is wrapping remap/unmap methond for general archs,
and has been posted for review to x86 and ia64, waiting the ack.
The last two patches depend on booting from UEFI and SMBIOS data 
reported as Runtime Services Data type.

Ard Biesheuvel (1):
  firmware/dmi_scan: generalize for use by other archs

Yi Li (2):
  ARM64:DMI: Add smbios/dmi support on arm64
  ARM32:DMI: Add smbios/dmi support on arm32

 arch/arm/Kconfig             |   13 +++++++++++++
 arch/arm/include/asm/dmi.h   |   28 ++++++++++++++++++++++++++++
 arch/arm/kernel/setup.c      |    2 ++
 arch/arm64/Kconfig           |   10 ++++++++++
 arch/arm64/include/asm/dmi.h |   28 ++++++++++++++++++++++++++++
 arch/arm64/kernel/setup.c    |    2 ++
 arch/ia64/include/asm/dmi.h  |   10 +++++++---
 arch/x86/include/asm/dmi.h   |    8 ++++++--
 drivers/firmware/dmi_scan.c  |   20 +++++++++++---------
 9 files changed, 107 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm/include/asm/dmi.h
 create mode 100644 arch/arm64/include/asm/dmi.h

--

-- 
1.7.9.5
(Continue reading)

Yi Li | 25 Nov 17:44 2013

[PATCH 1/3] firmware/dmi_scan: generalize for use by other archs

From: Ard Biesheuvel <ard.biesheuvel <at> linaro.org>

This patch makes a couple of changes to the SMBIOS/DMI scanning
code so it can be used on other archs (such as ARM and arm64):
(a) wrap the calls to ioremap()/iounmap(), this allows the use of a
    flavor of ioremap() more suitable for random unaligned access;
(b) allow the non-EFI fallback probe into hardcoded physical address
    0xF0000 to be disabled.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel <at> linaro.org>
Signed-off-by: Yi Li <yi.li <at> linaro.org>
---

Based on original patch from Ard, a minor point is fixed
in checkpatch.pl.

 arch/ia64/include/asm/dmi.h |   10 +++++++---
 arch/x86/include/asm/dmi.h  |    8 ++++++--
 drivers/firmware/dmi_scan.c |   20 +++++++++++---------
 3 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/arch/ia64/include/asm/dmi.h b/arch/ia64/include/asm/dmi.h
index 185d3d1..f644b98 100644
--- a/arch/ia64/include/asm/dmi.h
+++ b/arch/ia64/include/asm/dmi.h
 <at>  <at>  -5,8 +5,12  <at>  <at> 
 #include <asm/io.h>

 /* Use normal IO mappings for DMI */
-#define dmi_ioremap ioremap
(Continue reading)

Yi Li | 25 Nov 17:44 2013

[PATCH 2/3] ARM64:DMI: Add smbios/dmi support on arm64

Add smbios/dmi support on arm64 system, it depends on
EFI boot.

Signed-off-by: Yi Li <yi.li <at> linaro.org>
---

efi_lookup_mapped_addr() isn't able to translate the address range
which is reported as reserved type from UEFI. Following the UEFI
spec 2.4, it descripts the SMBIOS data should be runtime service
type. So it depends on a UEFI patch to convert reserved type to 
runtime service type for SMBIOS and a linux dmi driver patch that
has been posted for review to x86 and ia64.

 arch/arm64/Kconfig           |   10 ++++++++++
 arch/arm64/include/asm/dmi.h |   28 ++++++++++++++++++++++++++++
 arch/arm64/kernel/setup.c    |    2 ++
 3 files changed, 40 insertions(+)
 create mode 100644 arch/arm64/include/asm/dmi.h

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index d5aaddf..84204b0 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
 <at>  <at>  -292,6 +292,16  <at>  <at>  config EFI_STUB
 	  by EFI firmware without the use of a bootloader.
 	  See Documentation/efi-stub.txt for more information.

+config DMI
+	bool "Enable support for SMBIOS (DMI) tables"
+	depends on EFI
(Continue reading)

Ard Biesheuvel | 27 Nov 15:03 2013

Re: [PATCH 2/3] ARM64:DMI: Add smbios/dmi support on arm64

On 25 November 2013 17:44, Yi Li <yi.li <at> linaro.org> wrote:
> Add smbios/dmi support on arm64 system, it depends on
> EFI boot.
>
> Signed-off-by: Yi Li <yi.li <at> linaro.org>
> ---
>
> efi_lookup_mapped_addr() isn't able to translate the address range
> which is reported as reserved type from UEFI. Following the UEFI
> spec 2.4, it descripts the SMBIOS data should be runtime service
> type. So it depends on a UEFI patch to convert reserved type to
> runtime service type for SMBIOS and a linux dmi driver patch that
> has been posted for review to x86 and ia64.
>
>  arch/arm64/Kconfig           |   10 ++++++++++
>  arch/arm64/include/asm/dmi.h |   28 ++++++++++++++++++++++++++++
>  arch/arm64/kernel/setup.c    |    2 ++
>  3 files changed, 40 insertions(+)
>  create mode 100644 arch/arm64/include/asm/dmi.h
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index d5aaddf..84204b0 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
>  <at>  <at>  -292,6 +292,16  <at>  <at>  config EFI_STUB
>           by EFI firmware without the use of a bootloader.
>           See Documentation/efi-stub.txt for more information.
>
> +config DMI
> +       bool "Enable support for SMBIOS (DMI) tables"
(Continue reading)

Yi Li | 25 Nov 17:44 2013

[PATCH 3/3] ARM32:DMI: Add smbios/dmi support on arm32

Add smbios/dmi support on arm32 system, it depends on
EFI boot.

Signed-off-by: Yi Li <yi.li <at> linaro.org>
---

efi_lookup_mapped_addr() isn't able to translate the address range
which is reported as reserved type from UEFI. Following the UEFI
spec 2.4, it descripts the SMBIOS data should be runtime service
type. So it depends on a UEFI patch to convert reserved type to 
runtime service type for SMBIOS and a linux dmi driver patch that
has been posted for review to x86 and ia64.

 arch/arm/Kconfig           |   13 +++++++++++++
 arch/arm/include/asm/dmi.h |   28 ++++++++++++++++++++++++++++
 arch/arm/kernel/setup.c    |    2 ++
 3 files changed, 43 insertions(+)
 create mode 100644 arch/arm/include/asm/dmi.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 11367a4..623c8c5 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
 <at>  <at>  -1910,6 +1910,17  <at>  <at>  config EFI_STUB
 	  executed directly by EFI firmware.
 	  See Documentation/efi-stub.txt for more information.

+config DMI
+	bool "Enable support for SMBIOS (DMI) tables"
+	depends on EFI
(Continue reading)


Gmane