Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81351
b: refs/heads/master
c: 3ca6644
h: refs/heads/master
i:
  81349: 631f5d3
  81347: 6f6348b
  81343: 7430505
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jan 25, 2008
1 parent f3cdef3 commit 037b464
Show file tree
Hide file tree
Showing 2 changed files with 5 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: bd83fbde5b87ba230db2ffdc70af563719792db1
refs/heads/master: 3ca6644e5cc6ee7700b158fd5b4e8c48899118c6
7 changes: 4 additions & 3 deletions trunk/arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ static void cell_iommu_setup_hardware(struct cbe_iommu *iommu, unsigned long siz
{
struct page *page;
int ret, i;
unsigned long reg, segments, pages_per_segment, ptab_size, n_pte_pages;
unsigned long xlate_base;
unsigned long reg, segments, pages_per_segment, ptab_size, stab_size,
n_pte_pages, xlate_base;
unsigned int virq;

if (cell_iommu_find_ioc(iommu->nid, &xlate_base))
Expand All @@ -328,7 +328,8 @@ static void cell_iommu_setup_hardware(struct cbe_iommu *iommu, unsigned long siz
__FUNCTION__, iommu->nid, segments, pages_per_segment);

/* set up the segment table */
page = alloc_pages_node(iommu->nid, GFP_KERNEL, 0);
stab_size = segments * sizeof(unsigned long);
page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(stab_size));
BUG_ON(!page);
iommu->stab = page_address(page);
clear_page(iommu->stab);
Expand Down

0 comments on commit 037b464

Please sign in to comment.