Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4077878imm; Tue, 29 May 2018 21:33:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ7IBerPGS6mroexkx012W6jnAc9WJk3ZSvG9vGtoWBduiXrUZeTQhjXyiaO7HvfqijcQep X-Received: by 2002:a17:902:548f:: with SMTP id e15-v6mr1314077pli.314.1527654789344; Tue, 29 May 2018 21:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527654789; cv=none; d=google.com; s=arc-20160816; b=Zo/0DOaHS8zsJwPzb5/C0Pc/ZEy3OaXMupGAe8/aQ16JJd9LcwWSfVYsXjOO6KKnYL sZr/VfcWtfyC/cz+OgysEi1ArOPwqcKbpQJL040jOV2DfPQUH32WV5STK5FDa9QcFvMj SYQlnJVScOk64Dj9OquLElImS6nCSRfH+ja04hME28lvWO4gzNa8xs/CVYc1seNJEE8e +GEYFN90NpRuZRE9C6NmSvaY7LjXondIlyPvxRxDWk7ae+1TqZXo3ICkAuDEAus2qS0W iigci0vLZLSz+ZvT2a1rOGea/0Wa61YtQfdSWZhq/SxIMvXOkbDTF7OO2RE6mWHj3Vda B56A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=aUE9qAFHQk8zQRiW4+zlt9mrx48jxrCI1r5NAK0LSVU=; b=L5dd2IkyQ3cs4FZdfEioajj49Z2viLdsUOS0U/Ho335jGohf/z/27WKc3xo0p/LSrR UYQnAsg+Y3yGIC0ToCjZGGYbwd8E0OWcG7HC7yAcgXxQDdIFRQuE8n2DiXrvsGFk7hGM W0lr05WsmETYSeCAvrH/NRic9DhNtMnxtryUvgDGg487aK1CPJ4LGVo5pDGMBzAv9fi/ uNkX8hUBYnRvm6c3RR9U9iK2N1vap26dMBZeyCkCn5kJ+kDGuFaBY9iQ9zCAY5TjE00t pDXGHa+lfO0nmMWh+6x+RdMy1fRLCRAfIQNLuxkkV1538ls7oYAUXSDOp4BBV6kHC9+w 6M4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZEgrk/pC; 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 u68-v6si34590109pfb.42.2018.05.29.21.32.55; Tue, 29 May 2018 21:33:09 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ZEgrk/pC; 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 S1754955AbeE3Eb3 (ORCPT + 99 others); Wed, 30 May 2018 00:31:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:54712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbeE3Eb1 (ORCPT ); Wed, 30 May 2018 00:31:27 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 0F9CD20842; Wed, 30 May 2018 04:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527654686; bh=rveyNb4VYwg3ucLfQbKmFI0uJ5bHKt/1aqwwxEVUXTY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZEgrk/pCwAXwABShQ4wKQqf5gRbJGmSaF/n7Q285uF2QwBro0fbveTnWIDt0NDtnU pJwAEYngm5zmuZZNukoXcBp/xutkLzG9FZd3rqF2FIGnLQGJJXM38Sk1MlJw16iuSl fGfMu7KGgtqSEqkKyDE56prh/zqSfQA5SVSGdXj4= Date: Wed, 30 May 2018 06:31:03 +0200 From: Greg Kroah-Hartman To: Sinan Kaya Cc: linux-pci@vger.kernel.org, timur@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jonathan Corbet , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Christoffer Dall , "Paul E. McKenney" , Marc Zyngier , Kai-Heng Feng , Thymo van Beers , Frederic Weisbecker , Konrad Rzeszutek Wilk , David Rientjes , "Rafael J. Wysocki" , Keith Busch , Dongdong Liu , Frederick Lawler , Oza Pawandeep , Gabriele Paoloni , "open list:DOCUMENTATION" , open list Subject: Re: [PATCH] PCI: Add pci=safemode option Message-ID: <20180530043103.GA19734@kroah.com> References: <1527650389-31575-1-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527650389-31575-1-git-send-email-okaya@codeaurora.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 11:19:41PM -0400, Sinan Kaya wrote: > Adding pci=safemode kernel command line parameter to turn off all PCI > Express service driver as well as all optional PCIe features such as LTR, > Extended tags, Relaxed Ordering etc. > > Also setting MPS configuration to PCIE_BUS_SAFE so that MPS and MRRS can be > reconfigured with by the kernel in case BIOS hands off a broken > configuration. Why not fix the BIOS? That's what sane platforms do :) > > Signed-off-by: Sinan Kaya > --- > Documentation/admin-guide/kernel-parameters.txt | 2 ++ > drivers/pci/pci.c | 7 +++++++ > drivers/pci/pci.h | 2 ++ > drivers/pci/pcie/portdrv_core.c | 2 +- > drivers/pci/probe.c | 6 ++++++ > 5 files changed, 18 insertions(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 641ec9c..247adbb 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -3153,6 +3153,8 @@ > noari do not use PCIe ARI. > noats [PCIE, Intel-IOMMU, AMD-IOMMU] > do not use PCIe ATS (and IOMMU device IOTLB). > + safemode turns of all optinal PCI features. Useful > + for bringup/troubleshooting. s/optinal/optional/ ? And you should explain what exactly in PCI is "optional". Who defines this and where is that list and what can go wrong if those options are not enabled? In looking at your patch, I can't determine that at all, so there's no way that someone just looking at this sentence will be able to understand. thanks, greg k-h