Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330237
b: refs/heads/master
c: 7db90c0
h: refs/heads/master
i:
  330235: a99ab96
v: v3
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Sep 5, 2012
1 parent 89c47a0 commit bd74c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70267a7f47a5565519da5ca2dde35d3ebf7d6ffb
refs/heads/master: 7db90c0222efeae676baa2c72758fcc00666e84f
5 changes: 2 additions & 3 deletions trunk/arch/powerpc/platforms/pasemi/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <linux/pci.h>
#include <asm/iommu.h>
#include <asm/machdep.h>
#include <asm/abs_addr.h>
#include <asm/firmware.h>

#define IOBMAP_PAGE_SHIFT 12
Expand Down Expand Up @@ -99,7 +98,7 @@ static int iobmap_build(struct iommu_table *tbl, long index,
ip = ((u32 *)tbl->it_base) + index;

while (npages--) {
rpn = virt_to_abs(uaddr) >> IOBMAP_PAGE_SHIFT;
rpn = __pa(uaddr) >> IOBMAP_PAGE_SHIFT;

*(ip++) = IOBMAP_L2E_V | rpn;
/* invalidate tlb, can be optimized more */
Expand Down Expand Up @@ -258,7 +257,7 @@ void __init alloc_iobmap_l2(void)
return;
#endif
/* For 2G space, 8x64 pages (2^21 bytes) is max total l2 size */
iob_l2_base = (u32 *)abs_to_virt(memblock_alloc_base(1UL<<21, 1UL<<21, 0x80000000));
iob_l2_base = (u32 *)__va(memblock_alloc_base(1UL<<21, 1UL<<21, 0x80000000));

printk(KERN_INFO "IOBMAP L2 allocated at: %p\n", iob_l2_base);
}

0 comments on commit bd74c12

Please sign in to comment.