From: Alexey Kardashevskiy Date: Fri, 5 Jun 2015 06:35:17 +0000 (+1000) Subject: powerpc/powernv/ioda2: Introduce helpers to allocate TCE pages X-Git-Tag: omap-for-v4.3/legacy-v2-signed~168^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aca6913f555176363cda21518ff79da7469ebd64;p=pandora-kernel.git powerpc/powernv/ioda2: Introduce helpers to allocate TCE pages This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This moves the code which allocates the actual TCE tables to helpers: pnv_pci_ioda2_table_alloc_pages() and pnv_pci_ioda2_table_free_pages(). These do not allocate/free the iommu_table struct. This enforces window size to be a power of two. This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy Reviewed-by: Gavin Shan Reviewed-by: David Gibson Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed