Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1392822pxb; Thu, 28 Jan 2021 15:42:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn7RSOIk/ICT96BV+Ug+s5Kv9c3u1AR74S1FkiGnP5QbuGAJYrQ78B2RLKKOfxzfkz3Ckb X-Received: by 2002:a05:6402:1249:: with SMTP id l9mr2135730edw.375.1611877351054; Thu, 28 Jan 2021 15:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611877351; cv=none; d=google.com; s=arc-20160816; b=PDpsSlgdmDHlLbkybZLQqzotNC4o0Lm4FPwAVie9OF/vo2AZuBx2gPe2EmWbdl+nmf w+8qX6b4hGro68vAN9AKUN6tO03uVMMhc6rYJYLJ6zWAl+ywzM7augUE7JpLwcOUKAjC 1yUTKOLTnuPdFBANDLHL6ip1o26u9Gbah0WWVeXISr/LZrDkA9Pifso4J3H62pWcI0BZ lnPkQhnSW8kdfh/iW8H9Oca8vuI7Jtr4+UUWNY6Yh81CLknbcjKe+p5I1KtRRuVC1sjR OL3CW6p3NYIE0jEUMocPm+6iG8iLhlnEYz5xITrx/ft7SRpr0KLT+Rt+4uIKd8XTesBV +/fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=ZUDJHxjZ0u+4cwXu/37FJnwL926cwxJDeGk86YT0iIg=; b=UAZZjWjVaGZW5eWYY0b6spaA9QIdUH1Khh0Y2M6rgdZsf4+R8O4IF6lFrE4RtEPJfY 1QmrPZqL5QtrPTkZ/nIuf2YOP4ZWAsZvhTJrIJVdyCMAGBgSCMG+qqO9HN1S66Rh+Ps0 Iq5+SaeyQ9C/uyfIiINzASNitDnc9lmz1/JmXJZwGdJ+9kwyry7U4SMbafDBwINjvFoU I+zll8tnT0KDruqSMdz8+xIpKnHQzWbhPg5Bz5zDOfDWVGaXXMJgzQhr1krIDh0cSBS5 hQs5acaNHO4s4GjmYBwrZ5tTgFq5Bun9pJ8FopPXZQzMv9XY85SRyUAVsp+RShiLcQFv HFIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RQNMLRsX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a1si4150640edq.48.2021.01.28.15.42.06; Thu, 28 Jan 2021 15:42:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RQNMLRsX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231465AbhA1XkQ (ORCPT + 99 others); Thu, 28 Jan 2021 18:40:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:52662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbhA1XkM (ORCPT ); Thu, 28 Jan 2021 18:40:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E778364DE2; Thu, 28 Jan 2021 23:39:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611877171; bh=uCYlOxWFyGqfzsCOjgAMNaqNNqAKRulWHpgwkwEgtJ0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RQNMLRsXqregPQH2liQAw5L0gRasHqMLwn0Bz9kiNzAqOK0GMBn/pUCkD/S/iIv5k rltYgHbPb8y4r+8on6aa+T8GqVHL2CsYQhzzyenOwKqfLbof30U6FheCKJgyZW46Fc D+s1Xb+qcCbjYSNQ7XrcRKZCEvrbsNBdkT2Y6RRUxtqT6t1DKJmWXtRFy7oC1WSozc zd23P1uiAF9dkA8yQQAaTswCZ/Fo+U6IFokq7IxTQWf8GyFDTuEGMf9kf7LyZmWj+R as+D/W8BBFiCROZtd+kN9ZQH/yGtBf5ysvyHYPLjgDgu4AD8EXmgbKlIsp8cRkfZ1I bAL/Czktx315A== Date: Thu, 28 Jan 2021 17:39:29 -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 , "A. Vladimirov" Subject: Re: Issues with "PCI/LINK: Report degraded links via link bandwidth notification" Message-ID: <20210128233929.GA39660@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200222165840.GA214760@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Atanas -- thank you very much for the bug report!] On Sat, Feb 22, 2020 at 10:58:40AM -0600, Bjorn Helgaas wrote: > 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. Atanas is also seeing this problem and went to the trouble of digging up this bug report: https://bugzilla.kernel.org/show_bug.cgi?id=206197#c8 I'm actually a little surprised that we haven't seen more reports of this. I don't think distros enable CONFIG_PCIE_BW, but even so, I would think more people running upstream kernels would trip over it. But maybe people just haven't turned CONFIG_PCIE_BW on. I don't have a suggestion; just adding Atanas to this old thread. > > 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