From 12452d5e468403e0ca106b0c5110b3a2e74a161f Mon Sep 17 00:00:00 2001 From: Xianzhong Date: Sat, 10 Nov 2018 02:37:56 +0800 Subject: MGS-4376 [#imx-1238] fix low performance with CMA allocator there are lots of PFNs busy message when run GPU tests: [ 622.370671] alloc_contig_range: [4ea70, 4ea7c) PFNs busy [ 626.518072] alloc_contig_range: [4ea90, 4ea9c) PFNs busy this problem is related with CMA migration for fragments, move CMA allocator after GFP to avoid memory migration, also fix CMA preempt for contiguous memory request. can improve CTS and gpubench benchmarks on M850D. Signed-off-by: Xianzhong --- drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c') diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c index 7e8eb1dd3838..bfd4f2fd2f82 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c @@ -1283,11 +1283,7 @@ gckOS_AllocateNonPagedMemory( gcmkASSERT(Flag & gcvALLOC_FLAG_CONTIGUOUS); - if (Os->allocatorLimitMarker) - { - Flag |= gcvALLOC_FLAG_CMA_LIMIT; - Flag |= gcvALLOC_FLAG_CMA_PREEMPT; - } + Flag |= gcvALLOC_FLAG_CMA_PREEMPT; /* Walk all allocators. */ list_for_each_entry(allocator, &Os->allocatorList, link) -- cgit v1.2.3