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 D7E2CC433F5 for ; Thu, 20 Jan 2022 14:00:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 49D7A6B0095; Thu, 20 Jan 2022 09:00:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 426146B0098; Thu, 20 Jan 2022 09:00:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C6B96B0099; Thu, 20 Jan 2022 09:00:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 19EF56B0095 for ; Thu, 20 Jan 2022 09:00:54 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id CAA37181A5F99 for ; Thu, 20 Jan 2022 14:00:53 +0000 (UTC) X-FDA: 79050826386.26.7872D03 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by imf02.hostedemail.com (Postfix) with ESMTP id 3C2CF80016 for ; Thu, 20 Jan 2022 14:00:53 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 6DCC668C4E; Thu, 20 Jan 2022 15:00:48 +0100 (CET) Date: Thu, 20 Jan 2022 15:00:47 +0100 From: Christoph Hellwig To: Jason Gunthorpe Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, Christoph Hellwig , Joao Martins , John Hubbard , Logan Gunthorpe , Ming Lei , linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org, linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org, nvdimm@lists.linux.dev Subject: Re: Phyr Starter Message-ID: <20220120140047.GB11223@lst.de> References: <20220111004126.GJ2328285@nvidia.com> <20220111150142.GL2328285@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220111150142.GL2328285@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Rspamd-Queue-Id: 3C2CF80016 X-Stat-Signature: 175hdtpz39gpacr8pn9gam8hr7ri4zek Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=none; spf=none (imf02.hostedemail.com: domain of hch@lst.de has no SPF policy when checking 213.95.11.211) smtp.mailfrom=hch@lst.de X-Rspamd-Server: rspam06 X-HE-Tag: 1642687253-469818 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: On Tue, Jan 11, 2022 at 11:01:42AM -0400, Jason Gunthorpe wrote: > Then we are we using get_user_phyr() at all if we are just storing it > in a sg? I think we need to stop calling the output of the phyr dma map helper a sg. Yes, a { dma_addr, len } tuple is scatter/gather I/O in its purest form, but it will need a different name in Linux as the scatterlist will have to stay around for a long time before all that mess is cleaned up.