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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E29E6C4332F for ; Thu, 20 Jan 2022 14:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243586AbiATOAz (ORCPT ); Thu, 20 Jan 2022 09:00:55 -0500 Received: from verein.lst.de ([213.95.11.211]:44735 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234342AbiATOAz (ORCPT ); Thu, 20 Jan 2022 09:00:55 -0500 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) Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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.