x86/efi/bgrt: Don't ignore the BGRT if the 'valid' bit is 0
authorMôshe van der Sterre <me@moshe.nl>
Mon, 1 Feb 2016 22:07:03 +0000 (22:07 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Feb 2016 10:41:19 +0000 (11:41 +0100)
commit66dbe99cfe30e113d2e571e68b9b6a1a8985a157
tree9b6b51c7bc2ee49792ec8e1a6f7580f953f8ed44
parent9c09a342eb27902955ca939bd6ba29d875bd8b6b
x86/efi/bgrt: Don't ignore the BGRT if the 'valid' bit is 0

Unintuitively, the BGRT graphic is apparently meant to be usable
if the valid bit in not set. The valid bit only conveys
uncertainty about the validity in relation to the screen state.

Windows 10 actually uses the BGRT image for its boot screen even
if not 'valid', for example when the user triggered the boot
menu. Because it is unclear if all firmwares will provide a
usable graphic in this case, we now look at the BMP magic number
as an additional check.

Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Môshe van der Sterre <me@moshe.nl>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: =?UTF-8?q?M=C3=B4she=20van=20der=20Sterre?= <me@moshe.nl>
Link: http://lkml.kernel.org/r/1454364428-494-10-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/efi/efi-bgrt.c
This page took 0.024593 seconds and 5 git commands to generate.