Received: by 10.223.185.111 with SMTP id b44csp651598wrg; Fri, 9 Mar 2018 11:02:26 -0800 (PST) X-Google-Smtp-Source: AG47ELvjT1FS5K9M03V0UsR2LEkuSnFURGEWGynZ7yteLF2qzCleWULAv/IvDedJslARdJwa22Bm X-Received: by 2002:a17:902:3183:: with SMTP id x3-v6mr28611007plb.383.1520622145954; Fri, 09 Mar 2018 11:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520622145; cv=none; d=google.com; s=arc-20160816; b=YjTDwJ8sbjgE3bKPKs9I2jl603jAu1tmDlo5v5morriVCYVtp8HMgVSrT6URKZ+QNW qEzB8b7wyRm2uhq9g5QoQ8oPjTPHQx+kQ7Ng1zAW14pxtrgT+Vh6Xi+6Hdy+RewxU4qR aWoIn6o4ea0lcTG4a2l6ure0LzZ+o3gbKv4g3E6uJbBQYlxvPQM6o6YbbGAfdS0m1yN2 qgMRzXzEVmKI9wD9S2P8CjjxGKPs8Uy+z/lvQ3YWUzgAcj0iampG/HbRxCptWQA7RWCn n/UxpQAJy5djIliqtaxLGzYOLA00DJEpOeAMWqOwCBT1upHgZKjbhjkqXFzA7kCCw69c WniA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dmarc-filter:arc-authentication-results; bh=bCsHtHFUK1W9fXBGxE65T2Aeb27zBlXkvuuDev+iojI=; b=aaAw6uvCn0F2n+QsFbq+hiZ+Liww3QqsjTxhO1P8ju61KqZAJTvp3SPY0Wf/HooWtN yXO3vxDuTlRmYu8YwjLl+1tf+55YEnebVGi/gzuBNimSlnSKBwjhX0ipGVubEObRvBP0 LwaEiIfimvDI2neq0KASBNApJjXML5Lr1A37A/jWnO+OrPPxDDiHYMkOKr1SJEI1dYjN 3uPkBj+etB1Zjv2RNThxOf57MKr6caX+U+doQJBRxkMP5FcrztTuisj1R/AObKEWSHNO LCrqLwIi04Z0MP9Kl4LDKVOekA2X1mNIZh8KgtV76SWqGUrWE7W+PBGnMQliza38nYU8 AZUw== 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 v20-v6si1311166plo.199.2018.03.09.11.02.11; Fri, 09 Mar 2018 11:02:25 -0800 (PST) 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 S932842AbeCITAw (ORCPT + 99 others); Fri, 9 Mar 2018 14:00:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:41032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932074AbeCITAu (ORCPT ); Fri, 9 Mar 2018 14:00:50 -0500 Received: from localhost (unknown [104.132.51.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 50E1C2178C; Fri, 9 Mar 2018 19:00:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50E1C2178C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Subject: [PATCH v2 11/13] PCI/portdrv: Remove unnecessary "pcie_ports=auto" parameter From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Keith Busch , Sinan Kaya , Lukas Wunner , Frederick Lawler Date: Fri, 09 Mar 2018 13:00:49 -0600 Message-ID: <152062204910.77693.7950471630136609237.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <152062141493.77693.9630397416694091342.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <152062141493.77693.9630397416694091342.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Helgaas The "pcie_ports=auto" parameter set pcie_ports_disabled and pcie_ports_auto to their compiled-in defaults, so specifying the parameter is the same as not using it at all. Remove the "pcie_ports=auto" parameter and update the documentation. Signed-off-by: Bjorn Helgaas --- Documentation/admin-guide/kernel-parameters.txt | 15 +++++++-------- drivers/pci/pcie/portdrv_pci.c | 3 --- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 761749562165..26565794a573 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3130,14 +3130,13 @@ force Enable ASPM even on devices that claim not to support it. WARNING: Forcing ASPM on may cause system lockups. - pcie_ports= [PCIE] PCIe ports handling: - auto Ask the BIOS whether or not to use native PCIe services - associated with PCIe ports (PME, hot-plug, AER). Use - them only if that is allowed by the BIOS. - native Use native PCIe services associated with PCIe ports - unconditionally. - compat Treat PCIe ports as PCI-to-PCI bridges, disable the PCIe - ports driver. + pcie_ports= [PCIE] PCIe port services handling: + native Use native PCIe services (PME, AER, DPC, PCIe hotplug) + even if the platform doesn't give the OS permission to + use them. This may cause conflicts if the platform + also tries to use these services. + compat Disable native PCIe services (PME, AER, DPC, PCIe + hotplug). pcie_port_pm= [PCIE] PCIe port power management handling: off Disable power management of all PCIe ports diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 1997d9f2743e..8b62192342ac 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -37,9 +37,6 @@ static int __init pcie_port_setup(char *str) } else if (!strncmp(str, "native", 6)) { pcie_ports_disabled = false; pcie_ports_auto = false; - } else if (!strncmp(str, "auto", 4)) { - pcie_ports_disabled = false; - pcie_ports_auto = true; } return 1;