]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
iommu/arm-smmu: Decouple context format from kernel config
authorRobin Murphy <robin.murphy@arm.com>
Thu, 28 Apr 2016 16:12:09 +0000 (17:12 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 3 May 2016 17:23:03 +0000 (18:23 +0100)
commit7602b8710645da48b2937f05fa41d627a0e73dad
treebf2783d9d2b5d76117b0b319a1e52e03ca03db4e
parentf9a05f05b12a42f2c52f3d3b8cc71fe2a6e60bce
iommu/arm-smmu: Decouple context format from kernel config

The way the driver currently forces an AArch32 or AArch64 context format
based on the kernel config and SMMU architecture version is suboptimal,
in that it makes it very hard to support oddball mix-and-match cases
like the SMMUv1 64KB supplement, or situations where the reduced table
depth of an AArch32 short descriptor context may be desirable under an
AArch64 kernel. It also only happens to work on current implementations
which do support all the relevant formats.

Introduce an explicit notion of context format, so we can manage that
independently and get rid of the inflexible #ifdeffery.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c