efi / ACPI: load SSTDs from EFI variables
authorOctavian Purdila <octavian.purdila@intel.com>
Fri, 8 Jul 2016 16:13:12 +0000 (19:13 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Jul 2016 19:52:35 +0000 (21:52 +0200)
commit475fb4e8b2f4444d1d7b406ff3a7d21bc89a1e6f
tree25deca4b6de41e23d3d8abe44c6f6b94493d50f8
parent7f24467f3b357ab6abc146c47fcedd7d57a189b6
efi / ACPI: load SSTDs from EFI variables

This patch allows SSDTs to be loaded from EFI variables. It works by
specifying the EFI variable name containing the SSDT to be loaded. All
variables with the same name (regardless of the vendor GUID) will be
loaded.

Note that we can't use acpi_install_table and we must rely on the
dynamic ACPI table loading and bus re-scanning mechanisms. That is
because I2C/SPI controllers are initialized earlier then the EFI
subsystems and all I2C/SPI ACPI devices are enumerated when the
I2C/SPI controllers are initialized.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/acpi/ssdt-overlays.txt
Documentation/kernel-parameters.txt
drivers/firmware/efi/efi.c