From d94d41ce0e4fbd18ab6e79352780bf8677bbcccf Mon Sep 17 00:00:00 2001 From: Jiyu Yang Date: Mon, 2 Dec 2019 17:46:40 +0800 Subject: [PATCH] gpu: MALI_DMA_BUF_MAP_ON_DEMAND by default [1/1] 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 --- gpu-v2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1