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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC258C369C2 for ; Tue, 22 Apr 2025 05:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Jp1BQ9/+EuPOEcQR7XzppTvGeJjvmEgUtPnuk5uhhts=; b=HpjafOdoPSc5Y1C5UiAcalz0Bf vqOz/oRxz9Cn0RfnT4Rsz7EBO407WlBYRlEfwU2BQ3aOl7RHL9MJdiiNt1RP56Dm8JO/NTT6tOHYm vTWvocP7EUwaZfLVBfHKS/gJ1Pf4yG9LxSh0SbgD+BwvbldxHjMyz/dVXH/Z2DGA/nfAGXS30LH6C IbBJavlCygZ+qfhSVbGz/NV/bHunItBjk6vFfbqHftH2IH8bAiA56mzsHiL7At0w81qAiqGwd3k/d 0mch5MeD9RkewiRYoqwP5SHg7EQyJ+3qWMDVk7jP2dSo5992qF9LfITv3+FrVmlwnXHTWBG8zZu/T GLR1+xgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u75mg-00000005pKh-1djQ; Tue, 22 Apr 2025 05:03:02 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u75EL-00000005n7v-2ELP for linux-nvme@lists.infradead.org; Tue, 22 Apr 2025 04:27:34 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 17A2568C4E; Tue, 22 Apr 2025 06:27:28 +0200 (CEST) Date: Tue, 22 Apr 2025 06:27:27 +0200 From: Christoph Hellwig To: Leon Romanovsky Cc: Marek Szyprowski , Jens Axboe , Christoph Hellwig , Keith Busch , Jake Edge , Jonathan Corbet , Jason Gunthorpe , Zhu Yanjun , Robin Murphy , Joerg Roedel , Will Deacon , Sagi Grimberg , Bjorn Helgaas , Logan Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, Niklas Schnelle , Chuck Lever , Luis Chamberlain , Matthew Wilcox , Dan Williams , Kanchan Joshi , Chaitanya Kulkarni , Leon Romanovsky Subject: Re: [PATCH v8 20/24] blk-mq: add scatterlist-less DMA mapping helpers Message-ID: <20250422042727.GC27723@lst.de> References: <87b151a3791d71e58ec6f1b42bcf5fe06304cf80.1744825142.git.leon@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87b151a3791d71e58ec6f1b42bcf5fe06304cf80.1744825142.git.leon@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250421_212733_703923_283712C1 X-CRM114-Status: GOOD ( 12.86 ) X-Mailman-Approved-At: Mon, 21 Apr 2025 22:01:33 -0700 X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On Fri, Apr 18, 2025 at 09:47:50AM +0300, Leon Romanovsky wrote: > +#define blk_phys_to_page(_paddr) \ > + (pfn_to_page(__phys_to_pfn(_paddr))) The code can use phys_to_page now that that is provided kernel-wide instead this temporary helper.