OSDN Git Service

iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'
authorSricharan R <sricharan@codeaurora.org>
Fri, 6 Jan 2017 13:28:15 +0000 (18:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:06 +0000 (10:26 +0200)
commit75d1888ddce9dbe8774755735ee235dd03b2dd33
tree8ca94c92fd75cec4e55530f9085071c20d433592
parent4af5e6136d766aef735f9b65534a0c4c4ca35ad4
iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'

[ Upstream commit e19898077cfb642fe151ba22981e795c74d9e114 ]

Currently the driver sets all the device transactions privileges
to UNPRIVILEGED, but there are cases where the iommu masters wants
to isolate privileged supervisor and unprivileged user.
So don't override the privileged setting to unprivileged, instead
set it to default as incoming and let it be controlled by the pagetable
settings.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/arm-smmu.c