Received: by 10.192.165.148 with SMTP id m20csp122738imm; Wed, 9 May 2018 09:47:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo6d9i+lohWfjFcVMmTlwlx6qxn2BPF6OSkQ0JYDOOG8keIvXR4/AAk4EFoTQuSiIUHpn4g X-Received: by 10.98.16.131 with SMTP id 3mr21591791pfq.229.1525884423423; Wed, 09 May 2018 09:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525884423; cv=none; d=google.com; s=arc-20160816; b=hMt7qQHCO0Ono9UoUrP3+t02rXm7nqash1kOwSUGt0QNVxAFW6b20lkl7cpKI1FSvm zSFJG7aFZVKBG1c1vYZ13ugChImhtes2jFkYX25gshWpUrTSFfvW40uBzwSvYSJoqFoL 5HMdEtax4kMy3HMv1OjuG5A+RuE0HZRpzHymW+v+6/vfxSPn2O1/NdcxcBe7k87ih3Y8 W0FO+x/fsWmnDWlfdT7MreBhJucm5DuWMGUUrK09lQcBAtltE3mXyGIXenWRs5r1/J8E XTQn17XyQfwYw747/2ppgUKJaLEmgs9al/wkYRxyZV620qC5NukxY07XSd+Lis8H0hhg wAZQ== 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=hS3NIECmjnrwblOGlHW9YBhYzrXm1Z42UuP/iHT9bvE=; b=sJpNO9AQWUws7nDBYldeYdbNBGeqxm2Ix9Bqt1pRau7MzK1cb5cZPZC4NaMS/hHwCI jqthi1RyQRhxjzi/q5QkmEkG/wMnq0p01bjrpkvEXKneg4RdnZFoW6ZKNbSxoOdWrg1U JH5iPefTlWr/7ORrNER0Dzv8weTV0n+yvMfP9JtoTtP09kh4DSqx8Ci66bDbdomwem2H pHc4laUX3/J6TW3siJrn8zgValqx2Ksy6N4zr+q0M3Hz/m7fc/NJfQHm8wSSlwpAJGlH rfV0eR0CzWr8uG6YcCq79FxjL7mpkk0bF5aM1BWOq5y/Vu732t/CNi+r+fMEfvIsHugS vejQ== 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 d65si27642056pfa.263.2018.05.09.09.46.48; Wed, 09 May 2018 09:47:03 -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 S965641AbeEIQpq (ORCPT + 99 others); Wed, 9 May 2018 12:45:46 -0400 Received: from ale.deltatee.com ([207.54.116.67]:38978 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935232AbeEIQpn (ORCPT ); Wed, 9 May 2018 12:45:43 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fGSDT-0004pE-Qb; Wed, 09 May 2018 10:45:24 -0600 To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Stephen Bates , Jerome Glisse Cc: Alex Williamson , Bjorn Helgaas , "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" , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , Benjamin Herrenschmidt References: <20180423233046.21476-5-logang@deltatee.com> <20180507231306.GG161390@bhelgaas-glaptop.roam.corp.google.com> <0b4183ef-e720-204b-9e85-b9eaf7a4136a@deltatee.com> <3584a6ac-95c7-5d23-1859-aee30605776e@deltatee.com> <20180508133407.57a46902@w520.home> <5fc9b1c1-9208-06cc-0ec5-1f54c2520494@deltatee.com> <20180508141331.7cd737cb@w520.home> <20180508205005.GC15608@redhat.com> <7FFB9603-DF9F-4441-82E9-46037CB6C0DE@raithlin.com> From: Logan Gunthorpe Message-ID: <4e0d0b96-ab02-2662-adf3-fa956efd294c@deltatee.com> Date: Wed, 9 May 2018 10:45:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: 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, axboe@kernel.dk, hch@lst.de, 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, helgaas@kernel.org, alex.williamson@redhat.com, jglisse@redhat.com, sbates@raithlin.com, christian.koenig@amd.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.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v4 04/14] PCI/P2PDMA: Clear ACS P2P flags for all devices behind switches 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 09/05/18 07:40 AM, Christian König wrote: > The key takeaway is that when any device has ATS enabled you can't > disable ACS without breaking it (even if you unplug and replug it). I don't follow how you came to this conclusion... The ACS bits we'd be turning off are the ones that force TLPs addressed at a peer to go to the RC. However, ATS translation packets will be addressed to an untranslated address which a switch will not identify as a peer address so it should send upstream regardless the state of the ACS Req/Comp redirect bits. Once the translation comes back, the ATS endpoint should send the TLP to the peer address with the AT packet type and it will be directed to the peer provided the Direct Translated bit is set (or the redirect bits are unset). I can't see how turning off the Req/Comp redirect bits could break anything except for the isolation they provide. Logan