From f3f8fd9a086f7ce75e4a41c5653e10380ba57245 Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Thu, 26 Sep 2024 15:19:42 +0100 Subject: [PATCH] configs: Enable TRANSPARENT_HUGEPAGE_MADVISE Upstream v3d patches are adding support for big (64K) and super (1MB) pages, which require these options. See: https://lore.kernel.org/dri-devel/20240923141348.2422499-1-mcanal@igalia.com/ There are also some potential performance benefits linked from: https://github.com/raspberrypi/linux/pull/6297 Signed-off-by: Dom Cobley --- arch/arm64/configs/bcm2711_defconfig | 2 ++ arch/arm64/configs/bcm2712_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm64/configs/bcm2711_defconfig b/arch/arm64/configs/bcm2711_defconfig index 18fef72d0e6ae9..435df667a70cc8 100644 --- a/arch/arm64/configs/bcm2711_defconfig +++ b/arch/arm64/configs/bcm2711_defconfig @@ -77,6 +77,8 @@ CONFIG_BINFMT_MISC=m CONFIG_ZSWAP=y CONFIG_Z3FOLD=m # CONFIG_COMPAT_BRK is not set +CONFIG_TRANSPARENT_HUGEPAGE=y +CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y CONFIG_CMA=y CONFIG_LRU_GEN=y CONFIG_LRU_GEN_ENABLED=y diff --git a/arch/arm64/configs/bcm2712_defconfig b/arch/arm64/configs/bcm2712_defconfig index ae9c57e28ee2a1..4b6cecf2b477e3 100644 --- a/arch/arm64/configs/bcm2712_defconfig +++ b/arch/arm64/configs/bcm2712_defconfig @@ -80,6 +80,8 @@ CONFIG_BINFMT_MISC=m CONFIG_ZSWAP=y CONFIG_Z3FOLD=m # CONFIG_COMPAT_BRK is not set +CONFIG_TRANSPARENT_HUGEPAGE=y +CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y CONFIG_CMA=y CONFIG_LRU_GEN=y CONFIG_LRU_GEN_ENABLED=y