diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-08-11 17:44:05 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-08-19 09:40:16 +0100 |
commit | e633fc7a1347528c3b4a6bbdeb41f5d63988242c (patch) | |
tree | cd7ad5a5779d4bcb65d2d90c88a891b532f7dcbe /scripts/headerdep.pl | |
parent | 694d0d0bb2030d2e36df73e2d23d5770511dbc8d (diff) | |
download | talos-obmc-linux-e633fc7a1347528c3b4a6bbdeb41f5d63988242c.tar.gz talos-obmc-linux-e633fc7a1347528c3b4a6bbdeb41f5d63988242c.zip |
iommu/io-pgtable-arm-v7s: Fix attributes when splitting blocks
Due to the attribute bits being all over the place in the different
types of short-descriptor PTEs, when remapping an existing entry, e.g.
splitting a section into pages, we take the approach of decomposing
the PTE attributes back to the IOMMU API flags to start from scratch.
On inspection, though, the existing code seems to have got the read-only
bit backwards and ignored the XN bit. How embarrassing...
Fortunately the primary user so far, the Mediatek IOMMU, both never
splits blocks (because it only serves non-overlapping DMA API calls) and
also ignores permissions anyway, but let's put things right before any
future users trip up.
Cc: <stable@vger.kernel.org>
Fixes: e5fc9753b1a8 ("iommu/io-pgtable: Add ARMv7 short descriptor support")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'scripts/headerdep.pl')
0 files changed, 0 insertions, 0 deletions