Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6148127imu; Wed, 30 Jan 2019 09:34:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN5SxAyUfet0iaC+WeJ4IxLLS+wlScdiaVOG/kjj8oNLfng6DB8/Bo6+FO849BtVAM9YJG65 X-Received: by 2002:a63:df50:: with SMTP id h16mr28675269pgj.421.1548869657577; Wed, 30 Jan 2019 09:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548869657; cv=none; d=google.com; s=arc-20160816; b=oOEwBq5nPfmqaz/u5+A3ZxM8KkmW+BEv3vGJUZk4CUvhVh43RIlbkeNelLK7JMlLD8 SnFgunUBCCKsJA811XksLB3SxFh9VtIxwrwAbOyj9EBorQSXzO5/kg2YkoizG6Nv7miT dsCwzJEn7iZaiLVxB5hkRrgam4Seg0+yQQZyTBF49ai4DkTgKZupBV5Q6pyOGcby9gmG BU8JjBxu1NVMYWaQpx0MGUDK1OQApOZHL9zq1pDhi9gxrhwf2VHvhxN2zWe2u5Q+pzx7 T2H7iOouTMUgoG55pUGE9NB1tRlAG5luXvgGRS0FAOJw1mbcXCNbbxe2IUtqXeUXfuYa qqeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=e/uuji5N7Go5MZ6ODm48wSxdSPUtMpgGLJuq6m8HZHc=; b=NdR+gK6nqgIEWJbOtF78hcgFNEvUnkkjc4EAI7Qhl1mkN+yb7tkU5bfnT5/HJgQy+3 rjD2+8qmr9M+11i1UKGyKlfod1ZGopck07B7BOPmqHUJDNCeeKXyGGiccn6nqs9/ZrA8 qE9Uk1KekdOlHWbHhZQmEKZDP6PKjlqZqxpH5jK0mDA1MTaT9zgaYcjCVNtY+PxI5bIh UweOBKB6tv5LKK1cv6Z/ZJlOV+A5xxlAB+kSA0McBKCT/zquUW7/gmJ17d6DRfCmYNBv wEf7+29JmjwrEMNo0xr60XEENYtV4XF7iWr6lNzBVNcOP3BBsJsE9eT/6sA8ntNwhRKG Ql5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o192si1798965pgo.129.2019.01.30.09.33.50; Wed, 30 Jan 2019 09:34:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732470AbfA3RcQ (ORCPT + 99 others); Wed, 30 Jan 2019 12:32:16 -0500 Received: from ale.deltatee.com ([207.54.116.67]:39644 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbfA3RcQ (ORCPT ); Wed, 30 Jan 2019 12:32:16 -0500 Received: from s01061831bf6ec98c.cg.shawcable.net ([68.147.80.180] helo=[192.168.6.205]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gotiY-0006g6-4S; Wed, 30 Jan 2019 10:32:07 -0700 To: Christoph Hellwig , Jerome Glisse Cc: "Koenig, Christian" , Jason Gunthorpe , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , "Rafael J . Wysocki" , Bjorn Helgaas , "Kuehling, Felix" , "linux-pci@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Marek Szyprowski , Robin Murphy , Joerg Roedel , "iommu@lists.linux-foundation.org" References: <20190129174728.6430-1-jglisse@redhat.com> <20190129174728.6430-4-jglisse@redhat.com> <20190129191120.GE3176@redhat.com> <20190129193250.GK10108@mellanox.com> <99c228c6-ef96-7594-cb43-78931966c75d@deltatee.com> <20190129205827.GM10108@mellanox.com> <20190130080208.GC29665@lst.de> <4e0637ba-0d7c-66a5-d3de-bc1e7dc7c0ef@amd.com> <20190130155543.GC3177@redhat.com> <20190130172653.GA6707@lst.de> From: Logan Gunthorpe Message-ID: <39edda88-acd8-c8ec-a6a5-64898006b69f@deltatee.com> Date: Wed, 30 Jan 2019 10:32:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190130172653.GA6707@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.80.180 X-SA-Exim-Rcpt-To: iommu@lists.linux-foundation.org, jroedel@suse.de, robin.murphy@arm.com, m.szyprowski@samsung.com, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, Felix.Kuehling@amd.com, bhelgaas@google.com, rafael@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jgg@mellanox.com, Christian.Koenig@amd.com, jglisse@redhat.com, hch@lst.de X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-01-30 10:26 a.m., Christoph Hellwig wrote: > On Wed, Jan 30, 2019 at 10:55:43AM -0500, Jerome Glisse wrote: >> Even outside GPU driver, device driver like RDMA just want to share their >> doorbell to other device and they do not want to see those doorbell page >> use in direct I/O or anything similar AFAICT. > > At least Mellanox HCA support and inline data feature where you > can copy data directly into the BAR. For something like a usrspace > NVMe target it might be very useful to do direct I/O straight into > the BAR for that. Yup, these are things we definitely want to be able to do, and have done with hacky garbage code: Direct I/O from NVMe to P2P BAR, then we could Direct I/O to another drive or map it as an MR and send it over an RNIC. We'd definitely like to move in that direction. And a world where such userspace mappings are gimpped by the fact that they are only some special feature of userspace VMAs that can only be used in specialized userspace interfaces is not useful to us. Logan