Page MenuHomeFreeBSD

acpi_pci: Honor device proximity for DMA tags
ClosedPublic

Authored by kbowling on Fri, Aug 21, 3:52 AM.
Tags
None
Referenced Files
F169327426: D59063.diff
Tue, Sep 1, 5:13 AM
F169196363: D59063.diff
Mon, Aug 31, 7:08 PM
F169176319: D59063.id184626.diff
Mon, Aug 31, 5:27 PM
Unknown Object (File)
Mon, Aug 31, 3:31 AM
Unknown Object (File)
Mon, Aug 31, 2:29 AM
Unknown Object (File)
Mon, Aug 31, 1:10 AM
Unknown Object (File)
Sun, Aug 30, 10:23 PM
Unknown Object (File)
Sun, Aug 30, 8:07 PM
Subscribers

Details

Summary
A PCI function with its own _PXM still inherits a DMA tag carrying
the upstream bridge's proximity domain. Resolving an SR-IOV VF's
locality through its PF therefore does not affect the domain used for
DMA allocations.

Create and cache a private child tag when the function, or a VF's
owning PF, has an explicit _PXM. Parent it to the existing PCI or IOMMU
tag so its constraints remain intact, then apply the function's domain
without mutating a shared tag.

pci_get_dma_tag() already performs the IOMMU lookup, so remove the
duplicated lookup in the ACPI subclass while here.

MFC after:      2 weeks

Diff Detail

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