From patchwork Mon Jul 30 16:18:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Logan Gunthorpe X-Patchwork-Id: 10549273 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7283C14E0 for ; Mon, 30 Jul 2018 16:19:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62DF02A385 for ; Mon, 30 Jul 2018 16:19:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 560C22A39C; Mon, 30 Jul 2018 16:19:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03ABD2A385 for ; Mon, 30 Jul 2018 16:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731845AbeG3Ryg (ORCPT ); Mon, 30 Jul 2018 13:54:36 -0400 Received: from ale.deltatee.com ([207.54.116.67]:54542 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731447AbeG3Ryg (ORCPT ); Mon, 30 Jul 2018 13:54:36 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkAsk-0005Yu-7y; Mon, 30 Jul 2018 10:18:51 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1fkAsb-0003aG-Tp; Mon, 30 Jul 2018 10:18:41 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org Cc: 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 , Alex Williamson , =?utf-8?q?Christian_K=C3=B6ni?= =?utf-8?q?g?= , Matthew Wilcox , Logan Gunthorpe Date: Mon, 30 Jul 2018 10:18:36 -0600 Message-Id: <20180730161840.13733-1-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, sbates@raithlin.com, hch@lst.de, bhelgaas@google.com, corbet@lwn.net, tglx@linutronix.de, paulmck@linux.vnet.ibm.com, marc.zyngier@arm.com, kai.heng.feng@canonical.com, mingo@kernel.org, frederic@kernel.org, dan.j.williams@intel.com, benh@kernel.crashing.org, jglisse@redhat.com, alex.williamson@redhat.com, christian.koenig@amd.com, willy@infradead.org, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH v8 0/4] Add parameter for disabling ACS redirection for P2P 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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Changes since v6: * Fixed order of operations for device specific disable function as noticed by Alex * Rebased onto v4.18-rc5 (no conflicts) Changes since v5: * Add a quirk to handle the Intel SPT PCH case (as pointed out by Alex) * Warn in the case that we try to disable ACS redirect on a device that doesn't have the ACS capability (also suggested by Alex) * Collect reviewed-by tag from Alex * Rebased onto v4.18-rc4 (no conflicts) Changes since v4: * Fixed a couple documentation mistakes spotted by Randy Changes since v3: * Removed some of the cruft that was copied from the resource_alignment paramater (per Alex) * A number of docuemntation fixes as noticed by Alex and Willy Changes since v2: * Rebased onto v4.18-rc1 (no conflicts) * Minor tweaks to the documentation per Andy * Removed the "path:" prefix and use the path parsing code for simple devices (as it works the same). Per a suggestion from Alex Changes since v1: * Reworked pci_dev_str_match_path using strrchr as suggested by Alex * Collected Christian's Acks Logan Gunthorpe (4): PCI: Make specifying PCI devices in kernel parameters reusable PCI: Allow specifying devices using a base bus and path of devfns PCI: Introduce disable_acs_redir quirk PCI: Introduce the disable_acs_redir parameter Documentation/admin-guide/kernel-parameters.txt | 41 +++- drivers/pci/pci.c | 310 +++++++++++++++++++----- drivers/pci/quirks.c | 78 +++++- include/linux/pci.h | 5 + 4 files changed, 361 insertions(+), 73 deletions(-) --- 2.11.0