Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp542986ybv; Sat, 22 Feb 2020 08:59:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyy8DzE7Ts8hlEUZss57HJsO0BfDnpFypXu/CsIcWYYbQ+qArkcxSG3CQmTG7DOyIkXP6mh X-Received: by 2002:a9d:7:: with SMTP id 7mr32041871ota.26.1582390742285; Sat, 22 Feb 2020 08:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582390742; cv=none; d=google.com; s=arc-20160816; b=xaqqw3Y2+pGS68b0OW3gzpiBnHWHeXgeHX0ffGukDz8qtzBe+oIQCyYkFuME4FsmFZ 0aq/v4FoMWuY+k8WU1qF1thNhqi93kzsaUzJfT5vlQjXh/bYD6K35MsEXCa/jb7U9uDw gYjcpm4sF4wtGmslr1RzM9OwPtHVQZz0lJfzbPSYHed0iYmBXnyXVHiW02y4v6i1obz6 REX5dULZ0MHf3edQgy+le2FjT3wSAaySv/XEsdO1O/q5+BUxmUHomV7cG+QNhIW/Iqi1 /fGE1Y7vAUynu44jLgkB9H+SJOPYMccTSrsIdu7JqKmZf4oipW/XlOsy8UzszHBgs0d3 L3+w== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=siTfAN6yKTgd/y1m7H5OaHlj4ZLdl0D0hOrdX0WVw54=; b=amjUUOtv7d2xWCUgDccay/hx4pn+3FrPPhgufN5K++iSQczB7E/JdwERy1eYlhUKgC d4W8bLQoo5gt1LuZuI+2ar/Moeyov8LdTTejXP2UwuFHt/bN+gwOVgaRbl6sjeots/ru Ye5j57YaHeS1tMFEz7uFX0OLAHZxQS+gkRA/1Pst+QdQr2WD/B/o+aNAXWamByWZC/tt fAW4Pi0bQHTz+s+Z45DkKQGCn+M1CApheOsUzUL580nj3CJKPJK7LOtRfcswzSCiqxmo gbOpo2l5rQmeIjzkaF/egQaKbAiJbCsViCT716bldtAMK5MXlm5oxC7zq1ssRj1flew8 d2fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1g1mqO0M; 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=pass (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 77si2605966oie.10.2020.02.22.08.58.50; Sat, 22 Feb 2020 08:59:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1g1mqO0M; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgBVQ6p (ORCPT + 99 others); Sat, 22 Feb 2020 11:58:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:56410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgBVQ6m (ORCPT ); Sat, 22 Feb 2020 11:58:42 -0500 Received: from localhost (mobile-166-175-186-165.mycingular.net [166.175.186.165]) (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 D8BBF20702; Sat, 22 Feb 2020 16:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582390722; bh=gkjFs/1a+pJHG97GNGxiu0bTzUWm8c+N+Zh6h+i2bpY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=1g1mqO0MCzSViG9n4r2G+9mRMtxkY+CMmvJJt9rUAPfG17iazzt2KeWAsjnYAzzkk e6oc/woJRK+lLRz2SU/p6BFtUwXexTix4uUDruhnWMIlSmbrxG07v/LMs5VKADBn33 SREmsw7MAfw1SBcwAdy54eZ9Ouvf7ImAjKGEXOz0= Date: Sat, 22 Feb 2020 10:58:40 -0600 From: Bjorn Helgaas To: Alexandru Gagniuc , Alexandru Gagniuc , Keith Busch Cc: Jan Vesely , Lukas Wunner , Alex Williamson , Austin Bolen , Shyam Iyer , Sinan Kaya , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Lucas Stach , Dave Airlie , Ben Skeggs , Alex Deucher , Myron Stowe Subject: Re: Issues with "PCI/LINK: Report degraded links via link bandwidth notification" Message-ID: <20200222165840.GA214760@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200115221008.GA191037@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Christoph, Lucas, Dave, Ben, Alex, Myron] On Wed, Jan 15, 2020 at 04:10:08PM -0600, Bjorn Helgaas wrote: > I think we have a problem with link bandwidth change notifications > (see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/pcie/bw_notification.c). > > Here's a recent bug report where Jan reported "_tons_" of these > notifications on an nvme device: > https://bugzilla.kernel.org/show_bug.cgi?id=206197 AFAICT, this thread petered out with no resolution. If the bandwidth change notifications are important to somebody, please speak up, preferably with a patch that makes the notifications disabled by default and adds a parameter to enable them (or some other strategy that makes sense). I think these are potentially useful, so I don't really want to just revert them, but if nobody thinks these are important enough to fix, that's a possibility. > There was similar discussion involving GPU drivers at > https://lore.kernel.org/r/20190429185611.121751-2-helgaas@kernel.org > > The current solution is the CONFIG_PCIE_BW config option, which > disables the messages completely. That option defaults to "off" (no > messages), but even so, I think it's a little problematic. > > Users are not really in a position to figure out whether it's safe to > enable. All they can do is experiment and see whether it works with > their current mix of devices and drivers. > > I don't think it's currently useful for distros because it's a > compile-time switch, and distros cannot predict what system configs > will be used, so I don't think they can enable it. > > Does anybody have proposals for making it smarter about distinguishing > real problems from intentional power management, or maybe interfaces > drivers could use to tell us when we should ignore bandwidth changes? > > Bjorn