aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ptx/examples/luke/(developers-only)
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2026-08-21 03:08:13 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2026-08-22 01:04:49 +0000
commitdf6bbc9b17dcb75e220b9ab44f5a6483b47c562e (patch)
treef13e6e803596e64c86b460eb505c3759351f4714 /gnu/usr.bin/ptx/examples/luke/(developers-only)
parentf003e86335c9c16c6769ef8f0c091d425dba7ef9 (diff)
ofw_pcibus: Honor device proximity for DMA tagsHEADmain
BUS_GET_DOMAIN can report a PCI function's firmware locality, including an SR-IOV VF's inherited PF locality, but ordinary OFW PCI functions still use the shared bus DMA tag. Consequently, busdma metadata and coherent memory can be allocated from the bus's domain instead of the function's domain. Create and cache a child tag for each function that requests a DMA tag and apply its reported domain without modifying the shared parent tag. Apply the same domain to the private IOMMU tag already created by the pSeries PCI bus. Destroy cached tags when PCI children are removed so VF create and destroy cycles do not leak them. Reviewed by: PowerPC (jhibbits) MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59065
Diffstat (limited to 'gnu/usr.bin/ptx/examples/luke/(developers-only)')
0 files changed, 0 insertions, 0 deletions