Received: by 10.213.65.68 with SMTP id h4csp737884imn; Fri, 23 Mar 2018 15:01:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELuBS8fwpFawjPwp/xFI9q4C6Ht430uhsoD+MSOhludT+7Zz2Ub8ePlvHZSxFqvv3RtnHMOW X-Received: by 2002:a17:902:b704:: with SMTP id d4-v6mr31399021pls.406.1521842500720; Fri, 23 Mar 2018 15:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521842500; cv=none; d=google.com; s=arc-20160816; b=ze2gSiVM6TidTFfx34ugwBKTObQlpuLkm+C7BVJP8AGIYO7SJNsfm2tVpoXilwAeSU tOCPA67FGJFqb3VzYj8PZSa4QOyLctQ1PQqyPYydxsZ7HQyJqRI9nkP6I+0tONqRkQUC 4JguWF6RDl61wMGBE6UzCv2QV/jd0MLlBWOENqjGXJwGae05lS9YbOxieVb/E//BLA7P 3zRSgmmHXm8oirQteWuxnNhGOfrNRrx3oujupZjpTZ+VO6LZBCKVW06USuNNgiAIIgnD pcMWu4zyCYDngYXwJMlZAYAX1159DRybFwKPMl43XEsYu6+2MXB4TBVNbX89bsp7Dvzs W0Mg== 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:arc-authentication-results; bh=nUpXhkySqmxaZBogA6HbEvYpT1736nGeEBK46a3nz+s=; b=JAXgC+gUi52W/hvWU4W62OOsNsvd3I63ba72s2ceO/g5mJzSd9nq58Z50v61DYV8vB GQTzB2gVWGYHPrde2107f0cbxNh79IBdvDEZenCc2I5vOWTE7kbtOg1oOCmYKXdCqHa+ 7j9gE+bBLWdJ3/ucTILSjm+JwLktw+079MYHP/1CvJpMTj2/NaRANKpg7XfAdIziquBG TRDFQndbsRm0/pPNULVTJlEF/KCrUByTHrmsX0RWEUzsYtvU0FMdP3SxpimoD33oRwSU zTdP/gEvXkSxWagfB6Qa0tL/u0zd+as7sl2dsMAeGmsadmvly6KUlN3easPrNGbADKio TFZw== 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 e10si6577624pgp.193.2018.03.23.15.01.24; Fri, 23 Mar 2018 15:01:40 -0700 (PDT) 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 S1752346AbeCWV74 (ORCPT + 99 others); Fri, 23 Mar 2018 17:59:56 -0400 Received: from ale.deltatee.com ([207.54.116.67]:44276 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752297AbeCWV7y (ORCPT ); Fri, 23 Mar 2018 17:59:54 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1ezUia-0008Lb-6j; Fri, 23 Mar 2018 15:59:24 -0600 To: Bjorn Helgaas , Stephen Bates Cc: Sinan Kaya , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-rdma@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "linux-block@vger.kernel.org" , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson References: <3e738f95-d73c-4182-2fa1-8664aafb1ab7@deltatee.com> <703aa92c-0c1c-4852-5887-6f6e6ccde0fb@codeaurora.org> <3ea80992-a0fc-08f2-d93d-ae0ec4e3f4ce@codeaurora.org> <4eb6850c-df1b-fd44-3ee0-d43a50270b53@deltatee.com> <757fca36-dee4-e070-669e-f2788bd78e41@codeaurora.org> <4f761f55-4e9a-dccb-d12f-c59d2cd689db@deltatee.com> <20180313230850.GA45763@bhelgaas-glaptop.roam.corp.google.com> <20180323215046.GC210003@bhelgaas-glaptop.roam.corp.google.com> From: Logan Gunthorpe Message-ID: Date: Fri, 23 Mar 2018 15:59:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180323215046.GC210003@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: alex.williamson@redhat.com, benh@kernel.crashing.org, jglisse@redhat.com, dan.j.williams@intel.com, maxg@mellanox.com, jgg@mellanox.com, bhelgaas@google.com, sagi@grimberg.me, keith.busch@intel.com, axboe@kernel.dk, hch@lst.de, linux-block@vger.kernel.org, linux-nvdimm@lists.01.org, linux-rdma@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, okaya@codeaurora.org, sbates@raithlin.com, helgaas@kernel.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v3 01/11] PCI/P2PDMA: Support peer-to-peer memory 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 23/03/18 03:50 PM, Bjorn Helgaas wrote: > Popping way up the stack, my original point was that I'm trying to > remove restrictions on what devices can participate in peer-to-peer > DMA. I think it's fairly clear that in conventional PCI, any devices > in the same PCI hierarchy, i.e., below the same host-to-PCI bridge, > should be able to DMA to each other. Yup, we are working on this. > The routing behavior of PCIe is supposed to be compatible with > conventional PCI, and I would argue that this effectively requires > multi-function PCIe devices to have the internal routing required to > avoid the route-to-self issue. That would be very nice but many devices do not support the internal route. We've had to work around this in the past and as I mentioned earlier that NVMe devices have a flag indicating support. However, if a device wants to be involved in P2P it must support it and we can exclude devices that don't support it by simply not enabling their drivers. Logan