]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciBus: Should reserve enough bus number for HPC
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 23 Mar 2016 05:54:51 +0000 (13:54 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 24 Mar 2016 03:24:30 +0000 (11:24 +0800)
commitf6830005bb1a2fc225c89cdb1367b5058e939acc
tree392f476c5b51b73d85d2c3013ecfb4feb9d55159
parentb99e9ca9163ae6298bb66cad705c3dc87f722bb0
MdeModulePkg/PciBus: Should reserve enough bus number for HPC

When there is no bridge before the HPC (hot plug controller),
the issue cannot be seen.
But when there are bridges before the HPC, the PciBus will only
use the value (= <CurrentBusNumber> + <ReservedBusNumber>) as the
sub-ordinary bus number for HPC.
The correct sub-ordinary bus number should be:
<CurrentBusNumber> + <OccupiedBusNumber>(by earlier bridges) +
<ReservedBusNumber>.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c