]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/dma: Clean up MSI IOVA allocation
authorRobin Murphy <robin.murphy@arm.com>
Fri, 31 Mar 2017 14:46:06 +0000 (15:46 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Apr 2017 10:45:03 +0000 (12:45 +0200)
commit6ac3265e7e925fea058b7b344403225c254a8333
tree3d2a42f254fc48f6bd937ea3e5aca606595fd71a
parent6a9d49f3c2819a282ec37e714076b5df59578c89
iommu/dma: Clean up MSI IOVA allocation

Now that allocation is suitably abstracted, our private alloc/free
helpers can drive the trivial MSI cookie allocator directly as well,
which lets us clean up its exposed guts from iommu_dma_map_msi_msg() and
simplify things quite a bit.

Reviewed-by: Nate Watterson <nwatters@codeaurora.org>
Tested-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c