Only conform to PCIe spec of 1 device per bus on !x86
bhyve's root PCI complex shows up as PCIe, but behaves as traditional PCI. Until that is special cased in a root complex driver, leave x86 as it was. Requested by: grehan
This commit is contained in:
parent
56226f5673
commit
5502348d9a
@ -2545,6 +2545,7 @@ pcib_enable_ari(struct pcib_softc *sc, uint32_t pcie_pos)
|
||||
int
|
||||
pcib_maxslots(device_t dev)
|
||||
{
|
||||
#if !defined(__amd64__) && !defined(__i386__)
|
||||
uint32_t pcie_pos;
|
||||
uint16_t val;
|
||||
|
||||
@ -2559,6 +2560,7 @@ pcib_maxslots(device_t dev)
|
||||
val == PCIEM_TYPE_DOWNSTREAM_PORT)
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
return (PCI_SLOTMAX);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user