Page MenuHomeFreeBSD

D55683.id173281.diff
No OneTemporary

D55683.id173281.diff

diff --git a/share/man/man9/bus_alloc_resource.9 b/share/man/man9/bus_alloc_resource.9
--- a/share/man/man9/bus_alloc_resource.9
+++ b/share/man/man9/bus_alloc_resource.9
@@ -26,7 +26,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd October 30, 2025
+.Dd March 6, 2026
.Dt BUS_ALLOC_RESOURCE 9
.Os
.Sh NAME
@@ -142,12 +142,8 @@
.It
.Fa flags
sets the flags for the resource.
-You can set one or more of these flags:
-.Bl -tag -width RF_SHAREABLE
-.It Dv RF_ALLOCATED
-resource has been reserved.
-The resource still needs to be activated with
-.Xr bus_activate_resource 9 .
+You can set zero or more of these flags:
+.Bl -tag -width RF_PREFETCHABLE
.It Dv RF_ACTIVE
activate resource atomically.
.It Dv RF_PREFETCHABLE
diff --git a/sys/arm/nvidia/tegra_pcie.c b/sys/arm/nvidia/tegra_pcie.c
--- a/sys/arm/nvidia/tegra_pcie.c
+++ b/sys/arm/nvidia/tegra_pcie.c
@@ -1468,7 +1468,7 @@
}
/*
* XXX - FIXME
- * tag for config space is not filled when RF_ALLOCATED flag is used.
+ * tag for config space is not filled when RF_ACTIVE flag is not used.
*/
sc->bus_tag = rman_get_bustag(sc->pads_mem_res);
@@ -1482,8 +1482,7 @@
}
rid = 2;
- sc->cfg_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
- RF_ALLOCATED);
+ sc->cfg_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 0);
if (sc->cfg_mem_res == NULL) {
device_printf(dev, "Cannot allocate config space memory\n");
rv = ENXIO;
diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c
--- a/sys/x86/iommu/amd_drv.c
+++ b/sys/x86/iommu/amd_drv.c
@@ -494,7 +494,7 @@
}
sc->mmio_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &sc->mmio_rid,
sc->mmio_base, sc->mmio_base + sc->mmio_sz - 1, sc->mmio_sz,
- RF_ALLOCATED | RF_ACTIVE | RF_SHAREABLE);
+ RF_ACTIVE | RF_SHAREABLE);
if (sc->mmio_res == NULL) {
device_printf(dev,
"bus_alloc_resource %#jx-%#jx failed\n",

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 12, 6:45 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29569644
Default Alt Text
D55683.id173281.diff (1 KB)

Event Timeline