From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (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 98D023D47DB for ; Fri, 27 Mar 2026 08:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774600439; cv=none; b=ggk6KuMnjqxXxpY2I7KU0NBv+Ne0geLAcjg5GcEC92GBfi0BoFn+/sKbJz1PJiyLcgFihemTkk+KxANvLWTUjPsaTMirxsSpubRtn/97HObDM6MoS38kTRkJItYDaapCebRODgPyKRoMnNCVW+5OHES6nf+UoX71eYDb5gaQu48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774600439; c=relaxed/simple; bh=WzMmMa1Bt6j90h3srxZSOCiF7+RyTWwsWjy324Y8Bv0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=MD9vLcBn0lloKddDizBvqG6nDXU21iaOHkRwloVGJcDYjx5ZJY2EBcF6sMZCzszUuXNZoSef+eCe0y06J6WG5PNFMgvhdbXRIJGLHgJg65BnFkNwiBQ4VMXrM54aN7u50x14GO87ynOf23Sw1e+FRx5P6VtpsCrj1bHFpYn36ZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=G7p00Q18; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="G7p00Q18" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20260327083354euoutp01650599230a52ed05b88868f950b64ded~gpbFywFLp2409024090euoutp01o for ; Fri, 27 Mar 2026 08:33:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20260327083354euoutp01650599230a52ed05b88868f950b64ded~gpbFywFLp2409024090euoutp01o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1774600434; bh=pWW1Ogs/ZdOFg15O/X78oW0BF6OEjLh6WF/GCRVR2Fw=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=G7p00Q18xvenjeqyltH6mDGbmCjnbLmz2xt4xjc/0A15A2MNdYsE6qRtkqkjdJgEE gWLsqVg5bPrhnWqa+Hz2FaO3aXds6+sd5qyVYDllRfVqvjnvDbjdP5yqsbpaHYcsUZ 6jzaUAxPti8cVzpoBKsCBq/O+Zm/0wll3crPN9rM= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20260327083354eucas1p2e649b550ecb5424fabb9ad899e26277a~gpbFbCkiN0771907719eucas1p2w; Fri, 27 Mar 2026 08:33:54 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20260327083352eusmtip241284ad9eaeb3b7cf68e4df2189c2fd0~gpbD2FF0k0181601816eusmtip2K; Fri, 27 Mar 2026 08:33:52 +0000 (GMT) Message-ID: <2cffa109-5b88-488f-9dfb-8709164dd9f8@samsung.com> Date: Fri, 27 Mar 2026 09:33:51 +0100 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Betterbird (Windows) Subject: Re: [PATCH v3 0/8] dma-buf: heaps: Turn heaps into modules To: Maxime Ripard Cc: Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?UTF-8?Q?Christian_K=C3=B6nig?= , Robin Murphy , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Albert Esteve , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-mm@kvack.org Content-Language: en-US From: Marek Szyprowski In-Reply-To: <20260320-cryptic-industrious-otter-5b696a@houat> Content-Transfer-Encoding: 8bit X-CMS-MailID: 20260327083354eucas1p2e649b550ecb5424fabb9ad899e26277a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260303101320eucas1p2eb4fea499364ef20825d0d73585a2555 X-EPHeader: CA X-CMS-RootMailID: 20260303101320eucas1p2eb4fea499364ef20825d0d73585a2555 References: <20260303-dma-buf-heaps-as-modules-v3-0-24344812c707@kernel.org> <20260320-cryptic-industrious-otter-5b696a@houat> On 20.03.2026 14:09, Maxime Ripard wrote: > On Fri, Mar 20, 2026 at 01:24:18PM +0100, Marek Szyprowski wrote: >> On 03.03.2026 11:13, Maxime Ripard wrote: >>> The recent introduction of heaps in the optee driver [1] made possible >>> the creation of heaps as modules. >>> >>> It's generally a good idea if possible, including for the already >>> existing system and CMA heaps. >>> >>> The system one is pretty trivial, the CMA one is a bit more involved, >>> especially since we have a call from kernel/dma/contiguous.c to the CMA >>> heap code. This was solved by turning the logic around and making the >>> CMA heap call into the contiguous DMA code. >>> >>> Let me know what you think, >>> Maxime >>> >>> 1: https://lore.kernel.org/dri-devel/20250911135007.1275833-4-jens.wiklander@linaro.org/ >>> >>> Signed-off-by: Maxime Ripard >> I'm okay with the kernel/dma/contiguous.c changes. I only wonder how to >> properly merge them. There are other pending changes to >> kernel/dma/contiguous.c file [1] and if they finally get reviewed, I >> would like to merge both via dma-mapping-for-next tree. Then I can >> provide a stable branch for merging the remaining dma-buf pathes. Is it >> okay for You? > That sounds reasonable to me I've applied patches 1-5 to my dma-mapping-for-next branch and resolved conflicts in the mentioned kernel/dma/contiguous.c file. Here is a stable branch to apply remaining dma-buf heaps patches: https://web.git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git/log/?h=dma-contig-for-7.1-modules-prep Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland