iommu/arm-smmu-v3: Remove the page 1 fixup
authorRobin Murphy <robin.murphy@arm.com>
Thu, 21 Jan 2021 14:09:42 +0000 (14:09 +0000)
committerWill Deacon <will@kernel.org>
Fri, 22 Jan 2021 13:19:32 +0000 (13:19 +0000)
commit86d2d9214880c1879cb0ff466cce2fcd9c853e44
treeafdf613cfbcb9e341abf34d0c36cd430c83a732d
parentd8498b1e4ecc75d023c59acb30e15e3d8d8f07ea
iommu/arm-smmu-v3: Remove the page 1 fixup

Since we now keep track of page 1 via a separate pointer that already
encapsulates aliasing to page 0 as necessary, we can remove the clunky
fixup routine and simply use the relevant bases directly. The current
architecture spec (IHI0070D.a) defines SMMU_{EVENTQ,PRIQ}_{PROD,CONS} as
offsets relative to page 1, so the cleanup represents a little bit of
convergence as well as just lines of code saved.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/08d9bda570bb5681f11a2f250a31be9ef763b8c5.1611238182.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h