]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfefebd5d4be9c54c0daf59738835e7b549e640c5
treeedb84364ce5ec2123ed21976f3f56226151f663e
parent7f064f5f26d2f64bf86bce3a75b16159d086ff53
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