iommu/arm-smmu-v3: Clean up address masking
authorRobin Murphy <robin.murphy@arm.com>
Mon, 26 Mar 2018 12:35:09 +0000 (13:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 13:12:04 +0000 (14:12 +0100)
commit1cf9e54e91aac61e1a6c2bbacd0b571c6ca09131
treeef94caaab995098fd59a605250ff63cb757693c9
parent940ded9c21fde7c47c64d5cc74e22300fb89e6b7
iommu/arm-smmu-v3: Clean up address masking

Before trying to add the SMMUv3.1 support for 52-bit addresses, make
things bearable by cleaning up the various address mask definitions to
use GENMASK_ULL() consistently. The fact that doing so reveals (and
fixes) a latent off-by-one in Q_BASE_ADDR_MASK only goes to show what a
jolly good idea it is...

Tested-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c