]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Bus/Pci/PciBusDxe: Support platform PCI ROM override
authorMichael D Kinney <michael.d.kinney@intel.com>
Sat, 22 Jan 2022 00:48:47 +0000 (16:48 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 4 Feb 2022 18:10:25 +0000 (18:10 +0000)
commita4b7aa362d94bbe0287663cab9af4ab503f6185d
treeb7619b42707e49a1951e29344422130496534447
parent33189f05278345eab608ff56e87905bdeacdbd47
MdeModulePkg/Bus/Pci/PciBusDxe: Support platform PCI ROM override

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3811

Remove ASSERT() statements that are triggered if a platform provides
an override of PCI ROM attached to a PCI Controller.  The PCI Platform
Protocol allows the platform to provide a PCI ROM image for a PCI
Controller.  This works for PCI Controllers that do not have an attached
PCI ROM, but the platform is not allowed to replace the PCI ROM for a
PCI Controller that has its own PCI ROM.  Removing these ASSERT()
statements enables this additional use case.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
MdeModulePkg/Bus/Pci/PciBusDxe/PciRomTable.c