From c6a9cd5cf535c1c23204c73e3a6827d553e104e7 Mon Sep 17 00:00:00 2001 From: Iliyan Malchev Date: Wed, 4 Feb 2015 19:35:25 -0800 Subject: [PATCH] kgsl: switch back to allocating from highmem Commit 344c3acdd8e436ccf7c4726422e2af85f5fb5a0a switched kgsl to allocating from highmem in page-sized chunks. While this reduced pressure on highmem, it may have increased pressure on lowmem to the point where lowmemorykiller activity due to GFP_KERNEL requests rose. b/19236185 Phone runs for about day, then apps start getting constantly killed by lowmemorykiller Change-Id: I92e82cc668cd10d8845d12e7c1bad6d980bc3956 Signed-off-by: Iliyan Malchev --- drivers/gpu/msm/kgsl_sharedmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/msm/kgsl_sharedmem.c b/drivers/gpu/msm/kgsl_sharedmem.c index 2aa6655045c..06bc17387ce 100644 --- a/drivers/gpu/msm/kgsl_sharedmem.c +++ b/drivers/gpu/msm/kgsl_sharedmem.c @@ -612,7 +612,7 @@ _kgsl_sharedmem_page_alloc(struct kgsl_memdesc *memdesc, while (len > 0) { struct page *page; - page = alloc_page(GFP_KERNEL | __GFP_ZERO); + page = alloc_page(GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO); if (page == NULL) { /*