iommu/arm-smmu: Set PRIVCFG in stage 1 STEs
authorRobin Murphy <robin.murphy@arm.com>
Mon, 12 Sep 2016 16:13:47 +0000 (17:13 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 16 Sep 2016 08:34:17 +0000 (09:34 +0100)
commit95fa99aa402ad516ec825057a168f395ece39a2e
tree14a77be228e0dbb065d0c034be2894b14a277af6
parent08d4ca2a672bab34e6640ffa946844d09d4f6f60
iommu/arm-smmu: Set PRIVCFG in stage 1 STEs

Implement the SMMUv3 equivalent of d346180e70b9 ("iommu/arm-smmu: Treat
all device transactions as unprivileged"), so that once again those
pesky DMA controllers with their privileged instruction fetches don't
unexpectedly fault in stage 1 domains due to VMSAv8 rules.

Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c