aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-07-31 09:00:03 -0400
committerWill Deacon <will.deacon@arm.com>2014-07-31 09:00:03 -0400
commit94156675847c14a9b16e91b035da32e35e98ef79 (patch)
treeb25d54657b0281f36b6585e9d52b9ab063e8405f /arch/arm64
parente4aa297a490e16c44dc464361daab145a7c451c5 (diff)
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 <ard.biesheuvel@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/Kconfig11
-rw-r--r--arch/arm64/include/asm/dmi.h41
-rw-r--r--arch/arm64/kernel/setup.c2
3 files changed, 0 insertions, 54 deletions
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
360 allow the kernel to be booted as an EFI application. This 360 allow the kernel to be booted as an EFI application. This
361 is only useful on systems that have UEFI firmware. 361 is only useful on systems that have UEFI firmware.
362 362
363config DMI
364 bool "Enable support for SMBIOS (DMI) tables"
365 depends on EFI
366 default y
367 help
368 This enables SMBIOS/DMI feature for systems.
369
370 This option is only useful on systems that have UEFI firmware.
371 However, even with this option, the resultant kernel should
372 continue to boot on existing non-UEFI platforms.
373
374endmenu 363endmenu
375 364
376menu "Userspace binary formats" 365menu "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 @@
1/*
2 * arch/arm64/include/asm/dmi.h
3 *
4 * Copyright (C) 2013 Linaro Limited.
5 * Written by: Yi Li (yi.li@linaro.org)
6 *
7 * based on arch/ia64/include/asm/dmi.h
8 *
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
11 * for more details.
12 */
13
14#ifndef __ASM_DMI_H
15#define __ASM_DMI_H
16
17#include <linux/slab.h>
18#include <linux/efi.h>
19
20static inline void __iomem *dmi_remap(u64 phys, u64 size)
21{
22 void __iomem *p = efi_lookup_mapped_addr(phys);
23
24 /*
25 * If the mapping spans multiple pages, do a minimal check to ensure
26 * that the mapping returned by efi_lookup_mapped_addr() covers the
27 * whole requested range (but ignore potential holes)
28 */
29 if ((phys & ~PAGE_MASK) + size > PAGE_SIZE
30 && (p + size - 1) != efi_lookup_mapped_addr(phys + size - 1))
31 return NULL;
32 return p;
33}
34
35/* Reuse existing UEFI mappings for DMI */
36#define dmi_alloc(l) kzalloc(l, GFP_KERNEL)
37#define dmi_early_remap(x, l) dmi_remap(x, l)
38#define dmi_early_unmap(x, l)
39#define dmi_unmap(x)
40
41#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 @@
43#include <linux/of_fdt.h> 43#include <linux/of_fdt.h>
44#include <linux/of_platform.h> 44#include <linux/of_platform.h>
45#include <linux/efi.h> 45#include <linux/efi.h>
46#include <linux/dmi.h>
47 46
48#include <asm/fixmap.h> 47#include <asm/fixmap.h>
49#include <asm/cpu.h> 48#include <asm/cpu.h>
@@ -414,7 +413,6 @@ void __init setup_arch(char **cmdline_p)
414static int __init arm64_device_init(void) 413static int __init arm64_device_init(void)
415{ 414{
416 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 415 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
417 dmi_scan_machine();
418 return 0; 416 return 0;
419} 417}
420arch_initcall_sync(arm64_device_init); 418arch_initcall_sync(arm64_device_init);