mali-driver: update build config for R [3/8]
authorAo Xu <ao.xu@amlogic.com>
Fri, 24 Apr 2020 09:49:51 +0000 (17:49 +0800)
committerbinqi zhang <binqi.zhang@amlogic.com>
Mon, 2 Nov 2020 06:55:30 +0000 (01:55 -0500)
PD#SWPL-35312

Problem:
nedd add dma buf map on demand config

Solution:
add CONFIG_MALI_DMA_BUF_MAP_ON_DEMAND

Verify:
newton

Change-Id: Ibd1bf64e4aede72592c3c84d9d5bcea226090cc8
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
bifrost/Makefile

index 0ab55a0b2b8b10aeb3f6c0ee4846e03f7c0772eb..77452952a23920f5d9bba6cceaf45d1269ee7dd2 100644 (file)
@@ -27,6 +27,7 @@ EXTRA_INCLUDE := -I$(KERNEL_SRC)/$(M)/../bifrost/$(GPU_DRV_VERSION)/kernel/drive
 modules:
        $(MAKE) -C $(KERNEL_SRC) M=$(M)/$(GPU_DRV_VERSION)/kernel/drivers/gpu/arm/midgard  \
        EXTRA_CFLAGS="-DCONFIG_MALI_PLATFORM_DEVICETREE -DCONFIG_MALI_MIDGARD_DVFS -DCONFIG_MALI_BACKEND=gpu " \
+       EXTRA_CFLAGS="-DCONFIG_MALI_DMA_BUF_MAP_ON_DEMAND=1 -DCONFIG_MALI_DMA_BUF_LEGACY_COMPAT=0 " \
        EXTRA_CFLAGS+="-Wno-error -Wno-pointer-sign -Wno-error=frame-larger-than= $(EXTRA_INCLUDE)" \
        EXTRA_LDFLAGS+="--strip-debug" \
        CONFIG_MALI_MIDGARD=m CONFIG_MALI_PLATFORM_DEVICETREE=y CONFIG_MALI_MIDGARD_DVFS=y CONFIG_MALI_BACKEND=gpu