HomeFreeBSD

pcib: Refine handling of resources allocated from bridge windows

Description

pcib: Refine handling of resources allocated from bridge windows

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.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43690

Details

Provenance
jhbAuthored on Feb 9 2024, 6:27 PM
Reviewer
imp
Differential Revision
D43690: pcib: Refine handling of resources allocated from bridge windows
Parents
rG36efc64a6bc6: pcib: Allocate PCI_RES_BUS resources with RF_ACTIVE
Branches
Unknown
Tags
Unknown