From nobody Wed Jun 10 16:01:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9B733B4E83; Mon, 27 Apr 2026 10:05:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284315; cv=none; b=W8A+dR32qRypCL/7BHl/ZGVkIlLm0v9klBqWIM0AuzHhNDbaHcwwGYkeQkZ2eFhcKaDRYWuNPcbT3EGh0rk/T6kjc6pTET+0OjTQsPGJL3MwiWkcWbpklaKsDQ6QRDBFEux5CRXCaE3wmUn0gdcq99JJ21Z3JZuhUrNHU2awQCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284315; c=relaxed/simple; bh=DVp9SIjZvLo7LHKT0aFcqmpT0ICBVAk6Lir7Cpdt3so=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JahdIUgiDrFHiGZqfdzsExyUcH3NVG0YhK2L6TdFIU9XwVUK/xtGJSiCUoLkCOoBXne3WDjAcxaRqM8FqcOfBgjL4qg+7Tg7kP/W8+g9CSuGisIjueZ/HtSFUU5tbUXP6o63VmOj1cPblsqaUlNnwrV6kcXjLLvnGFDzzl1MPFI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EFEf02hj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EFEf02hj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AABDC2BCB6; Mon, 27 Apr 2026 10:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777284314; bh=DVp9SIjZvLo7LHKT0aFcqmpT0ICBVAk6Lir7Cpdt3so=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EFEf02hjKJBrla5RxATE172pEWa4DwdUWoWua5gh3m2gOPQoJLW+WbrcmdAD3D3/1 v99gfpc4meaM+99m+qRj4h34CwSX5RVI5zESaihlunB+cjRqQ4ZY6CjIso9DrEiu5k p4k/kcAxJjWOn4T3CVbTJ6U/a6sjPaeWykhDUU4NOSjDUDpnyOBC+KXnKoXA8YD5OD WHetiPxgajNyAhjj0KEHbGBd638DwjLjOCr9NKwwTyusWQ6v5uH+9G11HwdJ67pmIm WmVhOTB0btzdyI0xPowk3MtRXzGyWOrrCUMdDACeaFWP3xiG9SQviJx2tbBLzb9Asi 3zqiJ/wcrR8ug== From: Maxime Ripard Date: Mon, 27 Apr 2026 12:04:57 +0200 Subject: [PATCH v5 1/4] dma-buf: heaps: Export mem_accounting parameter Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260427-dma-buf-heaps-as-modules-v5-1-b6f5678feefc@kernel.org> References: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> In-Reply-To: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> To: Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?utf-8?q?Christian_K=C3=B6nig?= Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1058; i=mripard@kernel.org; h=from:subject:message-id; bh=DVp9SIjZvLo7LHKT0aFcqmpT0ICBVAk6Lir7Cpdt3so=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDJnvTS6tafvtvWv6mh+bl6Z8bN7Ru6CH7exr7qgFe/Z7H a2R+nKyuGMqC4MwJ4OsmCLLE5mw08vbF1c52K/8ATOHlQlkCAMXpwBMRN6WsT44uNxO4ATnvH+P vR0PGTDPVPP73xCyY9dW05dJv75PdZf9uMKjwPN4qpt7ys8zTwz2bWOszwvg/KmqaTpHLirus8l jZ6VL4n9ypinF5hj4vZJMWpPHuzHs4J6SlX0yOyc4lefe+lkAAA== X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D The mem_accounting kernel parameter is used by heaps to know if they should account allocations in their respective cgroup controllers. Since we're going to allow heaps to compile as modules, we need to export that variable. Reviewed-by: T.J. Mercier Signed-off-by: Maxime Ripard Acked-by: Andrew Davis --- drivers/dma-buf/dma-heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index ac5f8685a649..a76bf3f8b071 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -51,10 +51,11 @@ static DEFINE_XARRAY_ALLOC(dma_heap_minors); =20 bool __read_mostly mem_accounting; module_param(mem_accounting, bool, 0444); MODULE_PARM_DESC(mem_accounting, "Enable cgroup-based memory accounting for dma-buf heap allocations (de= fault=3Dfalse)."); +EXPORT_SYMBOL_NS_GPL(mem_accounting, "DMA_BUF_HEAP"); =20 static int dma_heap_buffer_alloc(struct dma_heap *heap, size_t len, u32 fd_flags, u64 heap_flags) { --=20 2.53.0 From nobody Wed Jun 10 16:01:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEE503B47CF; Mon, 27 Apr 2026 10:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284317; cv=none; b=L4wYayw7rNSsSJU9WtONtyTojJjTaWOAJdNAqBwQay0V0mzKZ65YITxkkaknBSS2zKzJxetsP3a2kBR+EiBguZt9SkiqitbyBJtZPG3hhpm1H2lDeBX+jk9P7cqW1kxDAlPm3V7YCPIBCl6MLbMUsVSoGOzeQMRyYT08rbji4bo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284317; c=relaxed/simple; bh=DgPZwjzTFCrRVafEvDDt8RvwW+K7/Y0nWv4ZA667X40=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dWgaXgs6oRJOfee2E6YuHg5Ahkh66jTC45ZciRzcb793o8thxaOPRG0YTN4w0mvj2qajWS38RN+QO4jM2+/L/mGx4HgtM/YnqU/M/M5pMV8nDAk7cPK/z/ZV03U518T6lyHcHek1r3wsMoD3j3ECWYUdAzlk472Oh/Dmvgl8zwU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XYDX8QIv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XYDX8QIv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E2E4C2BCB8; Mon, 27 Apr 2026 10:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777284317; bh=DgPZwjzTFCrRVafEvDDt8RvwW+K7/Y0nWv4ZA667X40=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XYDX8QIv5rn6XF6AN3mOs8DUJBbHzQ4lcb6GLGW4Ex+wswcwryiFJRPGWOGkSiFDA N5qaLLQldCWzxADjPFUxa3SX2HHiz5Vj9Sd0E4qZPKnU3/yBKYKYnSNxE0SeGoG6T+ sSA8STxJC9vlPYvlIyobICgLPT5lctMnflKiPBQXRmPrkMGTw7K1/2O84alAAG+Ugz wSYmwb9ud5CQEbiztSggvtcdkopqBZ9w4O+Ht+1UQPvl7riDL4puO6W6u3gG2rWpjY SOA3v+eY2hdrTOgCxtpyj3EJvVo8juB9D5ZAO4TxbA5EEVfI3nAQAnKMQTTX1U3Pfi tiqXc9mMgbRUQ== From: Maxime Ripard Date: Mon, 27 Apr 2026 12:04:58 +0200 Subject: [PATCH v5 2/4] dma-buf: heaps: cma: Turn the heap into a module Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260427-dma-buf-heaps-as-modules-v5-2-b6f5678feefc@kernel.org> References: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> In-Reply-To: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> To: Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?utf-8?q?Christian_K=C3=B6nig?= Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1748; i=mripard@kernel.org; h=from:subject:message-id; bh=DgPZwjzTFCrRVafEvDDt8RvwW+K7/Y0nWv4ZA667X40=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDJnvTS7H/mDasOzXil2rF2y4GBjeWc2Xfag1r22CsoURM 9P/7NwbHVNZGIQ5GWTFFFmeyISdXt6+uMrBfuUPmDmsTCBDGLg4BWAie30Z6+zcFMpK9LdFno2d KrJ3quyj8u91q/tDKuYwnq5Y6Mux+ew22dTMJweUVrH0Xqk1/1UpxFgfmnwu7ZC91dyFuZk85xo 5Lwdej35VIPdbv0ug+uvy/l+/LF7vW16tpSbieNL72oxrCoIA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D All the symbols used by the CMA heap are already exported, so turning it into a module is straightforward. We only need to add the usual MODULE_* macros, import the proper namespaces and change the Kconfig symbol to a tristate. This heap won't be able to unload though, since we're missing a lot of infrastructure to make it safe. Reviewed-by: T.J. Mercier Signed-off-by: Maxime Ripard Acked-by: Andrew Davis --- drivers/dma-buf/heaps/Kconfig | 2 +- drivers/dma-buf/heaps/cma_heap.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dma-buf/heaps/Kconfig b/drivers/dma-buf/heaps/Kconfig index a5eef06c4226..aed0b9b4febf 100644 --- a/drivers/dma-buf/heaps/Kconfig +++ b/drivers/dma-buf/heaps/Kconfig @@ -4,11 +4,11 @@ config DMABUF_HEAPS_SYSTEM help Choose this option to enable the system dmabuf heap. The system heap is backed by pages from the buddy allocator. If in doubt, say Y. =20 config DMABUF_HEAPS_CMA - bool "DMA-BUF CMA Heap" + tristate "DMA-BUF CMA Heap" depends on DMABUF_HEAPS && DMA_CMA help Choose this option to enable dma-buf CMA heap. This heap is backed by the Contiguous Memory Allocator (CMA). If your system has these regions, you should say Y here. diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps/cma_h= eap.c index a359aac45579..3fb4b946c91a 100644 --- a/drivers/dma-buf/heaps/cma_heap.c +++ b/drivers/dma-buf/heaps/cma_heap.c @@ -418,5 +418,8 @@ static int __init add_cma_heaps(void) =20 return 0; } module_init(add_cma_heaps); MODULE_DESCRIPTION("DMA-BUF CMA Heap"); +MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("DMA_BUF"); +MODULE_IMPORT_NS("DMA_BUF_HEAP"); --=20 2.53.0 From nobody Wed Jun 10 16:01:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFA203B47CF; Mon, 27 Apr 2026 10:05:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284320; cv=none; b=CeJ1eNOnXmt4tvU/CuBQJt+IBES/FNK8CJIA6qnq9w8ghvePvOjDF7h4L/CrLzb0sWSWlXpASRHTKBTbLYSMJXUz2woRiHWgTCw6cL8WMcq1LpF9ha+OF7TC2TMhjrmFIObKpTTcao4PT4MOTrHxcakGLK+CL0q/qGNfyziIZpo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284320; c=relaxed/simple; bh=w3bOeqsmZCH7lExtgu4jad1VQEqY+xcph4TYjp2BMBI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r8NmwRTKqDC6neeti3n4RPTlEFJGEC+IE+P/4rOvMXuEPUGUVHpc3SFz34g/Mvi4NJ5rRgGIv8he8TLJqu8xaNZuWfpc0MG69arbWwdk+NJtmokCgHWipX29sEnMc8BZ93KPLyc5o3g/NRBRlQaw94PFqbAUUtJY8ojWjo5TjV4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B5VJ4nOm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B5VJ4nOm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FBAEC19425; Mon, 27 Apr 2026 10:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777284320; bh=w3bOeqsmZCH7lExtgu4jad1VQEqY+xcph4TYjp2BMBI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=B5VJ4nOma41s0tSADfOQR9W2KboiZ5piD1EE8wKy7Lp4uDXsd1vc5IH93y0jHLFlR qtU63wIhGahoxYHjENb8zzEGdVdvxiLtrqtee3WW4KzOhksF+gfTzSm02/0fDCRWMm bxlZPUWPJASgvS/Du7waektZBrDivA6Lnk87fEJQcY0TbvVAV9QPwtl+B1w/3Sb2vq iUSdEJPtrQ/jPlyjGWg1Q98AGkBnzOA0UYoUPgan+VqpsB7agz7Si+D3FxcJ4ytyL2 qfYhZEEcead9FXCFlNR4Rx8iDk4wy3sVjc4Qzht4v5hcUyEJfSq3MEANulSG414zbq wR7Jh9aN2otRg== From: Maxime Ripard Date: Mon, 27 Apr 2026 12:04:59 +0200 Subject: [PATCH v5 3/4] dma-buf: heaps: system: Turn the heap into a module Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260427-dma-buf-heaps-as-modules-v5-3-b6f5678feefc@kernel.org> References: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> In-Reply-To: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> To: Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?utf-8?q?Christian_K=C3=B6nig?= Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1533; i=mripard@kernel.org; h=from:subject:message-id; bh=w3bOeqsmZCH7lExtgu4jad1VQEqY+xcph4TYjp2BMBI=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDJnvTS5vnmz6+F/G9plFi7m0fTbkP81zXaDF2F544c+9S 59jL6kKdUxlYRDmZJAVU2R5IhN2enn74ioH+5U/YOawMoEMYeDiFICJWC1lrK850i/wLebzr0Th XVO3qn+pPar2QHHF+Zyz7bfXi8ZUvXm0abfdnJU/Xr57aiJ10vG5mRljw/tXr6vY76X/jPKwvBj 35oCe/YrXpXs77kax7QqTeqtddMs7bEl4RVVbzWfNq3MuV9SbAgA= X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D The system heap can be easily turned into a module by adding the usual MODULE_* macros, importing the proper namespaces and changing the Kconfig symbol to a tristate. This heap won't be able to unload though, since we're missing a lot of infrastructure to make it safe. Reviewed-by: T.J. Mercier Signed-off-by: Maxime Ripard Acked-by: Andrew Davis --- drivers/dma-buf/heaps/Kconfig | 2 +- drivers/dma-buf/heaps/system_heap.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/dma-buf/heaps/Kconfig b/drivers/dma-buf/heaps/Kconfig index aed0b9b4febf..e273fb18feca 100644 --- a/drivers/dma-buf/heaps/Kconfig +++ b/drivers/dma-buf/heaps/Kconfig @@ -1,7 +1,7 @@ config DMABUF_HEAPS_SYSTEM - bool "DMA-BUF System Heap" + tristate "DMA-BUF System Heap" depends on DMABUF_HEAPS help Choose this option to enable the system dmabuf heap. The system heap is backed by pages from the buddy allocator. If in doubt, say Y. =20 diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/sy= stem_heap.c index 03c2b87cb111..c92bdec356fc 100644 --- a/drivers/dma-buf/heaps/system_heap.c +++ b/drivers/dma-buf/heaps/system_heap.c @@ -535,5 +535,10 @@ static int __init system_heap_create(void) return PTR_ERR(sys_heap); =20 return 0; } module_init(system_heap_create); + +MODULE_DESCRIPTION("DMA-BUF System Heap"); +MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("DMA_BUF"); +MODULE_IMPORT_NS("DMA_BUF_HEAP"); --=20 2.53.0 From nobody Wed Jun 10 16:01:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 192E43B47CF; Mon, 27 Apr 2026 10:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284324; cv=none; b=Kr00yEMRK9Qw9x9tdpbOVVqO97H4SMZHnGOJDUnIOcboWjXUjFe8ShClT4ZMU7KNOrAxbxGurUzIq59e6/q3HZlEUso29pwx64Ff8wXGv86qq9Q6xh5ViDtlimq1ySZxipN6ySgWm/baLTCsoPw5jMYHxLaNO55i76QzA+UrHP8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777284324; c=relaxed/simple; bh=SVndXsE+vJSoc4y2vve+10Txah65FmuiC7sQ9fs8HE8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=e4xqL4zbRq98rjDkLfPmhFplqlPMMcU3qhqfEgZGWsSzSGX+vTD4Kja9jen8ikWIOobHKgCxB/ACeRuaVbtVvQRNR9NfZNxoWojfZRqeRfoArQakfidA0r3JU0VIfdMLO+X62eq+CCYsDc/uU0J2uBk+T6mWNqW4fCQLdV6rKg8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p5Y3aQ6H; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p5Y3aQ6H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6142DC2BCB4; Mon, 27 Apr 2026 10:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777284323; bh=SVndXsE+vJSoc4y2vve+10Txah65FmuiC7sQ9fs8HE8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=p5Y3aQ6H388MRcQSXsJOmzF+Zbin0sXYZZt7q8zabS8xAXmcb1ohs9LMpzgKpVp2z 4GYNFwHort4UgTH+gH6ZhYr7trtai120IYj6dwt75PRg0KR8NWZbQTf2aJVxJ30ST2 DJPELv7KL2MffykRgEABtrzjEJIWQNxwgb0HFNYOyOZh4Ej9a3bCBgJzubQnHA173H wOiEi8h356an+RTQ6pnAohok8pH999HcFEyTGpFDlIJWgqTS7GoYDh4PMsy38fjEFb DIot8Y6VNuUkjwZFs1z6DJM0Jcn3cLYc9g97CS1RNfbYNADVHZrmFBdGei0KyZrw5q bovyz6vkxKlBQ== From: Maxime Ripard Date: Mon, 27 Apr 2026 12:05:00 +0200 Subject: [PATCH v5 4/4] arm64: defconfig: Enable dma-buf heaps Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260427-dma-buf-heaps-as-modules-v5-4-b6f5678feefc@kernel.org> References: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> In-Reply-To: <20260427-dma-buf-heaps-as-modules-v5-0-b6f5678feefc@kernel.org> To: Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?utf-8?q?Christian_K=C3=B6nig?= Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=801; i=mripard@kernel.org; h=from:subject:message-id; bh=SVndXsE+vJSoc4y2vve+10Txah65FmuiC7sQ9fs8HE8=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDJnvTa7kWk5615wvcTb0/pRpj5dwVL3MeMGr63RFIeF67 ATGk+XlHVNZGIQ5GWTFFFmeyISdXt6+uMrBfuUPmDmsTCBDGLg4BWAi8f8ZG267Jr6UuCmx/qjX 4eIlm+R55sVfTElyqVq48FLK2ZM/Dx+p/C647KLZ6ou6j1e+P1r15D5jJePy+fypp/cvt/oQlOZ cJVWpkMX9/82/0EX7lz9gsFl/Us58XuXPirkFmRtZzj7u15FhAQA= X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D Now that the system and CMA heaps can be built as modules, enable both as modules in the arm64 defconfig. Signed-off-by: Maxime Ripard Acked-by: Andrew Davis --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d905a0777f93..f33193b50e6b 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1409,10 +1409,13 @@ CONFIG_RCAR_DMAC=3Dy CONFIG_RENESAS_USB_DMAC=3Dm CONFIG_RZ_DMAC=3Dy CONFIG_TI_K3_UDMA=3Dy CONFIG_TI_K3_UDMA_GLUE_LAYER=3Dy CONFIG_STM32_DMA3=3Dm +CONFIG_DMABUF_HEAPS=3Dy +CONFIG_DMABUF_HEAPS_SYSTEM=3Dm +CONFIG_DMABUF_HEAPS_CMA=3Dm CONFIG_VFIO=3Dy CONFIG_VFIO_PCI=3Dy CONFIG_VIRTIO_PCI=3Dy CONFIG_VIRTIO_BALLOON=3Dy CONFIG_VIRTIO_MMIO=3Dy --=20 2.53.0