]> git.proxmox.com Git - mirror_edk2.git/commit
CorebootPayloadPkg/FbGop: Locate correct framebuffer device
authorMaurice Ma <maurice.ma@intel.com>
Mon, 1 Apr 2019 22:35:38 +0000 (15:35 -0700)
committerMaurice Ma <maurice.ma@intel.com>
Tue, 9 Apr 2019 21:49:46 +0000 (14:49 -0700)
commitae2fb9ead47b5abaf2a4e815b5f57c8f4838b221
tree57738f25974cd86bc839fe05c4a392834ef3dbb6
parenta281361014de51cffb6cac1a516f045eddf9f571
CorebootPayloadPkg/FbGop: Locate correct framebuffer device

BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1628

Current FbGop driver might bind to the wrong PCI device
if a system has multiple PCI display devices. The original
idea was to reuse the generic GraphicsOutputDxe to address
this issue. However, after exploring different approaches
discussed in the bugzilla, it turned out that the best
approach is to enhance the current FbGop driver to match
the PCI device BAR value with the framebuffer base address.
This patch implemented this enhancement by selecting the
PCI device with matched framebuffer base in its PCI BAR.

This has been tested with coreboot on QEMU and Apollo Lake
platform.

Cc: Prince Agyeman <prince.agyeman@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Benjamin You <benjamin.you@intel.com>
CorebootPayloadPkg/FbGop/FbGop.c