summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iommu.h
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2014-03-19 17:07:49 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2014-03-19 18:21:32 +0100
commit5cf0a76fa2179d246fc0375d733bdccffd59382b (patch)
tree252606f6807877d15a936dd94325742cf8021a8d /drivers/iommu/omap-iommu.h
parentiommu/vt-d: Update IOMMU state when memory hotplug happens (diff)
downloadlinux-5cf0a76fa2179d246fc0375d733bdccffd59382b.tar.xz
linux-5cf0a76fa2179d246fc0375d733bdccffd59382b.zip
iommu/vt-d: Clean up size handling for intel_iommu_unmap()
We have this horrid API where iommu_unmap() can unmap more than it's asked to, if the IOVA in question happens to be mapped with a large page. Instead of propagating this nonsense to the point where we end up returning the page order from dma_pte_clear_range(), let's just do it once and adjust the 'size' parameter accordingly. Augment pfn_to_dma_pte() to return the level at which the PTE was found, which will also be useful later if we end up changing the API for iommu_iova_to_phys() to behave the same way as is being discussed upstream. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/iommu/omap-iommu.h')
0 files changed, 0 insertions, 0 deletions