]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Fix a PciBusDxe hot plug bug
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 23 Oct 2015 08:29:38 +0000 (08:29 +0000)
committerniruiyu <niruiyu@Edk2>
Fri, 23 Oct 2015 08:29:38 +0000 (08:29 +0000)
commitfbe618a45ef9358c8d2c32ce4bff5e8f4898b969
tree6916727bdb501ef5081548d0726646c5f955b8f9
parentd4bf294e0ed2a6cdc1e128df512df1d5e56cfc4d
MdeModulePkg: Fix a PciBusDxe hot plug bug

For a hot plug bridge with device attached, PciBusDxe driver reserves
the resources which equal to the total amount of padding resource
returned from HotPlug->GetResourcePadding() and the actual occupied
resource by the attached device. The behavior is incorrect.
Correct behavior is to reserve the bigger one between the padding
resource and the actual occupied resource.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18658 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h
MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c
MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c