Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp228369imm; Thu, 30 Aug 2018 12:32:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbK3v1Ifbkki/dlxCfKG6AbZAXKlu/N0WX1YOsgRPo9aPgJ530/nzxO9NLnvv4iLFoF5/SH X-Received: by 2002:a62:9894:: with SMTP id d20-v6mr11941871pfk.186.1535657564810; Thu, 30 Aug 2018 12:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535657564; cv=none; d=google.com; s=arc-20160816; b=tLW8YEkJAOl1yHem+z4b69dQyMVM6iKBzxmUBrVr41oJeu1foeUOQ8h664WXLZ7BLc T9M2lgLpU4msYQkL8+8snBIERlamvhisxe3CUthSs0Q81Yi38lBCj3IIoXLjvwfSLHxh r3xhCg4nEt4u2m15tysKC8JT/DxxZSSihEjVLX7UIw5IO3yiG87IIVGNvSch7JpBDZHl 19hYbBQmayAMofTbwNrlF5cWBzUVEPD75CguyXerczHCT+N7aLbtn3UCfe/7rudr1eua pdZwxXFFp/qUctvISnaL8X6CTGBOuax3pwcH0t0BIxVcjf86Q3Y4VOBWbt/02q0CUlGM uwIA== 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=HVcmRihXAibFBvKLJFzlSocIkBM1VN+zpAOI7C5fkAY=; b=XQtJtz4/k8ilM8nimHtuRj5H/zIfiLk6Mlf5pT52ljY0og0tNSyl7ZzkWv6biREVbU acB55ig0SYJGbh+DoWyUrXKDce1TPoe9j1GhyZZMKrcMqQiN80jXFwdSyjl3NTn06RGs jjsRE6Z0GnfaEcL235c9QR/1qOohfk4Sy27XHu/F5epbvAvzG8CuF1z+S7gwDecTgO+X 7nSJ/8xEHopUFYhw6/Mi1l1bAC9lVA7Bazd09FhJg8MrGcHZbCAEdwmFit4JpB0H83rz pD4Eh9N1SW4IA7xQEQFzi+N0USfbe7iSnqNWhAvVDA12kckLNzHbfe6SrffOfZMlSHb+ Gsdg== 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 h12-v6si7206196pll.416.2018.08.30.12.32.06; Thu, 30 Aug 2018 12:32:44 -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 S1727338AbeH3Xe1 (ORCPT + 99 others); Thu, 30 Aug 2018 19:34:27 -0400 Received: from ale.deltatee.com ([207.54.116.67]:40724 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbeH3Xe0 (ORCPT ); Thu, 30 Aug 2018 19:34:26 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fvSeI-00071q-4U; Thu, 30 Aug 2018 13:30:34 -0600 To: Jerome Glisse Cc: 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 , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , Benjamin Herrenschmidt , Alex Williamson , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20180830185352.3369-1-logang@deltatee.com> <20180830192012.GG3529@redhat.com> From: Logan Gunthorpe Message-ID: Date: Thu, 30 Aug 2018 13:30:32 -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: <20180830192012.GG3529@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: christian.koenig@amd.com, alex.williamson@redhat.com, benh@kernel.crashing.org, 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, jglisse@redhat.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.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_FREE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v5 00/13] 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 On 30/08/18 01:20 PM, Jerome Glisse wrote: > On Thu, Aug 30, 2018 at 12:53:39PM -0600, Logan Gunthorpe wrote: > > [...] > >> >> When the PCI P2PDMA config option is selected the ACS bits in every >> bridge port in the system are turned off to allow traffic to >> pass freely behind the root port. At this time, the bit must be disabled >> at boot so the IOMMU subsystem can correctly create the groups, though >> this could be addressed in the future. There is no way to dynamically >> disable the bit and alter the groups. Oh, sorry this paragraph in the cover letter is wrong now. We now rely on the disable_acs_redir command line option introduced in aaca43fda742 ("PCI: Add "pci=disable_acs_redir=" parameter for peer-to-peer support") > Can you provide an example on how to test this ? Like kernel command > line option, the doc patch does not have any such example. It would be > nice to add. Do you mean to test the patchset or the ACS bits you quoted? Testing the patchset is a matter of having the right hardware (ie an RDMA NIC and CMB enabled NVMe behind a PCIe switch, with the ACS bits set correctly by the above command line option) and setting the p2pmem configfs attribute in an nvme-of port to 'yes'. Logan