Page MenuHomeFreeBSD

acpi_pci: Honor device proximity for DMA tags
ClosedPublic

Authored by kbowling on Aug 21 2026, 3:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 20, 3:23 AM
Unknown Object (File)
Sat, Sep 19, 11:41 PM
Unknown Object (File)
Sat, Sep 19, 8:00 AM
Unknown Object (File)
Sat, Sep 19, 7:01 AM
Unknown Object (File)
Sat, Sep 19, 6:25 AM
Unknown Object (File)
Fri, Sep 18, 11:33 PM
Unknown Object (File)
Thu, Sep 17, 9:59 AM
Unknown Object (File)
Wed, Sep 16, 3:42 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

I would maybe split out the caching of the domain into a separate commit.

sys/dev/acpica/acpi_pci.c
571

s/root/parent/?

This revision is now accepted and ready to land.Thu, Aug 27, 1:58 PM