efifb: Show framebuffer layout as device attributes
authorPeter Jones <pjones@redhat.com>
Tue, 18 Oct 2016 14:33:17 +0000 (15:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Oct 2016 15:11:19 +0000 (17:11 +0200)
commit753375a881caa01112b7cec2c796749154e0bb23
tree0e533432c8b083a6b3ff440307278a1b8b0e4050
parentc208ed916e587048ba6b69840d08324100d7d325
efifb: Show framebuffer layout as device attributes

Userland sometimes needs to know what the framebuffer configuration was
when the firmware was running. This enables us to render localized
status strings during firmware updates using the data from the ACPI BGRT
table and the protocol described at the url below:

  https://msdn.microsoft.com/en-us/windows/hardware/drivers/bringup/boot-screen-components

This patch also fixes up efifb's printk() usage to use pr_warn() /
pr_info() / pr_err() instead.

Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
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/20161018143318.15673-8-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/video/fbdev/efifb.c