Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358821
b: refs/heads/master
c: f8669be
h: refs/heads/master
i:
  358819: 1bf1536
v: v3
  • Loading branch information
Marek Szyprowski committed Feb 25, 2013
1 parent e71c5b6 commit e2d7082
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 9848e48f4c316ccb64d6f29ff0ed85f11d7bf532
refs/heads/master: f8669bef11fadfe811a5d7d59cb327499edac088
9 changes: 7 additions & 2 deletions trunk/arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,12 +1095,17 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size,
return pages;
}

/*
* IOMMU can map any pages, so himem can also be used here
*/
gfp |= __GFP_NOWARN | __GFP_HIGHMEM;

while (count) {
int j, order = __fls(count);

pages[i] = alloc_pages(gfp | __GFP_NOWARN, order);
pages[i] = alloc_pages(gfp, order);
while (!pages[i] && order)
pages[i] = alloc_pages(gfp | __GFP_NOWARN, --order);
pages[i] = alloc_pages(gfp, --order);
if (!pages[i])
goto error;

Expand Down

0 comments on commit e2d7082

Please sign in to comment.