iommu/dma: Use fast DMA domain lookup
authorRobin Murphy <robin.murphy@arm.com>
Wed, 12 Sep 2018 15:24:13 +0000 (16:24 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 25 Sep 2018 08:23:16 +0000 (10:23 +0200)
commit43c5bf11a610ceeae68b26c24e0c76852d0d5cfc
tree961a7e537c255524ecd83733f8c0364bc8b8a3f4
parent6af588fed39178c8e118fcf9cb6664e58a1fbe88
iommu/dma: Use fast DMA domain lookup

Most parts of iommu-dma already assume they are operating on a default
domain set up by iommu_dma_init_domain(), and can be converted straight
over to avoid the refcounting bottleneck. MSI page mappings may be in
an unmanaged domain with an explicit MSI-only cookie, so retain the
non-specific lookup, but that's OK since they're far from a contended
fast path either way.

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