summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyu Yang <Jiyu.Yang@amlogic.com>2019-12-02 17:46:40 +0800
committerJiyu Yang <jiyu.yang@amlogic.com>2019-12-12 17:30:16 +0800
commitd94d41ce0e4fbd18ab6e79352780bf8677bbcccf (patch)
tree5263330f3d5e417793ffcd00f8292be572a8c29e
parent3b66c30b9185507a2866de5bdc8b216c025b8c60 (diff)
downloadmali-driver-android-tv-deadpool-4.9-android10.tar.gz
gpu: MALI_DMA_BUF_MAP_ON_DEMAND by default [1/1]android-tv-10.0.0_r0.1android-tv-deadpool-4.9-android10
PD#SWPL-18288 Problem: kernel still use the legacy mode Solution: 11.2 new DMA-BUF mapping from the Mali release note. From r18p0-01rel0 version of the DDK the DMA-BUF memory will be mapped for the GPU when it is imported into the DDK. This will reduce the CPU load by avoiding unnecessary work to build GPU page tables potentially every time the work using DMA-BUF memory is submitted to GPU. Verify: ac213 Change-Id: I6405790d84196961f6fcbedf813f212ea61a16e2 Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
-rwxr-xr-xgpu-v2.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu-v2.mk b/gpu-v2.mk
index beee450..9613e7c 100755
--- a/gpu-v2.mk
+++ b/gpu-v2.mk
@@ -78,7 +78,7 @@ define bifrost-modules
ARCH=$(3) CROSS_COMPILE=$(PREFIX_CROSS_COMPILE) \
EXTRA_CFLAGS="-DCONFIG_MALI_PLATFORM_DEVICETREE -DCONFIG_MALI_MIDGARD_DVFS -DCONFIG_MALI_BACKEND=gpu " \
EXTRA_CFLAGS+="-I$(shell pwd)/$(PRODUCT_OUT)/obj/bifrost/kernel/include " \
- EXTRA_CFLAGS+="-Wno-error=larger-than=16384 " \
+ EXTRA_CFLAGS+="-Wno-error=larger-than=16384 -DCONFIG_MALI_DMA_BUF_MAP_ON_DEMAND=1 -DCONFIG_MALI_DMA_BUF_LEGACY_COMPAT=0" \
EXTRA_LDFLAGS+="--strip-debug" \
CONFIG_MALI_MIDGARD=m CONFIG_MALI_PLATFORM_DEVICETREE=y CONFIG_MALI_MIDGARD_DVFS=y CONFIG_MALI_BACKEND=gpu