Received: by 10.192.165.148 with SMTP id m20csp796419imm; Wed, 2 May 2018 08:57:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo2oKm9vgsz7Zj7RXhT5oaqtQQKqUM/mDr5tl0kLeqHMfI+CQmUZsqNf4yvTNerWV54y5JR X-Received: by 2002:a17:902:680c:: with SMTP id h12-v6mr20993370plk.113.1525276646830; Wed, 02 May 2018 08:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525276646; cv=none; d=google.com; s=arc-20160816; b=z99fCopt16ABi/ANpCzSuvfilYuCCk2fDBsZAGKMzFqpF7nRC4lFXd+qzuMtv9tdBE mJkB1BWqQslJu0b8CZE5K3wsArzzKTGEQYP9tEnogD+l6lK6nMxQdCO2wTu6iS1I8D15 VyqaN3ar7WeIg30j393FWClDRhSp14Q3X15/k0+oam7ULocjmAQqqZ91ncRXsO6VkybM bMZyQSeo0HUxUYFjl3wB015q+m3wvjy15MYbgHGIc+QK0JCa4SNHlplq9cqnaZMzdfvR ZyBDlgUiazrqrteHR01egg/p2Gp4KLRhSGbLH4cPKFYJe7/YSHHrPS8cDXn8OORGn2qk Hdig== 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=oGSOV5IQJbyxo4+HUVxbqYnPmrM2qS/jeK5Je8lCX0A=; b=LVDn29qoShhZPpVSFhORIG9f+yKAK39b5GWNoeeUsRcWWwRqMc4ILoHusHGkRBw20z mWv+s3Sr6RnymepNHGqT/d6V1iGUG6uj1k63RtN5OV1dfEBpRj3IL9dg5p9ljZJ2ptyw TklWcWKWGbLrU0MzdrmE3TfkUieR7v4U28r5BSlJs64pDKu9cGPv5IFagRAbpiSaJ1z2 2WwJMQBiOeN98LgnX4+J6WqVTKWKgkLJBiJOvfUJMJ3k7N0z6W8d49p0sKtcOSDD9DRC lTLXBNFb7fZ/nxJB3OfyUv1kbRFBk17jcAAyuzTFOSwvM6a511ykyobpoiUWqoy2lXbx K9fw== 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 w66si11892840pfj.144.2018.05.02.08.57.12; Wed, 02 May 2018 08:57:26 -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 S1751962AbeEBP4y (ORCPT + 99 others); Wed, 2 May 2018 11:56:54 -0400 Received: from ale.deltatee.com ([207.54.116.67]:46764 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbeEBP4u (ORCPT ); Wed, 2 May 2018 11:56:50 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1fDu7F-0006Yd-7c; Wed, 02 May 2018 09:56:25 -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 , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson References: <20180423233046.21476-1-logang@deltatee.com> From: Logan Gunthorpe Message-ID: <805645c1-ea40-2e57-88eb-5dd34e579b2e@deltatee.com> Date: Wed, 2 May 2018 09:56:09 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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, 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=-6.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v4 00/14] Copy Offload in NVMe Fabrics with P2P PCI 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 Hi Christian, On 5/2/2018 5:51 AM, Christian König wrote: > it would be rather nice to have if you could separate out the functions > to detect if peer2peer is possible between two devices. This would essentially be pci_p2pdma_distance() in the existing patchset. It returns the sum of the distance between a list of clients and a P2PDMA provider. It returns -1 if peer2peer is not possible between the devices (presently this means they are not behind the same root port). Logan