From 94156675847c14a9b16e91b035da32e35e98ef79 Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Thu, 31 Jul 2014 14:00:03 +0100 Subject: [PATCH] Revert "arm64: dmi: Add SMBIOS/DMI support" This reverts commit a28e3f4b90543f7c249a956e3ca518e243a04618. Ard and Yi Li report that this patch is broken by design, so revert it and let them sort it out for 3.18 instead. Reported-by: Ard Biesheuvel Signed-off-by: Will Deacon --- arch/arm64/Kconfig | 11 ---------- arch/arm64/include/asm/dmi.h | 41 ------------------------------------ arch/arm64/kernel/setup.c | 2 -- 3 files changed, 54 deletions(-) delete mode 100644 arch/arm64/include/asm/dmi.h diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index bfd60fa9d6d5..4fb4652495dd 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -360,17 +360,6 @@ config EFI allow the kernel to be booted as an EFI application. This is only useful on systems that have UEFI firmware. -config DMI - bool "Enable support for SMBIOS (DMI) tables" - depends on EFI - default y - help - This enables SMBIOS/DMI feature for systems. - - This option is only useful on systems that have UEFI firmware. - However, even with this option, the resultant kernel should - continue to boot on existing non-UEFI platforms. - endmenu menu "Userspace binary formats" diff --git a/arch/arm64/include/asm/dmi.h b/arch/arm64/include/asm/dmi.h deleted file mode 100644 index b0882a8620e1..000000000000 --- a/arch/arm64/include/asm/dmi.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * arch/arm64/include/asm/dmi.h - * - * Copyright (C) 2013 Linaro Limited. - * Written by: Yi Li (yi.li@linaro.org) - * - * based on arch/ia64/include/asm/dmi.h - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - */ - -#ifndef __ASM_DMI_H -#define __ASM_DMI_H - -#include -#include - -static inline void __iomem *dmi_remap(u64 phys, u64 size) -{ - void __iomem *p = efi_lookup_mapped_addr(phys); - - /* - * If the mapping spans multiple pages, do a minimal check to ensure - * that the mapping returned by efi_lookup_mapped_addr() covers the - * whole requested range (but ignore potential holes) - */ - if ((phys & ~PAGE_MASK) + size > PAGE_SIZE - && (p + size - 1) != efi_lookup_mapped_addr(phys + size - 1)) - return NULL; - return p; -} - -/* Reuse existing UEFI mappings for DMI */ -#define dmi_alloc(l) kzalloc(l, GFP_KERNEL) -#define dmi_early_remap(x, l) dmi_remap(x, l) -#define dmi_early_unmap(x, l) -#define dmi_unmap(x) - -#endif diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 35339a0e1592..f6f0ccf35ae6 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include @@ -414,7 +413,6 @@ void __init setup_arch(char **cmdline_p) static int __init arm64_device_init(void) { of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - dmi_scan_machine(); return 0; } arch_initcall_sync(arm64_device_init); -- 2.20.1