[PATCH 2/4] ARM: gemini: Enable DMA CMA for display buffers

Linus Walleij linusw at kernel.org
Sun Nov 8 14:28:25 PST 2026


Enable the DMA contiguous memory allocator for the existing TVE200
GEM DMA display driver. CONFIG_CMA alone does not enable the default
DMA CMA allocation pool.

Size the pool as a percentage of RAM so that it scales across Gemini
boards with different memory sizes. Keep the default percentage of 10
instead of reserving the default fixed 16 MiB.
---
 arch/arm/configs/gemini_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/configs/gemini_defconfig b/arch/arm/configs/gemini_defconfig
index ff69a2b57ce9..081879a90d78 100644
--- a/arch/arm/configs/gemini_defconfig
+++ b/arch/arm/configs/gemini_defconfig
@@ -100,4 +100,6 @@ CONFIG_ROMFS_FS=y
 CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_CRYPTO_DEV_SL3516=y
+CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_SEL_PERCENTAGE=y
 CONFIG_DEBUG_FS=y

-- 
2.56.0




More information about the linux-arm-kernel mailing list