MGS-2698-3 [#imx-188] remove IMX8_CMA_LIMIT build config
authorXianzhong <xianzhong.li@nxp.com>
Mon, 6 Mar 2017 03:13:36 +0000 (11:13 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:35 +0000 (15:21 -0500)
commitb1b311474983449861e017bdfd7e08c70314f8a8
treee33438479fe83481aa5f7df48804f60975255368
parent498183c763e4de024457e7b7f03ab104f0cde557
MGS-2698-3 [#imx-188] remove IMX8_CMA_LIMIT build config

mScale has 32bit DDR and should disable CMA limit feature,
cannot distinguish mScale from DV/QM/QXP with the build config.

thus add runtime check to switch CMA allocator workaround for iMX8.
enable CMA limit workaround when system RAM has 4G above address.

Date: Mar 06, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/freescale/gc_hal_kernel_allocator_cma.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.config