HomeFreeBSD

new-bus: Disable assertions for rman mismatches for activate/deactivate

Description

new-bus: Disable assertions for rman mismatches for activate/deactivate

Bus drivers which use an rman to sub-divide a resource allocated from
a parent bus should handle mapping requests (and activate/deactivate
requests) for those sub-allocated resources by doing a subset mapping
of the resource allocated from the parent (and then using this to
handle activate/deactivate requests).

However, not all bus drivers which use internal rmans (such as acpi(4)
and pci_pci(4)) do that since not all nexus drivers support
bus_map/unmap. Eventually bus drivers should be updated to do this
properly at which point these assertions can be reenabled.

Reported by: delphij, kib

(cherry picked from commit ed88eef140a1c3d57d546f409c216806dd3da809)

Details

Provenance
jhbAuthored on Nov 25 2023, 6:32 PM
Parents
rG0c7aa9afb163: new-bus: Add comments for resource_*_map_request*
Branches
Unknown
Tags
Unknown