MGS-3778 [#imx-989] fix GPU performance regression with 6.2.4.p1
authorXianzhong <xianzhong.li@nxp.com>
Thu, 29 Mar 2018 11:46:42 +0000 (19:46 +0800)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:38 +0000 (18:46 +0800)
commit81ec079592cadb2f820ddeae01cffa13231fc940
treeaa544263f00a878bd78f4ac37673b768170af034
parent47d77eb8a67d2d1b8e1fdc5148bc40992ca0ad6e
MGS-3778 [#imx-989] fix GPU performance regression with 6.2.4.p1

the original patch will skip CMA memory allocation with CMA_LIMIT flag,
that enforces GPU memory allocation from virtual pool with MMU mapping,
then both 2D and 3D performance will have performance regression on i.MX6.

Revert "6.2.4.p1-0044-CL142820-check-flag-match-even-try-to-allocate-from-"

This reverts commit 8a8cbf389ad56dc49685ea078698087be867655a.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 951e42c0ec05d4cdaf739eadd5fd40c2b8321b10)
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.h
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c