Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3822314imm; Tue, 17 Jul 2018 10:51:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd+twJqhyNK6U3f37ZwDBpTa9SWsdDihMACVjD/RyznqfEEsqKJyhg64o24cTCNQUgCeUt2 X-Received: by 2002:a63:d309:: with SMTP id b9-v6mr2486326pgg.163.1531849898926; Tue, 17 Jul 2018 10:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531849898; cv=none; d=google.com; s=arc-20160816; b=VnT3M40Y0T79K8ufyA72qorNigB+z0BT0nsad3teGyRismHoJqO4rvl3qynJaZCw2O Fsq+IcXmqBTslXqsxusfSQ7topAhH7ss+mCfpyHH2bMZUX+Ob6CfyFOAjHUpcO1wl1Bh ow6ACe9X2WhXqBKQLjG22sKF/8/elw98jJiibNTbeCUvdalm9xlKbBmFnKvnGH5GFeso 9lY2IZ5awgVrX4526eU5OrU5dpWYMTDa7FfroW849U2UmJdfxsrEcf9RAgXpy/b2cpMp k7e+pK8nKBkN3/HlfjfvxkdNtGhUa46gJMLliO3P0ODk128E0mHwCtR2L0riHWZOPtDk YDVA== 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=cYbA1SQEeCS7DYfLkFWEYdKnyT2IkKPwxgC0sHx2bBo=; b=o7okBQv1s1jwAAEAD3AxQ9+SuNsW9w4MmMY3l3hDJvusneqdNjY3Pg67IDKBHR10WL i07N2Mka0fOqGzVHMFZAifJx4mUSRN6hh1mpsgI0VjsMpClElmpmt3ReAGIKliQKQqU+ i/naqztPitdtFo459RDnTJJ5urPJHR67w2euDTgUdzRjrBM1UI5BAR9p+MPua3ONevlH rGhxbp7Qa1ZXZllRvlincrGJeN9/7HWcPHvQRwYj8oJtnYhe1ZVkgD2d+rEaYUzIp1yj f9PUCbJPUtlAUhOGkzH0UT7mGbGfLxIBNhOvYcmzSXYC/91dj+d+RlxIooKE0242OIIE r72Q== 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 w20-v6si1403061pgf.434.2018.07.17.10.51.23; Tue, 17 Jul 2018 10:51:38 -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 S1730974AbeGQSXw (ORCPT + 99 others); Tue, 17 Jul 2018 14:23:52 -0400 Received: from ale.deltatee.com ([207.54.116.67]:45146 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729980AbeGQSXw (ORCPT ); Tue, 17 Jul 2018 14:23:52 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1ffU6P-00077P-1J; Tue, 17 Jul 2018 11:49:33 -0600 To: Alex Williamson Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, Stephen Bates , Christoph Hellwig , Bjorn Helgaas , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , "Paul E. McKenney" , Marc Zyngier , Kai-Heng Feng , Frederic Weisbecker , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , =?UTF-8?Q?Christian_K=c3=b6nig?= , Matthew Wilcox References: <20180717170204.30470-1-logang@deltatee.com> <20180717170204.30470-5-logang@deltatee.com> <20180717114848.2914d547@t450s.home> From: Logan Gunthorpe Message-ID: Date: Tue, 17 Jul 2018 11:49:22 -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: <20180717114848.2914d547@t450s.home> 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: willy@infradead.org, christian.koenig@amd.com, benh@kernel.crashing.org, jglisse@redhat.com, dan.j.williams@intel.com, frederic@kernel.org, kai.heng.feng@canonical.com, marc.zyngier@arm.com, paulmck@linux.vnet.ibm.com, tglx@linutronix.de, mingo@kernel.org, corbet@lwn.net, bhelgaas@google.com, hch@lst.de, sbates@raithlin.com, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, alex.williamson@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.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v7 4/4] PCI: Introduce the disable_acs_redir parameter 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 17/07/18 11:48 AM, Alex Williamson wrote: > On Tue, 17 Jul 2018 11:02:04 -0600 > Logan Gunthorpe wrote: > >> In order to support P2P traffic on a segment of the PCI hierarchy, >> we must be able to disable the ACS redirect bits for select >> PCI bridges. The bridges must be selected before the devices are >> discovered by the kernel and the IOMMU groups created. Therefore, >> a kernel command line parameter is created to specify devices >> which must have their ACS bits disabled. >> >> The new parameter takes a list of devices separated by a semicolon. >> Each device specified will have it's ACS redirect bits disabled. >> This is similar to the existing 'resource_alignment' parameter. >> >> The ACS Request P2P Request Redirect, P2P Completion Redirect and P2P >> Egress Control bits are disabled which is sufficient to always allow >> passing P2P traffic uninterrupted. The bits are set after the kernel >> (optionally) enables the ACS bits itself. It is also done regardless of >> whether the kernel sets the bits or not seeing some BIOS firmware is known >> to set the bits on boot. >> >> If the user tries to disable the ACS redirct for a device without the >> ACS capability, a warning is printed to dmesg. >> >> Signed-off-by: Logan Gunthorpe >> Reviewed-by: Stephen Bates >> Acked-by: Christian König >> --- >> Documentation/admin-guide/kernel-parameters.txt | 9 +++ >> drivers/pci/pci.c | 76 ++++++++++++++++++++++++- >> 2 files changed, 83 insertions(+), 2 deletions(-) > > Thanks for the re-spins! > > Reviewed-by: Alex Williamson Thanks for all the thorough review! Logan