powerpc/pseries/iommu: Add iommu_pseries_alloc_table() helper
authorLeonardo Bras <leobras.c@gmail.com>
Tue, 17 Aug 2021 06:39:21 +0000 (03:39 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Aug 2021 14:56:54 +0000 (00:56 +1000)
commit4ff8677a0b192a58d998d1d34fc5168203041a24
tree92bce06976e30e090090ad4f00dfd6d52bfdafc4
parent3c33066a21903076722a2881556a92aa3cd7d359
powerpc/pseries/iommu: Add iommu_pseries_alloc_table() helper

Creates a helper to allow allocating a new iommu_table without the need
to reallocate the iommu_group.

This will be helpful for replacing the iommu_table for the new DMA window,
after we remove the old one with iommu_tce_table_put().

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210817063929.38701-4-leobras.c@gmail.com
arch/powerpc/platforms/pseries/iommu.c