• Will Deacon's avatar
    iommu/arm-smmu: set CBARn.BPSHCFG to NSH for s1-s2-bypass contexts · 01ffe615
    Will Deacon authored
    commit 57ca90f6 upstream.
    
    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.
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    01ffe615
arm-smmu.c 51.4 KB