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 8A14C39DBEF for ; Tue, 31 Mar 2026 12:54:53 +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=1774961696; cv=none; b=ZgCkKs7sHKGDGX0IsIli7iaPjIKXJ2lfX1vZaG9ADF65qJhKzSc+LSJmnJtnGP5c+gmXe7mHCpoLL93ORAqy6v2r/xYqDGMdW2N2LQvQCSI7/wBc5wvQaCk4GfXasyhWmHrp1ByJBYibgNj0uMBmX+mQZECVrlCP5MUH3xGScig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774961696; c=relaxed/simple; bh=ibZ6nxLNuq06q+d4TEtpxm9JQ5RE3Xuh9P+N+4MIkjE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=T5346UsmlNycTI/Uh5QYbBjU+MK2X1D+odsXn+0jHYbwck/wmBknfoNXsmY/bicKb4orTaYiiW6r9uAS7ILYwI2OkPWmO3kOS9NjDNnc/uSB18Kf6N4IvBbi5LVIOCBP1SPRGCOkhs7yNB6Z439QXyzZ2PXnkEahLh/n/leKlXY= 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=CWpV19df; 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="CWpV19df" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20260331125445euoutp01c68ce75ce2015c016593301ebd03da36~h7j-AyXYt2184221842euoutp01K for ; Tue, 31 Mar 2026 12:54:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20260331125445euoutp01c68ce75ce2015c016593301ebd03da36~h7j-AyXYt2184221842euoutp01K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1774961685; bh=UDPXxR0SE4tZo6SAHEuDV5VawAn9RHxLdc/GV2ahcmY=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=CWpV19dfi3aKCVmn65P/Kj4WMSYU8Y008v7a6iPLjcfr/70u3PHFeMS5bxMdiMZpP x/IkU/FWyfkJr5Axx5dbEaTf6T8Qg4Y9YfiHyfr+sfBLQplBnBvNX4Aus8e4NcZB65 FW/pNTtgcFQ0o4nh7Ov1X224Nh/y5TEPxJRmUrRA= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20260331125445eucas1p25ed7c9b6e702e473313d0de397658d96~h7j_m4aJp0030700307eucas1p2_; Tue, 31 Mar 2026 12:54:45 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20260331125442eusmtip20a0364ea267d99390b05fc4b52f918c4~h7j8E31Ay2848828488eusmtip2b; Tue, 31 Mar 2026 12:54:42 +0000 (GMT) Message-ID: <46397de2-eedf-4e09-a83a-3b683d154fe7@samsung.com> Date: Tue, 31 Mar 2026 14:54:41 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Betterbird (Windows) Subject: Re: [PATCH v4 0/8] dma-buf: heaps: Turn heaps into modules To: Maxime Ripard , 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 Cc: 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: <20260331-dma-buf-heaps-as-modules-v4-0-e18fda504419@kernel.org> Content-Transfer-Encoding: 7bit X-CMS-MailID: 20260331125445eucas1p25ed7c9b6e702e473313d0de397658d96 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260331100026eucas1p19bdc2aaca4c9a48c6f6ac8fec71478d8 X-EPHeader: CA X-CMS-RootMailID: 20260331100026eucas1p19bdc2aaca4c9a48c6f6ac8fec71478d8 References: <20260331-dma-buf-heaps-as-modules-v4-0-e18fda504419@kernel.org> On 31.03.2026 12:00, 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 Applied again patches 1-5 to my dma-mapping-for-next branch. I hope this time it won't cause new problems in linux-next. 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-v4 Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland