[Bug 4070] New: Fix bug on SR-IOV device multi functions(over 8) reserved bus numbers calculate wrongly


bugzilla-daemon@...
 

https://bugzilla.tianocore.org/show_bug.cgi?id=4070

Bug ID: 4070
Summary: Fix bug on SR-IOV device multi functions(over 8)
reserved bus numbers calculate wrongly
Product: EDK2
Version: Current
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Lowest
Component: Code
Assignee: unassigned@...
Reporter: foster.nong@...
CC: edk2+bugs+int+994+563148131503455288@groups.io

If a device which support both features SR-IOV/ARI has multi functions, which
is over 8. Below pciscanbus() code will can't calculate Physical Function 8
SR-IOV reserved bus number for its VFs. In current case, for Physical Function
8, TempReservedBusNum will set as 0 in for(device...), will cause calculate
SR-IOV reserved bus numbers wrongly for PF8, which add more the bus numbers
reserved for PF0-PF7.


for (Device = 0; Device <= PCI_MAX_DEVICE; Device++) {
TempReservedBusNum = 0;
for (Func = 0; Func <= PCI_MAX_FUNC; Func++) {
//
// Check to see whether a pci device is present
//
Status = PciDevicePresent (
PciRootBridgeIo,
&Pci,
StartBusNumber,
Device,
Func
);

--
You are receiving this mail because:
You are on the CC list for the bug.