Page MenuHomeFreeBSD

acpi: Cleanup handling of suballocated resources
ClosedPublic

Authored by jhb on Jan 31 2024, 7:48 PM.
Tags
None
Referenced Files
F146270368: D43687.id.diff
Sun, Mar 1, 6:59 AM
F146205525: D43687.id134051.diff
Sat, Feb 28, 6:10 PM
Unknown Object (File)
Sat, Feb 28, 10:54 AM
Unknown Object (File)
Mon, Feb 23, 6:28 AM
Unknown Object (File)
Thu, Feb 19, 12:49 PM
Unknown Object (File)
Sun, Feb 8, 1:21 PM
Unknown Object (File)
Sat, Feb 7, 9:23 PM
Unknown Object (File)
Fri, Jan 30, 5:11 PM
Subscribers
None

Details

Summary

For resources suballocated from the system resource rmans, handle
those in the ACPI bus driver without passing them up to the parent.
This means using bus_generic_rman_* for several bus methods for
operations on suballocated resources. For bus_map/unmap_resource,
find the system resource allocated from the parent bus (nexus) that
contains the range being mapped and request a mapping of that parent
resource.

This avoids a layering violation where nexus drivers were previously
asked to manage the activation and mapping of resources created
belonging to the ACPI resource managers.

Note that this does require passing RF_ACTIVE (with RF_UNMAPPED) when
allocating system resources from the parent.

While here, don't assume that the parent bus (nexus) provides a
resource list that sysres resources are placed on. Instead, create a
dedicated resource_list in the ACPI bus driver's softc to hold sysres
resources.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable