efi/x86: Remove support for EFI time and counter services in mixed mode
authorArd Biesheuvel <ardb@kernel.org>
Fri, 21 Feb 2020 08:48:47 +0000 (09:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 26 Feb 2020 14:31:42 +0000 (15:31 +0100)
commitf80c9f6476db6c0802545aaa44eb9a38e751786a
treeb97643f9774ba793ff16cfa37bacc36764b9207f
parent63056e8b5ebf41d52170e9f5ba1fc83d1855278c
efi/x86: Remove support for EFI time and counter services in mixed mode

Mixed mode calls at runtime are rather tricky with vmap'ed stacks,
as we can no longer assume that data passed in by the callers of the
EFI runtime wrapper routines is contiguous in physical memory.

We need to fix this, but before we do, let's drop the implementations
of routines that we know are never used on x86, i.e., the RTC related
ones. Given that UEFI rev2.8 permits any runtime service to return
EFI_UNSUPPORTED at runtime, let's return that instead.

As get_next_high_mono_count() is never used at all, even on other
architectures, let's make that return EFI_UNSUPPORTED too.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-efi@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200221084849.26878-3-ardb@kernel.org
arch/x86/platform/efi/efi_64.c