Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp620944imm; Fri, 31 Aug 2018 08:53:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZL3GsBLWcgg+sxC+m5ljkjf2peclL5iHy023sImKdQUN1X03gDi54MoJM5WJCA9UCm0bFt X-Received: by 2002:a63:ec14:: with SMTP id j20-v6mr14996369pgh.28.1535730822042; Fri, 31 Aug 2018 08:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535730822; cv=none; d=google.com; s=arc-20160816; b=uPn0wLCFiJmQ3YdCFfqZ6JUJJ9tIZvosTKEfRJr1pF7Azt1m5NiK8tOA+uLHVviLIK RrdG4VaXiCJ8FcS45ntJ1XPuLSHnhZi6t3vQ6jarY/zg+If0jO79jOWvVjp/73/CAs98 euL3i7pQer0FogCLLNXolMer0n/YYAi7tfaknzCAUpHUHh39wFUCKhgfamituLOqcvL+ OmxofUQGx4R8LjkmDNtiCmoZoAkdMaMlLjAYRehh32IL6S00HQJiWzUyAEpU4CIcGsNk gKioykv2EH+PO/BLVLUMeRkXE6b86o7DaRe62BFJ4UOTjbJfi1u5o5DBLweOclAETnPF yyxA== 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=36Kty1Jw92vhrqiFEZTDercnOBIyNEPnFc7JLbVfuDE=; b=jzWQ4vqI+JWRsjPia9rN9I6eEzSztCCV1E1hacm18QWAdtZzETLBe7fxFRS7vkGCwd v6XYcmzQ8vdHRYDvpgMuoc64gygoi5M8C+KDXgsTLQZH5VJgx57eEu+F1QHLe8VgOLWF PsrMgMp8XfCnhbCLBSmLV6pfitAUcx1ikBOyt+m8tPWnyHgnLtTMIAk/yEtZtm73EZLr UgJ3M6HxurM81qLoe+Pt3jJZOjXHVY+Ow5TEqPMV6VhbFc0PkJ5tTesfKJe8IJb6tYiS D/1oTrGoE9SR8rbsWKUY2n6WmgmYrC2+48j5oiZImKNRSJQhVPg9elx35plyVp4lUWiO GxOg== 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 cc18-v6si10835756plb.82.2018.08.31.08.53.27; Fri, 31 Aug 2018 08:53:42 -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 S1729216AbeHaT71 (ORCPT + 99 others); Fri, 31 Aug 2018 15:59:27 -0400 Received: from ale.deltatee.com ([207.54.116.67]:46966 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbeHaT71 (ORCPT ); Fri, 31 Aug 2018 15:59:27 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fvlhT-0004Dw-Gd; Fri, 31 Aug 2018 09:51:08 -0600 To: =?UTF-8?Q?Christian_K=c3=b6nig?= , 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 Cc: Stephen Bates , Christoph Hellwig , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson , Jonathan Corbet References: <20180830185352.3369-1-logang@deltatee.com> <20180830185352.3369-7-logang@deltatee.com> <98bff500-4e4c-3a34-6762-16ef4b076d90@amd.com> From: Logan Gunthorpe Message-ID: <6820d451-9591-1979-00bf-60c65fc4f136@deltatee.com> Date: Fri, 31 Aug 2018 09:51:06 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <98bff500-4e4c-3a34-6762-16ef4b076d90@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: corbet@lwn.net, 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, hch@lst.de, sbates@raithlin.com, 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, christian.koenig@amd.com 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 autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v5 06/13] PCI/P2PDMA: Add P2P DMA driver writer's documentation 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 31/08/18 02:08 AM, Christian König wrote: >> +One of the biggest issues is that PCI doesn't require forwarding >> +transactions between hierarchy domains, and in PCIe, each Root Port >> +defines a separate hierarchy domain. To make things worse, there is no >> +simple way to determine if a given Root Complex supports this or not. >> +(See PCIe r4.0, sec 1.3.1). Therefore, as of this writing, the kernel >> +only supports doing P2P when the endpoints involved are all behind the >> +same PCI bridge, as such devices are all in the same PCI hierarchy >> +domain, and the spec guarantees that all transacations within the >> +hierarchy will be routable, but it does not require routing >> +between hierarchies. > > Can we add a kernel command line switch and a whitelist to enable P2P > between separate hierarchies? In future work, yes. But not for this patchset. This is definitely the way I see things going, but we've chosen to start with what we've presented. Logan