]> Pileus Git - ~andy/linux/commit
iommu/arm-smmu: set CBARn.BPSHCFG to NSH for s1-s2-bypass contexts
authorWill Deacon <will.deacon@arm.com>
Thu, 6 Feb 2014 14:59:05 +0000 (14:59 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Feb 2014 17:02:23 +0000 (17:02 +0000)
commit57ca90f6800987ac274d7ba065ae6692cdf9bcd7
tree8b7ddc5f80bc4eb6dce0a9131b3e184899cf730b
parent6dd35f45b8dac827b6f9dd86f5aca6436cdd2410
iommu/arm-smmu: set CBARn.BPSHCFG to NSH for s1-s2-bypass contexts

Whilst trying to bring-up an SMMUv2 implementation with the table
walker plumbed into a coherent interconnect, I noticed that the memory
transactions targetting the CPU caches from the SMMU were marked as
outer-shareable instead of inner-shareable.

After a bunch of digging, it seems that we actually need to program
CBARn.BPSHCFG for s1-s2-bypass contexts to act as non-shareable in order
for the shareability configured in the corresponding TTBCR not to be
overridden with an outer-shareable attribute.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c