Received: by 10.213.65.68 with SMTP id h4csp1258993imn; Mon, 26 Mar 2018 04:13:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELvQr6Q4XPkXbHNDhu/0RMFXGeDXoY6Qv9sAxxWCRyjVoOWF+F2bHp/PfoiOdE03TLNYgnck X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr22086054plc.214.1522062815589; Mon, 26 Mar 2018 04:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522062815; cv=none; d=google.com; s=arc-20160816; b=gNqSaDV/ysZbypGovx4iLOO12yRknqnw/EpoU6pauKNF1FC3p55a792sJE+mhVtvwW fbJfgziRCW/Q8k2YCirC6mYRpAY7XlW1lFrkh0FvgMa7tmuegfoFMuufK4HJBpSgtyhn cY2+UKkX5RPxo7NDz5TSQDc4bPAgZuWp8glefIF5p27PNd5ioo8ILQ4vgNMw32iR2vQ+ UEKQ9t4Uvw71QTpLoJw55cByBMv0wUENGY+sZwlZegUAVXD31iOI6h862S83ycZB54aI t3UOs4IqkFkO8Tv4e7mOjvu0TDfZmJCL20hqYmrjW97TLEWPq6gy1dW5Ad9sDyMP2iTz sLGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=eYgx+2yWtUflhPqbQQYVXWu2VDlbCNuPg/UGjoujIMY=; b=SyIzaN1YtrYGAdV8ltxIztTspKVN4oS5QKPOLA8ob9/iQVcVOocHMnC7BR8jxIKm4u VrRPohmR0ILLRJx8NtJ3mPOA/PNB57a6gjirZdQXoj/9tnVxaug95TbygupGMw1UJdba ZiGCVb1uqS5knBKV2iFHlRgqFKdUN7+Y/mjDKlvjbj5eSn9CrIRMCuCcfLMsxmEIwxTN gRxGcNHasfuFdx7wkQ++gt/Wu8yquEq5TH9C2CKnIr9Eajggf9J7rdF5ESjobhd/i5SO JrTynQPS1eSvs7yNvwLBnvUmIY35FHhfYKjJ2Db64b1cTRZy62N788gvpiddwBE9Bv1e PNCA== 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 o3-v6si14106667pll.280.2018.03.26.04.13.20; Mon, 26 Mar 2018 04:13:35 -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 S1751674AbeCZLMP (ORCPT + 99 others); Mon, 26 Mar 2018 07:12:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6693 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751042AbeCZLMN (ORCPT ); Mon, 26 Mar 2018 07:12:13 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id F132020B98A53; Mon, 26 Mar 2018 19:11:56 +0800 (CST) Received: from localhost (10.202.226.43) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 26 Mar 2018 19:11:52 +0800 Date: Mon, 26 Mar 2018 12:11:38 +0100 From: Jonathan Cameron To: Logan Gunthorpe CC: Sinan Kaya , , , , , , , Stephen Bates , "Christoph Hellwig" , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?ISO-8859-1?Q?J=E9r=F4me?= Glisse , "Benjamin Herrenschmidt" , Alex Williamson , Eric Wehage Subject: Re: [PATCH v3 01/11] PCI/P2PDMA: Support peer-to-peer memory Message-ID: <20180326121138.00005e30@huawei.com> In-Reply-To: <24d8e5c2-065d-8bde-3f5d-7f158be9c578@deltatee.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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.43] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Mar 2018 10:43:55 -0600 Logan Gunthorpe wrote: > On 12/03/18 09:28 PM, Sinan Kaya wrote: > > On 3/12/2018 3:35 PM, Logan Gunthorpe wrote: > > Regarding the switch business, It is amazing how much trouble you went into > > limit this functionality into very specific hardware. > > > > I thought that we reached to an agreement that code would not impose > > any limits on what user wants. > > > > What happened to all the emails we exchanged? > > 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? Jonathan > Nobody else > seems keen on allowing the user to enable this on hardware that doesn't > work. The easiest solution is still limiting it to using a switch. From > there, if someone wants to start creating a white-list then that's > probably the way forward to support root ports. > > And there's also the ACS problem which means if you want to use P2P on > the root ports you'll have to disable ACS on the entire system. (Or > preferably, the IOMMU groups need to get more sophisticated to allow for > dynamic changes). > > Additionally, once you allow for root ports you may find the IOMMU > getting in the way. > > So there are great deal more issues to sort out if you don't restrict to > devices behind switches. > > Logan