summaryrefslogtreecommitdiffstats
path: root/arch/x86/platform
diff options
context:
space:
mode:
authorNarendra K <Narendra.K@dell.com>2019-07-10 20:59:15 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-08-08 10:10:25 +0200
commit1c5fecb61255aa12a16c4c06335ab68979865914 (patch)
tree9a016f580ce572836e68e02592d5c6b3be1849ec /arch/x86/platform
parentefi: ia64: move SAL systab handling out of generic EFI code (diff)
downloadlinux-1c5fecb61255aa12a16c4c06335ab68979865914.tar.xz
linux-1c5fecb61255aa12a16c4c06335ab68979865914.zip
efi: Export Runtime Configuration Interface table to sysfs
System firmware advertises the address of the 'Runtime Configuration Interface table version 2 (RCI2)' via an EFI Configuration Table entry. This code retrieves the RCI2 table from the address and exports it to sysfs as a binary attribute 'rci2' under /sys/firmware/efi/tables directory. The approach adopted is similar to the attribute 'DMI' under /sys/firmware/dmi/tables. RCI2 table contains BIOS HII in XML format and is used to populate BIOS setup page in Dell EMC OpenManage Server Administrator tool. The BIOS setup page contains BIOS tokens which can be configured. Signed-off-by: Narendra K <Narendra.K@dell.com> Reviewed-by: Mario Limonciello <mario.limonciello@dell.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r--arch/x86/platform/efi/efi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index 6697c109c449..c202e1b07e29 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -82,6 +82,9 @@ static const unsigned long * const efi_tables[] = {
&efi.esrt,
&efi.properties_table,
&efi.mem_attr_table,
+#ifdef CONFIG_EFI_RCI2_TABLE
+ &rci2_table_phys,
+#endif
};
u64 efi_setup; /* efi setup_data physical address */