mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=720 The current implementation assumes there is only one hotplug resource padding for each resource type. It's not true considering DegradeResource(): MEM64 resource could be degraded to MEM32 resource. The patch treat the resource paddings using the same logic as treating typical/actual resources and the total resource of a bridge is set to the MAX of typical/actual resources and resource paddings. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <[email protected]> Tested-by: Laszlo Ersek <[email protected]> Reviewed-by: Star Zeng <[email protected]>