Page MenuHomeFreeBSD

pcib: Refine handling of resources allocated from bridge windows
ClosedPublic

Authored by jhb on Jan 31 2024, 7:48 PM.
Tags
None
Referenced Files
F125591414: D43690.id133669.diff
Sat, Aug 9, 4:49 PM
Unknown Object (File)
Sun, Aug 3, 4:50 AM
Unknown Object (File)
Fri, Aug 1, 3:47 AM
Unknown Object (File)
Mon, Jul 28, 10:02 PM
Unknown Object (File)
Jul 5 2025, 9:52 PM
Unknown Object (File)
Jul 5 2025, 7:17 PM
Unknown Object (File)
Jul 5 2025, 6:17 AM
Unknown Object (File)
Jul 1 2025, 7:05 PM
Subscribers
None

Details

Summary

Fix a long-standing layering violation in the original NEW_PCIB code
by not passing suballocated resources up to the parent bus for
activation and mapping. Instead, handle activation and mapping of
sub-allocated resources in this driver. When mapping resources,
request a mapping from a suitable sub-region of the resource allocated
from the parent bus for the associated bridge window.

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

Diff Detail

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