]> git.baikalelectronics.ru Git - kernel.git/commit
efi/arm: Defer probe of PCIe backed efifb on DT systems
authorArd Biesheuvel <ardb@kernel.org>
Mon, 13 Jan 2020 17:22:40 +0000 (18:22 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 20 Jan 2020 07:14:13 +0000 (08:14 +0100)
commitc001cf868302051e176ec627e4306a62ba20a973
tree74c7e01ddfbea0d08f2151566a6db035ed3b6132
parentafb686e0c56745f7378c5a4a87a1f0eabd2c6a48
efi/arm: Defer probe of PCIe backed efifb on DT systems

The new of_devlink support breaks PCIe probing on ARM platforms booting
via UEFI if the firmware exposes a EFI framebuffer that is backed by a
PCI device. The reason is that the probing order gets reversed,
resulting in a resource conflict on the framebuffer memory window when
the PCIe probes last, causing it to give up entirely.

Given that we rely on PCI quirks to deal with EFI framebuffers that get
moved around in memory, we cannot simply drop the memory reservation, so
instead, let's use the device link infrastructure to register this
dependency, and force the probing to occur in the expected order.

Co-developed-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200113172245.27925-9-ardb@kernel.org
drivers/firmware/efi/arm-init.c