Received: by 10.213.65.68 with SMTP id h4csp460133imn; Tue, 13 Mar 2018 09:45:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELs/gl3J2pFQjnV4O7d5lXSypASFuQNbvPO3sA2ciy2pEvLTUnFrB34PelMpZ98CmmibtNbF X-Received: by 10.98.211.198 with SMTP id z67mr1268204pfk.0.1520959535515; Tue, 13 Mar 2018 09:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959535; cv=none; d=google.com; s=arc-20160816; b=OzexzJeOSjqEIFMZnPSxIkUoK7j5Z+Ut62Akw+agZpiDmGmo/Rr8JIvzAlyPg59+Ja G6oUi70LemOY1WA90zvi8IPM9EG3fe+auiIsW334TSjy4onjKjRV/7cEKsPoakAESK2G HROboYdJb3POQmbrnbqGXfP1lPlGngu3+k1yeQAGOluMalCnqKZBxKOt0cnBy5ui46gJ jtxo2WCphv/GAXB8xE2KGWSEBGvcgY//bb5ASHDqNiwTunu88cksptUGqTaPAGQYP61R y8Be/0gq3tt25vSi9G9AvVUy5qtaQkXIT8jozCLmJl2RgIP3Ou7cc+/JrsInOspEF6oU Rflg== 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=nz3XzsrxdaDZs3t60bWzkkXoiAt9jEgBPCItzivoC44=; b=ix202VY4LR9hg5Ye3LcFk1FCq+OXp7CNL3pF7b1mP21fxof4uoKg9EIzvQkPrtQhqn M8epneBi0C6RpNnSIngg0ZBkuC/wnBk2n34y6iyQSlai1QxTo52OAto9QK4rp1IPSBNf L8KalbACDIRKF8O/gg0VklGrM1Q208Q/X2Nsylz3cqsoEK7mOyH6E+UcaJQTua/T1J1A vT85kAMFLo4FHDkFSlOZBnlzzcrmzH2+8TERlsAXGjuvWi44hgTyqZKb1ligbvtXi7YN 0In45cbo3QXnDybgnd3X3meNbK3Jbts2iUVUAE9xm0k3T+Gefm3647InWLMjDfXb0uRI DKlQ== 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 j17si275295pga.495.2018.03.13.09.45.19; Tue, 13 Mar 2018 09:45: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 S933708AbeCMQo3 (ORCPT + 99 others); Tue, 13 Mar 2018 12:44:29 -0400 Received: from ale.deltatee.com ([207.54.116.67]:33606 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932729AbeCMQo0 (ORCPT ); Tue, 13 Mar 2018 12:44:26 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1evn1v-0003pg-Ji; Tue, 13 Mar 2018 10:44:04 -0600 To: 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 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: <20180312193525.2855-1-logang@deltatee.com> <20180312193525.2855-2-logang@deltatee.com> <59fd2f5d-177f-334a-a9c4-0f8a6ec7c303@codeaurora.org> From: Logan Gunthorpe Message-ID: <24d8e5c2-065d-8bde-3f5d-7f158be9c578@deltatee.com> Date: Tue, 13 Mar 2018 10:43:55 -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: <59fd2f5d-177f-334a-a9c4-0f8a6ec7c303@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed 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, 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, okaya@codeaurora.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 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. 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