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
F170689687: D59063.id185286.diff
Sun, Sep 6, 1:15 AM
F170680797: D59063.id185188.diff
Sun, Sep 6, 12:12 AM
F170645079: D59063.diff
Sat, Sep 5, 7:10 PM
F170630350: D59063.id.diff
Sat, Sep 5, 5:36 PM
F170630303: D59063.id.diff
Sat, Sep 5, 5:36 PM
F170629787: D59063.id184626.diff
Sat, Sep 5, 5:32 PM
F170559820: D59063.id.diff
Sat, Sep 5, 10:09 AM
F170503214: D59063.id185286.diff
Sat, Sep 5, 3:25 AM
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 Skipped
Unit
Tests Skipped