]> git.karo-electronics.de Git - linux-beck.git/commit
efi/arm64: Check for h/w support before booting a >4 KB granular kernel
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 17 Feb 2016 12:36:02 +0000 (12:36 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 22 Feb 2016 07:26:27 +0000 (08:26 +0100)
commit42b55734030c1f724d5f47aeb872e2cccd650d79
treef6978ad2b81ddb379016be6353e7a9c567cd6a46
parent2ec0f0a3a4bfab90eda8b81656f62e07abf2321f
efi/arm64: Check for h/w support before booting a >4 KB granular kernel

A kernel built with support for a page size that is not supported by the
hardware it runs on cannot boot to a state where it can inform the user
about the failure.

If we happen to be booting via UEFI, we can fail gracefully so check
if the currently configured page size is supported by the hardware before
entering the kernel proper. Note that UEFI mandates support for 4 KB pages,
so in that case, no check is needed.

Tested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Reviewed-by: Jeremy Linton <jeremy.linton@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/1455712566-16727-10-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/libstub/arm64-stub.c