Skip to content

Commit

Permalink
[PATCH] powerpc: 64k pages vs. U3 iommu
Browse files Browse the repository at this point in the history
That DART (U3 iommu) code didn't properly scale the number of entries
when using !4k pages. That caused crashes when booting G5s with more
than 2Gb of RAM. This fixes it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Nov 10, 2005
1 parent 87655ff commit 47c2ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/u3_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static void iommu_table_u3_setup(void)
iommu_table_u3.it_busno = 0;
iommu_table_u3.it_offset = 0;
/* it_size is in number of entries */
iommu_table_u3.it_size = dart_tablesize / sizeof(u32);
iommu_table_u3.it_size = (dart_tablesize / sizeof(u32)) >> DART_PAGE_FACTOR;

/* Initialize the common IOMMU code */
iommu_table_u3.it_base = (unsigned long)dart_vbase;
Expand Down

0 comments on commit 47c2ac8

Please sign in to comment.