git: df96f1db4a20 - stable/14 - pcib: Allocate PCI_RES_BUS resources with RF_ACTIVE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Feb 2025 14:16:49 UTC
The branch stable/14 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=df96f1db4a201ccf97d6655b6f3b3254190c5311
commit df96f1db4a201ccf97d6655b6f3b3254190c5311
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-02-09 18:27:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-02-27 13:09:21 +0000
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
(cherry picked from commit 36efc64a6bc6318eefd9baf88cbf511e91db80c8)
---
sys/dev/pci/pci_pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 2659e64f364d..5286d4e82e53 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -654,14 +654,14 @@ pcib_setup_secbus(device_t dev, struct pcib_secbus *bus, int min_count)
*/
rid = 0;
bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid,
- min_count, 0);
+ min_count, RF_ACTIVE);
if (bus->res == NULL) {
/*
* Fall back to just allocating a range of a single bus
* number.
*/
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)
/*
* Attempt to grow the existing range to satisfy the