]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
imx: cortexa53: enable DMA contiguous memory allocator 21950/head
authorTim Harvey <tharvey@gateworks.com>
Mon, 9 Feb 2026 17:30:10 +0000 (09:30 -0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 27 Feb 2026 10:02:05 +0000 (11:02 +0100)
Enable and configure DMA contiguous memory allocator. Without this
CMA itself will be disabled.

Fixes: ae8bf1a26e15 ("imx: add imx8m support")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/21950
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/imx/cortexa53/config-default

index 95e6d48bb0479cce5c49a399a64587b400f5ff39..3a946c7647d2d5cb50336d863c131c132a86f40a 100644 (file)
@@ -65,7 +65,13 @@ CONFIG_CRYPTO_SHA512_ARM64_CE=y
 # CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND is not set
 CONFIG_DEVFREQ_GOV_USERSPACE=y
 # CONFIG_DEVFREQ_THERMAL is not set
-# CONFIG_DMA_CMA is not set
+CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_MBYTES=32
+CONFIG_CMA_SIZE_SEL_MBYTES=y
+# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
+# CONFIG_CMA_SIZE_SEL_MIN is not set
+# CONFIG_CMA_SIZE_SEL_MAX is not set
+CONFIG_CMA_ALIGNMENT=8
 CONFIG_DMA_DIRECT_REMAP=y
 # CONFIG_DRM_IMX_DCSS is not set
 CONFIG_DUMMY_CONSOLE=y