From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEEBCC83F09 for ; Tue, 8 Jul 2025 12:56:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 340676B031D; Tue, 8 Jul 2025 08:56:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 318766B031E; Tue, 8 Jul 2025 08:56:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 255966B031F; Tue, 8 Jul 2025 08:56:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 16BC36B031D for ; Tue, 8 Jul 2025 08:56:32 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id CB841BA0DF for ; Tue, 8 Jul 2025 12:56:31 +0000 (UTC) X-FDA: 83641096182.11.69D93C9 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf20.hostedemail.com (Postfix) with ESMTP id 42F9F1C000F for ; Tue, 8 Jul 2025 12:56:29 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=rUMpLiKt; spf=pass (imf20.hostedemail.com: domain of m.szyprowski@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=m.szyprowski@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1751979389; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7/XLYR0OqGT6q8wsQL9awTM8RahowyCK2kF3Lml5n78=; b=1dPoo93hvGVvi3XkH21sqD9oanve7NduCXb0pCctgDnOO/CF5ug6WFTnqRQnJgmFs1fJ8j Td5hSXEyahpAT1llKtci4Qqpqe7kLmfVBBDUcATZjK8qJ2ae4D3d0377UYabHLmwxvv6Ih zDpO0s2iNq/eqEmb3iB86jXydnCpu8s= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=rUMpLiKt; spf=pass (imf20.hostedemail.com: domain of m.szyprowski@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=m.szyprowski@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1751979389; a=rsa-sha256; cv=none; b=d3xnT8xdV/25rgQnDxoynpIZqzZ6dJbhichRi/J3/BSZJ7xlYQojhot/d1j9+p4sv8LrKN HqRRlg9rrAuaLhLK72k/d+v5dBqhVl4zPeo4p503chsoJ6BNKBQbp4svtLZBSkiyvq+fOs +U5psoZ8r91UqwV+tHvxjXpGp5Pt91w= Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20250708125626euoutp0177b81c5f57fc0a7e91491518fe7918dd~QR-hElZvJ0850208502euoutp015 for ; Tue, 8 Jul 2025 12:56:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20250708125626euoutp0177b81c5f57fc0a7e91491518fe7918dd~QR-hElZvJ0850208502euoutp015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1751979386; bh=7/XLYR0OqGT6q8wsQL9awTM8RahowyCK2kF3Lml5n78=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=rUMpLiKtylansmwZEOTSLIDw3e88apapi9cZUeM+VwB6dnZwW74YiawcqeB7aNHsz phmldqGZGmgcE5mbHZFMvy+/ua/qmdnZrQIXXdjq/6DIcaz3yi5eWLpP0dS+1ew2NU O2DMyf6ZjkU0E5KGbps8p5YBy+HTdwiEMA3XvUgM= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20250708125626eucas1p10fea4e2440d7273510ca606b8c879240~QR-go19vo0583905839eucas1p1z; Tue, 8 Jul 2025 12:56:26 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250708125622eusmtip2e8d499202aebc1a18605d526cd72bbdc~QR-dBQdu70489204892eusmtip2-; Tue, 8 Jul 2025 12:56:22 +0000 (GMT) Message-ID: <39d43309-9f34-48bc-a9ad-108c607ba175@samsung.com> Date: Tue, 8 Jul 2025 14:56:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/8] dma-mapping: migrate to physical address-based API To: Leon Romanovsky Cc: Christoph Hellwig , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Robin Murphy , Joerg Roedel , Will Deacon , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , =?UTF-8?Q?Eugenio_P=C3=A9rez?= , Alexander Potapenko , Marco Elver , Dmitry Vyukov , Masami Hiramatsu , Mathieu Desnoyers , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, iommu@lists.linux.dev, virtualization@lists.linux.dev, kasan-dev@googlegroups.com, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, Jason Gunthorpe Content-Language: en-US From: Marek Szyprowski In-Reply-To: <20250708120647.GG592765@unreal> Content-Transfer-Encoding: 8bit X-CMS-MailID: 20250708125626eucas1p10fea4e2440d7273510ca606b8c879240 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20250625131920eucas1p271b196cde042bd39ac08fb12beff5baf X-EPHeader: CA X-CMS-RootMailID: 20250625131920eucas1p271b196cde042bd39ac08fb12beff5baf References: <35df6f2a-0010-41fe-b490-f52693fe4778@samsung.com> <20250627170213.GL17401@unreal> <20250630133839.GA26981@lst.de> <69b177dc-c149-40d3-bbde-3f6bad0efd0e@samsung.com> <20250708110007.GF592765@unreal> <261f2417-78a9-45b8-bcec-7e36421a243c@samsung.com> <20250708120647.GG592765@unreal> X-Rspam-User: X-Rspamd-Queue-Id: 42F9F1C000F X-Rspamd-Server: rspam09 X-Stat-Signature: euc6zdueef8964jphbm3tsfo97jsffm8 X-HE-Tag: 1751979389-538752 X-HE-Meta: U2FsdGVkX1+Fwu+nhy165WjQDpqL5n6NJtHSAF6axExUXxd+6WBPDODncZXJaoUmtVsjgrz/XRXHsqVpvvdZEOb6VmlveIUp6FudEynTR5gOnQF/YeDtp7FqroRnT2FVI3aJMbuvm5aKwBXwMomSsREmg8I50VIYJLjtWCY3mSKhShwEHwJmSzcut0QH2tR762aavuXG/spW2JADZxE/aVXmJhWlrnhtvo+P0llxLatxsRN2pTDvhBL3VZe162uVrH+XUGMVsvPXURWaIgpUS4jMdmlJ+673+T1K2OT0vXkPWgoI0zn9kmk8MlbGJ0n2q+WK141CxJQKVP3cM4ttUO6eyIlzybpyO+TYhhsu4m5gr29nlgSxPk/J1SO8Vl8kzTTT8UNp439oeomybhzqzReg8rFbGuPdZhUCANydtG4vuJPyqI01dV3K+TUDp4hRnJ/jFtqDUInH+SKcq/6yIqgdK9HY5oyUQEEVN8rB80QhE80wSfqveFT4/u7d8ph7B6+CcBRJM8YXe+2byeBc8N3PWhDy6zsidja7YMRvjmNpDOzu73vUOhUG7QR7/JOfw8RucDnkeq1W+u7E7qLZhE/EdviCbieBSw9KUMnkCC8dgSMiWhQ2+eJecFFSoERfi9ULjv1zTboJtaMWfflhKECWgZJSj7ZjMrDM/T37NHmXX7oSivBUCGPwR3s3V1eHB5WdqF3vBsdqm7A3K18Gr1iyFl8DeixTgKHZB4BXLONQpXD3kZP2VEtT0t5UpEW90y7hDbjzkWO/604YIGJhbRo2HEtt/MWo3GN0SQGkgn/hnuXhXp/r/SaGldryt+npbkMMArdjMU1scq1jd7Gawb4ranufr7imt7bagL262C/91GdY4CWDLFaH9lvsYbTgNLQAFsyEvEXrpfGarHi8lxjz7YMcobMYr8+u1yo6+7hVW5EYbHdqxDknM0/Ddg88HL0gYCbPXbR9eGqw6kY iv2r9s+j QOmHrJNQaAr8mhOTxFBh7FUUaH1DfqVz3Ck+r8pRv/RrcwR6B5VPMlM6JDDXur/m1Y10LK0heVyAQCPFQiPw/ob+R1xSPgAdjyULCLyKDy4cnOZQ/wQ93RJFcWaLVUZlcoQH2 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 08.07.2025 14:06, Leon Romanovsky wrote: > On Tue, Jul 08, 2025 at 01:45:20PM +0200, Marek Szyprowski wrote: >> On 08.07.2025 13:00, Leon Romanovsky wrote: >>> On Tue, Jul 08, 2025 at 12:27:09PM +0200, Marek Szyprowski wrote: >>>> On 30.06.2025 15:38, Christoph Hellwig wrote: >>>>> On Fri, Jun 27, 2025 at 08:02:13PM +0300, Leon Romanovsky wrote: >>>>>>> Thanks for this rework! I assume that the next step is to add map_phys >>>>>>> callback also to the dma_map_ops and teach various dma-mapping providers >>>>>>> to use it to avoid more phys-to-page-to-phys conversions. >>>>>> Probably Christoph will say yes, however I personally don't see any >>>>>> benefit in this. Maybe I wrong here, but all existing .map_page() >>>>>> implementation platforms don't support p2p anyway. They won't benefit >>>>>> from this such conversion. >>>>> I think that conversion should eventually happen, and rather sooner than >>>>> later. >>>> Agreed. >>>> >>>> Applied patches 1-7 to my dma-mapping-next branch. Let me know if one >>>> needs a stable branch with it. >>> Thanks a lot, I don't think that stable branch is needed. Realistically >>> speaking, my VFIO DMA work won't be merged this cycle, We are in -rc5, >>> it is complete rewrite from RFC version and touches pci-p2p code (to >>> remove dependency on struct page) in addition to VFIO, so it will take >>> time. >>> >>> Regarding, last patch (hmm), it will be great if you can take it. >>> We didn't touch anything in hmm.c this cycle and have no plans to send PR. >>> It can safely go through your tree. >> Okay, then I would like to get an explicit ack from Jérôme for this. > Jerome is not active in HMM world for a long time already. > HMM tree is managed by us (RDMA) https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/log/?h=hmm > ➜ kernel git:(m/dmabuf-vfio) git log --merges mm/hmm.c > ... > Pull HMM updates from Jason Gunthorpe: > ... > > https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=58ba80c4740212c29a1cf9b48f588e60a7612209 > +hmm git git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git#hmm > > We just never bothered to reflect current situation in MAINTAINERS file. Maybe this is the time to update it :) I was just a bit confused that no-one commented the HMM patch, but if You maintain it, then this is okay. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland