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
This commit is contained in:
@ -460,4 +460,17 @@ ResetAllPpbBusNumber (
|
||||
IN UINT8 StartBusNumber
|
||||
);
|
||||
|
||||
/**
|
||||
Dump the PPB padding resource information.
|
||||
|
||||
@param PciIoDevice PCI IO instance.
|
||||
@param ResourceType The desired resource type to dump.
|
||||
PciBarTypeUnknown means to dump all types of resources.
|
||||
**/
|
||||
VOID
|
||||
DumpPpbPaddingResource (
|
||||
IN PCI_IO_DEVICE *PciIoDevice,
|
||||
IN PCI_BAR_TYPE ResourceType
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user