Received: by 10.213.65.68 with SMTP id h4csp1411307imn; Mon, 26 Mar 2018 07:04:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELvViKFP8DIqniCpc0b+N9zwwFNSdBdMi8RLHD+BQmH9cLYJxDpi7SRV2YDSv0130GRI3gL9 X-Received: by 10.98.253.17 with SMTP id p17mr33146871pfh.105.1522073068300; Mon, 26 Mar 2018 07:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522073068; cv=none; d=google.com; s=arc-20160816; b=tV9Ru21jMF1+qenHr1yVZJTo4bIgbQVztAoDjD1aMG6R4R9m+ora6hDMZLOlc52Bb0 dWb1zjD1LJZiPqEEw0EK9EVsGVwV/zfLJVhqmp5OdBUXkcXpjh6tycKoOqHP8qN5jf1/ xX94rMaKPqdFmvBCoLSxV0Zz6OYHjI5Eu+95uSBFBe/7sxg6J9uo32xvRqkEFU4PMkVC bYDfN9oUyF5fLL14P55iPCFuJfsqxCx16CcfuU1OW7La0ugLMdT6A+Sng7WPC4v3hMJ+ AnAkdX5GIhQOppr9hrIg85V5HBX58exIyzHjBMFQ+Y+4mniMaWaYGJmXxHal5cNKuMaN yVSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=pfbSNsdj645RrWSVs9AXWIZgtfez/s8FwZUw/CxHukc=; b=Yo5NAFpfKZmuPgsyPZzKeDTVUZl3ACDOac8Einn1EHvAis7IdvGcqkN0GtnVb4ztRW a/AaOY60/GuP8upEQwL7k74M0OESJq6xGEDF7mKe9EHKwQq2HEnbSdQb4e/pCEX1cSLA FLUwRPv46exrgrLRtZ4pMKT4dO78g1Bb9YXVll+jzwfMrXZyRTXQbPbQk7ni8mCz06aW ijopJnL3KHxiFBVHFJ0b5dAFbR+Xc+EYuz2dGvezHcI5ezB5gJkOvqKaAlAjc38ond95 zpyJP+2KPUUvZOcOlYKYwN9plRWeJa0/2ZFg1MbJnSqNumT78TXLnfJ1WRQy3X/R1GLI Y0pg== 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 b5-v6si13223241pli.442.2018.03.26.07.03.45; Mon, 26 Mar 2018 07:04:28 -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 S1751897AbeCZOBW (ORCPT + 99 others); Mon, 26 Mar 2018 10:01:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbeCZOBV (ORCPT ); Mon, 26 Mar 2018 10:01:21 -0400 Received: from localhost (50-82-73-19.client.mchsi.com [50.82.73.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3EEB2217D6; Mon, 26 Mar 2018 14:01:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3EEB2217D6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Mon, 26 Mar 2018 09:01:18 -0500 From: Bjorn Helgaas To: Jonathan Cameron Cc: Logan Gunthorpe , 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, Stephen Bates , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Eric Wehage Subject: Re: [PATCH v3 01/11] PCI/P2PDMA: Support peer-to-peer memory Message-ID: <20180326140118.GA221690@bhelgaas-glaptop.roam.corp.google.com> References: <20180312193525.2855-1-logang@deltatee.com> <20180312193525.2855-2-logang@deltatee.com> <59fd2f5d-177f-334a-a9c4-0f8a6ec7c303@codeaurora.org> <24d8e5c2-065d-8bde-3f5d-7f158be9c578@deltatee.com> <20180326121138.00005e30@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180326121138.00005e30@huawei.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 12:11:38PM +0100, Jonathan Cameron wrote: > On Tue, 13 Mar 2018 10:43:55 -0600 > Logan Gunthorpe wrote: > > It turns out that root ports that support P2P are far less common than > > anyone thought. So it will likely have to be a white list. > > This came as a bit of a surprise to our PCIe architect. > > His follow up was whether it was worth raising an ECR for the PCIe spec > to add a capability bit to allow this to be discovered. This might > long term avoid the need to maintain the white list for new devices. > > So is it worth having a long term solution for making this discoverable? It was surprising to me that there's no architected way to discover this. It seems like such an obvious thing that I guess I assumed the omission was intentional, i.e., maybe there's something that makes it impractical, but it would be worth at least asking somebody in the SIG. It seems like for root ports in the same root complex, at least, there could be a bit somewhere in the root port or the RCRB (which Linux doesn't support yet).