Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84874
b: refs/heads/master
c: 0e0b47a
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Feb 8, 2008
1 parent 155620b commit 580d517
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ccd05d086f82dba2ab117dcaf4a38cbb2863a439
refs/heads/master: 0e0b47abb71a2c4aed5895c01f41827dbd8a981c
12 changes: 12 additions & 0 deletions trunk/arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,18 @@ static int __init cell_iommu_fixed_mapping_init(void)
return -1;
}

/* We must have dma-ranges properties for fixed mapping to work */
for (np = NULL; (np = of_find_all_nodes(np));) {
if (of_find_property(np, "dma-ranges", NULL))
break;
}
of_node_put(np);

if (!np) {
pr_debug("iommu: no dma-ranges found, no fixed mapping\n");
return -1;
}

/* The default setup is to have the fixed mapping sit after the
* dynamic region, so find the top of the largest IOMMU window
* on any axon, then add the size of RAM and that's our max value.
Expand Down

0 comments on commit 580d517

Please sign in to comment.