]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
iommu/dma: Stop getting dma_32bit_pfn wrong
authorRobin Murphy <robin.murphy@arm.com>
Wed, 3 May 2017 20:32:00 +0000 (22:32 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:50:54 +0000 (10:50 +0200)
commitbf378d17c6eb31c96f17e4b778ed9c8de3cd1be6
treea833d7e1b6f6a9253fdd2b9e67b1c0a2c2a388c8
parent6c13b7ed35489dafab59f6d97cc1bf4cbef0a653
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.

BugLink: http://bugs.launchpad.net/bugs/1680549
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
(cherry picked from commit f51d7bb79c1124f7f02e9f472ef935eba13bca8e)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/iommu/dma-iommu.c