]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
new-bus: Disable assertions for rman mismatches for activate/deactivate
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 25 Nov 2023 18:32:19 +0000 (10:32 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Sat, 25 Nov 2023 18:32:19 +0000 (10:32 -0800)
commited88eef140a1c3d57d546f409c216806dd3da809
treee9630abc08927a8f41ea2ccf0c6fbfb229dc9cd8
parent49a83b94395a6eaae4642aa72c9f6a40143f0f45
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
sys/kern/subr_bus.c