iommu/arm-smmu-v3: Manage ASIDs with xarray
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 19 May 2020 17:54:46 +0000 (19:54 +0200)
committerWill Deacon <will@kernel.org>
Thu, 21 May 2020 13:54:06 +0000 (14:54 +0100)
commit0299a1a81ca056e79c1a7fb751f936ec0d5c7afe
treea6e1bfa0161004080c6cbe5abe33e39871215713
parent52f3fab0067d6fa9e99c1b7f63265dd48ca76046
iommu/arm-smmu-v3: Manage ASIDs with xarray

In preparation for sharing some ASIDs with the CPU, use a global xarray to
store ASIDs and their context. ASID#0 is now reserved, and the ASID
space is global.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20200519175502.2504091-9-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c