acpi/prmt: Use EFI runtime sandbox to invoke PRM handlers
authorArd Biesheuvel <ardb@kernel.org>
Sun, 2 Jul 2023 09:57:34 +0000 (11:57 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 22 Aug 2023 08:39:26 +0000 (10:39 +0200)
commit5894cf571e14fb393a4d0a82538de032127b9d8b
tree6dbdfaf1d23db2b428cc0c6a03d59f52764c9350
parent3c17ae4161093fa2263b70064e34a033dc16fef5
acpi/prmt: Use EFI runtime sandbox to invoke PRM handlers

Instead of bypassing the kernel's adaptation layer for performing EFI
runtime calls, wire up ACPI PRM handling into it. This means these calls
can no longer occur concurrently with EFI runtime calls, and will be
made from the EFI runtime workqueue. It also means any page faults
occurring during PRM handling will be identified correctly as
originating in firmware code.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/acpi/Kconfig
drivers/acpi/prmt.c
drivers/firmware/efi/runtime-wrappers.c
include/linux/efi.h