]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c
Per the UEFI spec, if a PCI controller is a P2P bridge, then the I/O, Memory and...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 8 Nov 2010 07:36:12 +0000 (07:36 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 8 Nov 2010 07:36:12 +0000 (07:36 +0000)
commit13fd0d50b5f53a6a3cc0b294593ef8500cd9b985
treec984ee09b01a801164801fbf565fd0a0f926c13c
parentfefefa4cb15eed75dbe3d4867768893bf6d96a30
Per the UEFI spec, if a PCI controller is a P2P bridge, then the I/O, Memory and Bus Master bits in the Command register of the PCI configuration header should be placed in the enabled state by the PCI Bus driver.

But current PCI bus driver has a bug that if a P2P bridge has no child devices detected during enumeration, the bits won’t be set. This may impact PCI hot plug capable bridges because the OS may re-assign resources for them causing the reserved resource by the firmware will be overwritten.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11013 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c