powerpc/iommu: Add it_page_shift field to determine iommu page size
This patch adds a it_page_shift field to struct iommu_table and initiliases it to 4K for all platforms. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
e589a4404f
commit
3a553170d3
@@ -138,8 +138,11 @@ static void iommu_table_iobmap_setup(void)
|
||||
pr_debug(" -> %s\n", __func__);
|
||||
iommu_table_iobmap.it_busno = 0;
|
||||
iommu_table_iobmap.it_offset = 0;
|
||||
iommu_table_iobmap.it_page_shift = IOBMAP_PAGE_SHIFT;
|
||||
|
||||
/* it_size is in number of entries */
|
||||
iommu_table_iobmap.it_size = 0x80000000 >> IOBMAP_PAGE_SHIFT;
|
||||
iommu_table_iobmap.it_size =
|
||||
0x80000000 >> iommu_table_iobmap.it_page_shift;
|
||||
|
||||
/* Initialize the common IOMMU code */
|
||||
iommu_table_iobmap.it_base = (unsigned long)iob_l2_base;
|
||||
|
Reference in New Issue
Block a user