]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/dma: Implement PCI allocation optimisation
authorRobin Murphy <robin.murphy@arm.com>
Mon, 16 Jan 2017 13:24:55 +0000 (13:24 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 30 Jan 2017 15:14:24 +0000 (16:14 +0100)
commit122fac030e912ed723fe94d8eb0d5d0f6b31535e
treeddfdbf1d6725f348ece0fffe7dc839077c32cc5a
parentf51d7bb79c1124f7f02e9f472ef935eba13bca8e
iommu/dma: Implement PCI allocation optimisation

Whilst PCI devices may have 64-bit DMA masks, they still benefit from
using 32-bit addresses wherever possible in order to avoid DAC (PCI) or
longer address packets (PCIe), which may incur a performance overhead.
Implement the same optimisation as other allocators by trying to get a
32-bit address first, only falling back to the full mask if that fails.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c