]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/arm-smmu: ensure CBA2R is initialised before CBAR on SMMUv2
authorWill Deacon <will.deacon@arm.com>
Wed, 4 Mar 2015 12:21:03 +0000 (12:21 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 27 Mar 2015 13:39:35 +0000 (13:39 +0000)
commit4a1c93cbe9b2cf559fee3316ee287bb042eb1aba
tree914e6a32d939e96d3bd19e7a45ea9ade264058a5
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda
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>
drivers/iommu/arm-smmu.c