iommu/arm-smmu: Rework cb_base handling
authorRobin Murphy <robin.murphy@arm.com>
Thu, 15 Aug 2019 18:37:26 +0000 (19:37 +0100)
committerWill Deacon <will@kernel.org>
Mon, 19 Aug 2019 15:52:47 +0000 (16:52 +0100)
commit490325e0c123b2f1f393a679805c580ee69cd2f6
tree869e3ba5f0a33afe5a9b5365ab7a0aea8d3b9899
parent620565a76bb31657045a6d4cc37f9df0b4ab5f56
iommu/arm-smmu: Rework cb_base handling

To keep register-access quirks manageable, we want to structure things
to avoid needing too many individual overrides. It seems fairly clean to
have a single interface which handles both global and context registers
in terms of the architectural pages, so the first preparatory step is to
rework cb_base into a page number rather than an absolute address.

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