Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5244420yba; Tue, 30 Apr 2019 11:25:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRFkpQ0X51x2rM6GN6IegRt0e15mY9K6UHVBnW93yYljmEOlJZ0R0TZ9BPdDdwAStzFCoQ X-Received: by 2002:a62:4281:: with SMTP id h1mr42908007pfd.162.1556648712799; Tue, 30 Apr 2019 11:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556648712; cv=none; d=google.com; s=arc-20160816; b=PyRdAle0NZd948ifallBdULjQDr9sHveIAp/68n8rNrgUAHrhViGh0S1tdAg5ej2hZ 7qOwkOhqwHelsMT7h7H0WFZC2ekumDIttnS+CpJdJ7ltjcinup2WmXE+fAPjmg+swVqL xKLmbE9hKKCbTF8/nqHAl3S1HgiWDaVEj+fFGzzqY7ewUtILBkB2+Z3uaDdgKDVg2ZJ4 skUFS0gId/KGrEUCIAjvkrYgwd3gGPjyBMYAcDq0dgZzDlqXkn2aY1nf94ORX5ihbwX8 5CzVZz3b1uTGLMgTkqXNL2+FYfavyzpb2QJHEoWhTMw1E/56JWGrFPfTAx1Lr3J4xtJv X4MQ== 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; bh=Fo3D7IXYQIjH03Xpunk8rMyMDgr1zrzOUILaxHUV/DE=; b=06bn4KoL/d/qd5/y+WbWKwwcbm/6CFtjhcNaMDqTq/zIOk14vv15Kdkj8f5BVZsUt5 H1VRJLrKa21u1GckM4TdnSAsjbmitmwPGP0/jrT9vIuNmzNdQtHssC4WPLYB+od/OJpe jjwORxlzq42IqXUsA7cdrgGqW7O+j5UzFWunAAzPnP9w1DngkQFr602pmXcfXuhbDALv 6n/6tR8NMyOlQXLTsr6ZnRmuKobqXfXUMjvaQ3jcAdWGJB8AxfiW3U6gWyN7/9LsXZfY 2fqlJTi5uuYQFtvdP45t8X51lK+FKIteUKPtg2vS19b2bgWndeyLwbG+ka0gzxz0c5FD Xc8A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si38654557pgd.243.2019.04.30.11.24.56; Tue, 30 Apr 2019 11:25:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727001AbfD3SYD (ORCPT + 99 others); Tue, 30 Apr 2019 14:24:03 -0400 Received: from mga06.intel.com ([134.134.136.31]:35329 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfD3SYC (ORCPT ); Tue, 30 Apr 2019 14:24:02 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Apr 2019 11:24:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,414,1549958400"; d="scan'208";a="169379061" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga001.fm.intel.com with ESMTP; 30 Apr 2019 11:24:01 -0700 Date: Tue, 30 Apr 2019 12:18:13 -0600 From: Keith Busch To: Bjorn Helgaas Cc: Alex G , Lukas Wunner , Alex Williamson , Austin Bolen , Alexandru Gagniuc , Keith Busch , Shyam Iyer , Sinan Kaya , Linus Torvalds , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "PCI/LINK: Report degraded links via link bandwidth notification" Message-ID: <20190430181813.GC25654@localhost.localdomain> References: <20190429185611.121751-1-helgaas@kernel.org> <20190429185611.121751-2-helgaas@kernel.org> <20190430161151.GB145057@google.com> <20190430180508.GB25654@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430180508.GB25654@localhost.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 12:05:09PM -0600, Keith Busch wrote: > On Tue, Apr 30, 2019 at 11:11:51AM -0500, Bjorn Helgaas wrote: > > > I'm not convinced a revert is the best call. > > > > I have very limited options at this stage of the release, but I'd be > > glad to hear suggestions. My concern is that if we release v5.1 > > as-is, we'll spend a lot of energy on those false positives. > > May be too late now if the revert is queued up, but I think this feature > should have been a default 'false' Kconfig bool rather than always on. This is what I mean: --- diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig index 5cbdbca904ac..7f480685df93 100644 --- a/drivers/pci/pcie/Kconfig +++ b/drivers/pci/pcie/Kconfig @@ -142,3 +142,12 @@ config PCIE_PTM This is only useful if you have devices that support PTM, but it is safe to enable even if you don't. + +config PCIE_BW + bool "PCI Express Bandwidth Change Notification" + default n + depends on PCIEPORTBUS + help + This enables PCI Express Bandwidth Change Notification. If + you know link width or rate changes occur only to correct + unreliable links, you may answer Y. diff --git a/drivers/pci/pcie/Makefile b/drivers/pci/pcie/Makefile index f1d7bc1e5efa..d356a5bdb158 100644 --- a/drivers/pci/pcie/Makefile +++ b/drivers/pci/pcie/Makefile @@ -3,7 +3,6 @@ # Makefile for PCI Express features and port driver pcieportdrv-y := portdrv_core.o portdrv_pci.o err.o -pcieportdrv-y += bw_notification.o obj-$(CONFIG_PCIEPORTBUS) += pcieportdrv.o @@ -13,3 +12,4 @@ obj-$(CONFIG_PCIEAER_INJECT) += aer_inject.o obj-$(CONFIG_PCIE_PME) += pme.o obj-$(CONFIG_PCIE_DPC) += dpc.o obj-$(CONFIG_PCIE_PTM) += ptm.o +obj-$(CONFIG_PCIE_BW) := bw_notification.o --