]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/dma: Stop getting dma_32bit_pfn wrong
authorRobin Murphy <robin.murphy@arm.com>
Mon, 16 Jan 2017 13:24:54 +0000 (13:24 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 30 Jan 2017 15:14:24 +0000 (16:14 +0100)
commitf51d7bb79c1124f7f02e9f472ef935eba13bca8e
treea6799da585a3f46bad52ceaa8333c4714aaf20d8
parentce273db0ff1ae64fea785af25a43977b0b6a4555
iommu/dma: Stop getting dma_32bit_pfn wrong

iommu_dma_init_domain() was originally written under the misconception
that dma_32bit_pfn represented some sort of size limit for IOVA domains.
Since the truth is almost the exact opposite of that, rework the logic
and comments to reflect its real purpose of optimising lookups when
allocating from a subset of the available 64-bit space.

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