summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2018-05-22 12:50:09 +0100
committerJoerg Roedel <jroedel@suse.de>2018-05-29 16:57:58 +0200
commit4b123757eeaab1d522605b4469ee1adc18a80c90 (patch)
tree0307f0cad26e227a1881598a6e633bfeefd84cc4 /drivers/dma
parentf793b13ef0c9c11971334eb1c2544f81865b0d74 (diff)
downloadop-kernel-dev-4b123757eeaab1d522605b4469ee1adc18a80c90.zip
op-kernel-dev-4b123757eeaab1d522605b4469ee1adc18a80c90.tar.gz
iommu/io-pgtable-arm: Make allocations NUMA-aware
We would generally expect pagetables to be read by the IOMMU more than written by the CPU, so in NUMA systems it makes sense to locate them close to the former and avoid cross-node pagetable walks if at all possible. As it turns out, we already have a handle on the IOMMU device for the sake of coherency management, so it's trivial to grab the appropriate NUMA node when allocating new pagetable pages. Note that we drop the semantics of alloc_pages_exact(), but that's fine since they have never been necessary: the only time we're allocating more than one page is for stage 2 top-level concatenation, but since that is based on the number of IPA bits, the size is always some exact power of two anyway. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud