From 2be425b809090cfe055a081db038912aa10b8205 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Thu, 28 Oct 2021 22:51:12 +0200 Subject: linux-fslc-imx: Enable ION DMA memory allocator for imx6 and imx7 The ION allocator is capable of allocating DMA memory blocks that are accessible through DMA-BUF. No other allocator has this feature, and ION is already enabled on all imx8 variants. In kernel 5.6, the dma-heap allocator is introduced, which replaces ION. Still, since Yocto Dunfell will not get a linux-imx version >= 5.6, enable ION to get a DMABUF-capable allocator also on imx6 and imx7 machines. Signed-off-by: Carlos Rafael Giani --- recipes-kernel/linux/linux-fslc-imx/imx/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-kernel/linux/linux-fslc-imx/imx/defconfig b/recipes-kernel/linux/linux-fslc-imx/imx/defconfig index 742400a9..8781d8bb 100644 --- a/recipes-kernel/linux/linux-fslc-imx/imx/defconfig +++ b/recipes-kernel/linux/linux-fslc-imx/imx/defconfig @@ -577,3 +577,5 @@ CONFIG_MAGIC_SYSRQ=y # CONFIG_DEBUG_PREEMPT is not set # CONFIG_DEBUG_BUGVERBOSE is not set # CONFIG_FTRACE is not set +CONFIG_ION=y +CONFIG_ION_CMA_HEAP=y -- cgit v1.2.3-54-g00ecf From 779e73370e172667b35f34c01632b9484930d0e7 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Thu, 28 Oct 2021 22:51:29 +0200 Subject: linux-imx: Enable ION DMA memory allocator for imx6 and imx7 The ION allocator is capable of allocating DMA memory blocks that are accessible through DMA-BUF. No other allocator has this feature, and ION is already enabled on all imx8 variants. In kernel 5.6, the dma-heap allocator is introduced, which replaces ION. Still, since Yocto Dunfell will not get a linux-imx version >= 5.6, enable ION to get a DMABUF-capable allocator also on imx6 and imx7 machines. Signed-off-by: Carlos Rafael Giani --- recipes-kernel/linux/linux-imx/imx/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-kernel/linux/linux-imx/imx/defconfig b/recipes-kernel/linux/linux-imx/imx/defconfig index 30792d23..7ac298a7 100644 --- a/recipes-kernel/linux/linux-imx/imx/defconfig +++ b/recipes-kernel/linux/linux-imx/imx/defconfig @@ -577,3 +577,5 @@ CONFIG_MAGIC_SYSRQ=y # CONFIG_DEBUG_PREEMPT is not set # CONFIG_DEBUG_BUGVERBOSE is not set # CONFIG_FTRACE is not set +CONFIG_ION=y +CONFIG_ION_CMA_HEAP=y -- cgit v1.2.3-54-g00ecf From 1468bcd5ad2302ad38f80e98d7b5cad1c146b54b Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Thu, 14 Apr 2022 23:35:45 +0200 Subject: linux-fslc: Enable ION DMA memory allocator for imx6 and imx7 The ION allocator is capable of allocating DMA memory blocks that are accessible through DMA-BUF. No other allocator has this feature, and ION is already enabled on all imx8 variants. In kernel 5.6, the dma-heap allocator is introduced, which replaces ION. Still, since Yocto Dunfell will not get a linux-imx version >= 5.6, enable ION to get a DMABUF-capable allocator also on imx6 and imx7 machines. Signed-off-by: Carlos Rafael Giani --- recipes-kernel/linux/linux-fslc/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-kernel/linux/linux-fslc/defconfig b/recipes-kernel/linux/linux-fslc/defconfig index dbb2387c..3526cee7 100644 --- a/recipes-kernel/linux/linux-fslc/defconfig +++ b/recipes-kernel/linux/linux-fslc/defconfig @@ -467,3 +467,5 @@ CONFIG_PROVE_LOCKING=y CONFIG_NET_SCHED=y CONFIG_NET_SCH_FQ_CODEL=y CONFIG_NET_SCH_FIFO=y +CONFIG_ION=y +CONFIG_ION_CMA_HEAP=y -- cgit v1.2.3-54-g00ecf From a926042526abaec91efb7744ab196fb2e393a790 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Thu, 28 Oct 2021 22:52:31 +0200 Subject: libixmdmabuffer: Enable ION for all imx machines With the imx6 and imx7 kernel configurations changed to have ION enabled, all imx machines that libimxdmabuffer supports are capable of using ION. Signed-off-by: Carlos Rafael Giani --- recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb index c1228b4d..b5ac6cd4 100644 --- a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb +++ b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb @@ -28,13 +28,11 @@ EXTRA_OECONF = "--imx-linux-headers-path=${STAGING_INCDIR_IMX} \ LIBG2D_PACKAGECONFIG = "g2d" LIBG2D_PACKAGECONFIG_imxdpu = "" -PACKAGECONFIG ?= " " +PACKAGECONFIG ?= " ion " PACKAGECONFIG_append_imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" PACKAGECONFIG_append_imxipu = " ipu" PACKAGECONFIG_append_imxpxp = " pxp" -PACKAGECONFIG_append_mx8m = " ion dwl" -PACKAGECONFIG_append_mx8qm = " ion" -PACKAGECONFIG_append_mx8qxp = " ion" +PACKAGECONFIG_append_mx8m = " dwl" HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" -- cgit v1.2.3-54-g00ecf