Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320AbeAEBJ7 (ORCPT + 1 other); Thu, 4 Jan 2018 20:09:59 -0500 Received: from ale.deltatee.com ([207.54.116.67]:41914 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbeAEBJ5 (ORCPT ); Thu, 4 Jan 2018 20:09:57 -0500 From: Logan Gunthorpe To: Alex Williamson , Bjorn Helgaas Cc: Jens Axboe , Keith Busch , linux-nvdimm@lists.01.org, linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Jason Gunthorpe , Benjamin Herrenschmidt , Bjorn Helgaas , Max Gurtovoy , Christoph Hellwig References: <20180104190137.7654-1-logang@deltatee.com> <20180104190137.7654-5-logang@deltatee.com> <20180104215721.GF189897@bhelgaas-glaptop.roam.corp.google.com> <20180104153551.3118f71b@t450s.home> <20fdb5bb-0236-c093-ed53-e12664022f53@deltatee.com> Message-ID: <99420cc9-48fd-5692-8426-bd5c2ec0dcf7@deltatee.com> Date: Thu, 4 Jan 2018 18:09:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20fdb5bb-0236-c093-ed53-e12664022f53@deltatee.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 68.147.191.165 X-SA-Exim-Rcpt-To: hch@lst.de, maxg@mellanox.com, bhelgaas@google.com, benh@kernel.crashing.org, jgg@mellanox.com, jglisse@redhat.com, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, linux-nvdimm@lists.01.org, keith.busch@intel.com, axboe@kernel.dk, helgaas@kernel.org, alex.williamson@redhat.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH 04/12] pci-p2p: Clear ACS P2P flags for all client devices 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 04/01/18 05:00 PM, Logan Gunthorpe wrote: > > > On 04/01/18 03:35 PM, Alex Williamson wrote: >> Yep, flipping these ACS bits invalidates any IOMMU groups that depend >> on the isolation of that downstream port and I suspect also any peers >> within the same PCI slot of that port and their downstream devices.  The >> entire sub-hierarchy grouping needs to be re-evaluated.  This >> potentially affects running devices that depend on that isolation, so >> I'm not sure how that happens dynamically.  A boot option might be >> easier.  Thanks, > Also, considering this further: if you can point me to a way to tell if a device is in an IOMMU group it should be pretty easy to disallow a device that has been assigned to a group from being used in P2P transactions. Logan