diff options
author | Xianzhong <xianzhong.li@nxp.com> | 2018-11-10 02:37:56 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:35:14 +0800 |
commit | 12452d5e468403e0ca106b0c5110b3a2e74a161f (patch) | |
tree | 3630534d29420c1ac9c3d6dedf94fc151c004b4a /drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | |
parent | 0c3f35ec9f5a78c6706eb0f58b96cc2524a6ab2a (diff) |
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 <xianzhong.li@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | 6 |
1 files changed, 1 insertions, 5 deletions
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) |