]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
efi/arm: map UEFI memory map even w/o runtime services enabled
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 28 Aug 2018 20:47:00 +0000 (22:47 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 08:30:45 +0000 (10:30 +0200)
commite98e3bfe9373c202ca5ea23527d81d200bcbc76e
tree6fa32f7d1ed1f80c9fb62dabe290d88f91f96d78
parentfadb0abafe1b52481da4d5c9b19ccd07c2321a97
efi/arm: map UEFI memory map even w/o runtime services enabled

BugLink: https://bugs.launchpad.net/bugs/1786878
Under the current implementation, UEFI memory map will be mapped and made
available in virtual mappings only if runtime services are enabled.
But in a later patch, we want to use UEFI memory map in acpi_os_ioremap()
to create mappings of ACPI tables using memory attributes described in
UEFI memory map.
See the following commit:
    arm64: acpi: fix alignment fault in accessing ACPI tables

So, as a first step, arm_enter_runtime_services() is modified, alongside
Ard's patch[1], so that UEFI memory map will not be freed even if
efi=noruntime.

[1] https://marc.info/?l=linux-efi&m=152930773507524&w=2

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 20d12cf990618845e76d3f24daaebd15d65a5e46)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/firmware/efi/arm-runtime.c