]> Git Repo - linux.git/commit
efi/fb: Avoid reconfiguration of BAR that covers the framebuffer
authorArd Biesheuvel <[email protected]>
Tue, 4 Apr 2017 15:27:44 +0000 (16:27 +0100)
committerIngo Molnar <[email protected]>
Wed, 5 Apr 2017 10:25:53 +0000 (12:25 +0200)
commit55d728a40d368ba80443be85c02e641fc9082a3f
treeddcd3b0411791c00e1eeb82ef4350eb5323a24e2
parent540f4c0e894f7e46a66dfa424b16424cbdc12c38
efi/fb: Avoid reconfiguration of BAR that covers the framebuffer

On UEFI systems, the PCI subsystem is enumerated by the firmware,
and if a graphical framebuffer is exposed via a PCI device, its base
address and size are exposed to the OS via the Graphics Output
Protocol (GOP).

On arm64 PCI systems, the entire PCI hierarchy is reconfigured from
scratch at boot. This may result in the GOP framebuffer address to
become stale, if the BAR covering the framebuffer is modified. This
will cause the framebuffer to become unresponsive, and may in some
cases result in unpredictable behavior if the range is reassigned to
another device.

So add a non-x86 quirk to the EFI fb driver to find the BAR associated
with the GOP base address, and claim the BAR resource so that the PCI
core will not move it.

Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: <[email protected]> # v4.7+
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Jones <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Fixes: 9822504c1fa5 ("efifb: Enable the efi-framebuffer platform driver ...")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
drivers/video/fbdev/efifb.c
This page took 0.063162 seconds and 4 git commands to generate.