powerpc/ioda: Use ibm, supported-tce-sizes for IOMMU page size mask
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 14 May 2018 09:39:22 +0000 (19:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 May 2018 13:10:33 +0000 (23:10 +1000)
commit7ef73cd39b4e2829ee88c06f938bc7de5aff487f
treeedb84364ce5ec2123ed21976f3f56226151f663e
parent8ccb442dec0ab53eefb5a607e405f7f3cd02e57f
powerpc/ioda: Use ibm, supported-tce-sizes for IOMMU page size mask

At the moment we assume that IODA2 and newer PHBs can always do 4K/64K/16M
IOMMU pages, however this is not the case for POWER9 and now skiboot
advertises the supported sizes via the device so we use that instead
of hard coding the mask.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c