]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
MdeModulePkg: Fix a PciBusDxe hot plug bug
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 3 Nov 2015 02:34:21 +0000 (02:34 +0000)
committerniruiyu <niruiyu@Edk2>
Tue, 3 Nov 2015 02:34:21 +0000 (02:34 +0000)
commitc7e7613e09ff10257dfc301ac1cd3bff807e6c02
tree32df81a8e7d462d8b56fc7dfceb0f6958e1c4875
parentf67bd32ddaae9d5c11481007bbd63e0a3e881f3a
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@18719 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c
MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c