projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891671d
)
gpu: ion: ion_system_heap: Change allocations to GFP_HIGHUSER
author
Rebecca Schultz Zavin
<rebecca@android.com>
Thu, 7 Jun 2012 23:59:59 +0000
(16:59 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Mon, 1 Jul 2013 20:40:49 +0000
(13:40 -0700)
Previously the ion_system_heap was using GFP_KERNEL, forcing all allocations
to be in lowmem. This quickly causes us to run out of lowmem.
Change-Id: I6d502a5f1c20c8a8e44fb5903fcb228f8435a564
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_system_heap.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ion/ion_system_heap.c
b/drivers/gpu/ion/ion_system_heap.c
index 116e9231a6b49b473c7f9fb3fe38edcc9785269a..e1f2e71287d35c5fa564afd12119edd7cbe15e79 100644
(file)
--- a/
drivers/gpu/ion/ion_system_heap.c
+++ b/
drivers/gpu/ion/ion_system_heap.c
@@
-40,7
+40,7
@@
static int ion_system_heap_allocate(struct ion_heap *heap,
goto err0;
for_each_sg(table->sgl, sg, table->nents, i) {
struct page *page;
- page = alloc_page(GFP_
KERNEL
);
+ page = alloc_page(GFP_
HIGHUSER | __GFP_ZERO
);
if (!page)
goto err1;
sg_set_page(sg, page, PAGE_SIZE, 0);