pcib: Allocate PCI_RES_BUS resources with RF_ACTIVE
The allocated bus numbers are in use so should be activated when allocated. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43689
This commit is contained in:
@@ -654,14 +654,14 @@ pcib_setup_secbus(device_t dev, struct pcib_secbus *bus, int min_count)
|
|||||||
*/
|
*/
|
||||||
rid = 0;
|
rid = 0;
|
||||||
bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid,
|
bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid,
|
||||||
min_count, 0);
|
min_count, RF_ACTIVE);
|
||||||
if (bus->res == NULL) {
|
if (bus->res == NULL) {
|
||||||
/*
|
/*
|
||||||
* Fall back to just allocating a range of a single bus
|
* Fall back to just allocating a range of a single bus
|
||||||
* number.
|
* number.
|
||||||
*/
|
*/
|
||||||
bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid,
|
bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid,
|
||||||
1, 0);
|
1, RF_ACTIVE);
|
||||||
} else if (rman_get_size(bus->res) < min_count)
|
} else if (rman_get_size(bus->res) < min_count)
|
||||||
/*
|
/*
|
||||||
* Attempt to grow the existing range to satisfy the
|
* Attempt to grow the existing range to satisfy the
|
||||||
|
|||||||
Reference in New Issue
Block a user