summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-wsem.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-03-04 15:21:03 +0300
committerWill Deacon <will.deacon@arm.com>2015-03-27 16:39:35 +0300
commit4a1c93cbe9b2cf559fee3316ee287bb042eb1aba (patch)
tree914e6a32d939e96d3bd19e7a45ea9ade264058a5 /lib/locking-selftest-wsem.h
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff)
downloadlinux-4a1c93cbe9b2cf559fee3316ee287bb042eb1aba.tar.xz
iommu/arm-smmu: ensure CBA2R is initialised before CBAR on SMMUv2
The VMID16 (8.1) extension to SMMUv2 added a 16-bit VMID16 field to the CBA2R registers. Unfortunately, if software writes this field as zero after setting an 8-bit VMID in a stage-2 CBAR, then the VMID may also be overwritten with zero on some early implementations (the architecture was later updated to fix this issue). This patch ensures that we initialise CBA2R before CBAR, therefore ensuring that the VMID is set correctly. Tested-by: Manish Jaggi <mjaggi@caviumnetworks.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions