public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/3] MdeModulePkg/PciBus: Fix bug that doesn't produce BusOverride
@ 2017-10-27  6:54 Ruiyu Ni
  2017-10-27  6:54 ` [PATCH 1/3] MdeModulePkg/PciBus: Refine EFI_PCI_ROM_IMAGE_MAPPING Ruiyu Ni
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ruiyu Ni @ 2017-10-27  6:54 UTC (permalink / raw)
  To: edk2-devel

It's a regression of below commit:
SHA-1: 8be37a5cee700777ca8e8e8a34cc2225b21931a7
* MdeModulePkg/SecurityStubDxe: Defer 3rd party image before EndOfDxe

When PciBus driver fails to load the Option ROM, it doesn't produce
BusOverride protocol. It was a correct behavior before the above
commit. But due to the above commit, BusOverride protocol never is
produced by PciBus driver.

The patch fixes this issue using the following solution:
1. PciBus records the image device path when LoadImage fails.
2. Override.GetDriver() tries to look for the image handle using
   the stored image device path.

Ruiyu Ni (3):
  MdeModulePkg/PciBus: Refine EFI_PCI_ROM_IMAGE_MAPPING
  MdeModulePkg/PciBus: Don't create entry when recording ImageHandle
  MdeModulePkg/PciBus: Fix bug that doesn't produce BusOverride

 MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h            |   7 +-
 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf       |   3 +-
 MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c  |   4 +-
 MdeModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.c | 147 ++++++++++++++-------
 MdeModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h |  17 ++-
 .../Bus/Pci/PciBusDxe/PciOptionRomSupport.c        |  21 ++-
 MdeModulePkg/Bus/Pci/PciBusDxe/PciRomTable.c       |  99 ++++++++------
 MdeModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h       |  10 +-
 8 files changed, 190 insertions(+), 118 deletions(-)

-- 
2.12.2.windows.2



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-30  8:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-27  6:54 [PATCH 0/3] MdeModulePkg/PciBus: Fix bug that doesn't produce BusOverride Ruiyu Ni
2017-10-27  6:54 ` [PATCH 1/3] MdeModulePkg/PciBus: Refine EFI_PCI_ROM_IMAGE_MAPPING Ruiyu Ni
2017-10-27  6:54 ` [PATCH 2/3] MdeModulePkg/PciBus: Don't create entry when recording ImageHandle Ruiyu Ni
2017-10-27  6:54 ` [PATCH 3/3] MdeModulePkg/PciBus: Fix bug that doesn't produce BusOverride Ruiyu Ni
2017-10-30  8:42 ` [PATCH 0/3] " Zeng, Star

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox