iommu: msm: Provide the IOMMU_NOEXEC flag explicitly during mapping

The logic for the iommu executable flag is inverted now and
all the iommu mappings are executable by default.
Provide the IOMMU_NOEXEC flag where the mapping needs to be non-executable.

Change-Id: Ifa0aa3d17ae79c16abdf66d2177a09b868a9f45f
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
[pdaly@codeaurora.org Remove kgsl/display modifications]
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
Rohit Vaswani 2015-05-06 17:02:07 -07:00 committed by David Keitel
parent 86d54e985a
commit 20b0cbf55a

View file

@ -1328,7 +1328,7 @@ __iommu_create_mapping(struct device *dev, struct page **pages, size_t size)
len = (j - i) << PAGE_SHIFT; len = (j - i) << PAGE_SHIFT;
ret = iommu_map(mapping->domain, iova, phys, len, ret = iommu_map(mapping->domain, iova, phys, len,
IOMMU_READ|IOMMU_WRITE); IOMMU_READ|IOMMU_WRITE|IOMMU_NOEXEC);
if (ret < 0) if (ret < 0)
goto fail; goto fail;
iova += len; iova += len;