Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1090492pxb; Wed, 29 Sep 2021 17:02:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFQ/VXvouS/bFIhCH2VuMcu++/oCXSwMuuOjZe3CiqytTUb2uO4KvTboxflteWvH/EomfF X-Received: by 2002:a62:76c5:0:b0:44b:1f61:ccfa with SMTP id r188-20020a6276c5000000b0044b1f61ccfamr1181800pfc.31.1632960148758; Wed, 29 Sep 2021 17:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632960148; cv=none; d=google.com; s=arc-20160816; b=WriVqD292PL0U6aCg/yaVY8Mb5udYIQXAd8eglL8gGkmlDOEMxzxPAjoz5rgOFv2zX HBhzKQYUGCVoDClwwneSKuhymVIvaKE8852tB4uFnAcHVomXwZ5DllMtYqYjvadXqhOQ +XWkYqcS2zXMvTzZ9SJ+4qAfwsVa8RT9U8FL1fPg+/bigahD/zB9VSWRKcP3uXRmbpbc xJ//ivJDsE64WBrUfbu/0HmwF38p9erwuo4WCkiWzFWeV3jf8uZLQfZ0xr+/i5lZmu5+ Y8y0Os7sVh0lRPxYKJreCP07VryUv153SWbolqpxcHX8AGiO8BpQZVMGUEGsmqXxk4ow ZhEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1Hmlahc/i9658U3YzBDCjabD8lk1Mv+/ZOzt2omk2Ho=; b=JVU+i4+589FDty3ewFwyNlvYIutn6j+aKXU5h2Mh9SZdXvoEkitlqV7mKrIBCQQ59e qILIT7CgWKQ4QyRXVswgzjnLPdBHcheoO+opA7J1lw2f8RgImNIArEtHAajRPC0XJGJt Qk1muGKmfRGLi51bLFjglqXNA4M5PI20o6A8qH2qHRB8mqBpb0hof5n9TcC5Od2QHt7W ddUt+ah/MjqnudQpsU3fuUzzNUKnmIaC0IjADr4k+paDX6owO1XmasclcdhSR/k5T/MQ 7huD01Gz14rVgOhYW7XG5HnErBt0Fq+5qzxnTtt+lWk84L/lx+t0hDH3bFxb2UQaO5iH dpzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=SJtWHdnG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s196si1500656pfc.23.2021.09.29.17.01.55; Wed, 29 Sep 2021 17:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=SJtWHdnG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347539AbhI2XXe (ORCPT + 99 others); Wed, 29 Sep 2021 19:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347536AbhI2XXb (ORCPT ); Wed, 29 Sep 2021 19:23:31 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7515BC061768 for ; Wed, 29 Sep 2021 16:21:49 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id i132so4060756qke.1 for ; Wed, 29 Sep 2021 16:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1Hmlahc/i9658U3YzBDCjabD8lk1Mv+/ZOzt2omk2Ho=; b=SJtWHdnGo9L4mdll+qKaZsmtvpn7ds7Jqf9UErLrQmOsqRP3sxU8o3aw5o2MvhL5Mj lM03toh8ImPud8H7vh/AGGkl+3vURvGKxRBh5yeP3iqYJ3RXD4HkzTzjBF6Mgc3CyYL4 NPwaDU2c+i54bQ4atNBSa63XnbDUvexvPwjoCQkmNEdCUAl1T+QvgnRV98lCDddMEe7S LVFALRCv3M02kPjD9ocMpxen45b3XXJIbEyj72HfycWLiBpEdaWRxZc5TzgjO4IW95ia 6tYGEjCfhjevDUh3QKMgzT1YEh/Dp9tLfgFk0cHBocInRv2rBNOuuogJ3/Vn3OANJNLH kWlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1Hmlahc/i9658U3YzBDCjabD8lk1Mv+/ZOzt2omk2Ho=; b=f7NtMPKHjjKPbcCOnxAHG2Xd9zlwR78qDuoequm/l/CV3eKT3Tsydz/ZEeh1nnlITx f2SLKb8XzhZwV3aJOlJmvxH0rCP1ceMwhQCX1oeYWFj9+VgOv4AsHHW0QXhnJ7jiALsr aEzzUtmmkc4Fem16FdS+3KFuAQsBjxGqtVWFyqK4JxaJ/O5Ysb6cW2cVGde6JlvgWwo/ FpKJE189EgC5Jus9O5FDSS8ZHXRJJcPjl26O6Ryn278PMM3QiyvXKDDARJbfB5e9nJcx O+rWoGTmvY0jrxPa4UFuVLorWl8a0gAAELYAeePTzxY2MjT5aQLZQKaSyk0gXEjijVhL aDAg== X-Gm-Message-State: AOAM532iX4wpwxoGyh/cPozoHpvAW0J8/AfpJw4nfmzmXTlDdhNs4zPX 14XpDgFHDeQXOMoxW68VR+ZiMg== X-Received: by 2002:a37:b386:: with SMTP id c128mr2193672qkf.426.1632957708587; Wed, 29 Sep 2021 16:21:48 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id x3sm631017qkl.107.2021.09.29.16.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 16:21:48 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mVitX-007ii8-Gm; Wed, 29 Sep 2021 20:21:47 -0300 Date: Wed, 29 Sep 2021 20:21:47 -0300 From: Jason Gunthorpe To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Christoph Hellwig , Dan Williams , Christian =?utf-8?B?S8O2bmln?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni Subject: Re: [PATCH v3 00/20] Userspace P2PDMA with O_DIRECT NVMe devices Message-ID: <20210929232147.GD3544071@ziepe.ca> References: <20210916234100.122368-1-logang@deltatee.com> <20210928200216.GW3544071@ziepe.ca> <06d75fcb-ce8b-30a5-db36-b6c108460d3d@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06d75fcb-ce8b-30a5-db36-b6c108460d3d@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 03:50:02PM -0600, Logan Gunthorpe wrote: > > > On 2021-09-28 2:02 p.m., Jason Gunthorpe wrote: > > On Thu, Sep 16, 2021 at 05:40:40PM -0600, Logan Gunthorpe wrote: > >> Hi, > >> > >> This patchset continues my work to add userspace P2PDMA access using > >> O_DIRECT NVMe devices. My last posting[1] just included the first 13 > >> patches in this series, but the early P2PDMA cleanup and map_sg error > >> changes from that series have been merged into v5.15-rc1. To address > >> concerns that that series did not add any new functionality, I've added > >> back the userspcae functionality from the original RFC[2] (but improved > >> based on the original feedback). > > > > I really think this is the best series yet, it really looks nice > > overall. I know the sg flag was a bit of a debate at the start, but it > > serves an undeniable purpose and the resulting standard DMA APIs 'just > > working' is really clean. > > Actually, so far, nobody has said anything negative about using the SG flag. > > > There is more possible here, we could also pass the new GUP flag in the > > ib_umem code.. > > Yes, that would be very useful. You might actually prefer to do that then the bio changes to get the infrastructur merged as it seems less "core" Jason