Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2124797pxb; Fri, 29 Jan 2021 14:02:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5wDoLUFtYS+AJe3XhGYOHrDZD6KuDFEj7ZCVQsirZCZUQCsqBTyCTLBpHa9zvvytOB3ok X-Received: by 2002:a17:907:1b27:: with SMTP id mp39mr6454142ejc.519.1611957631730; Fri, 29 Jan 2021 14:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611957631; cv=none; d=google.com; s=arc-20160816; b=OZqvtYeBt5xOKqPsBM3AMM6szuzbHuZikB6kK3b5rHOmI5+1x6w+Wvx2wcspudYO6x FiMeJX+Fu0/+0JQ87UAZEQs4KeaedDyTr1HJAJgztwbLuBBpqrDBneAMSN7raiMDp/lv LEF3xW5E3KbYXTVI4ogPyjUg2S0PFsCo26o89mBuyd+MYbCYuaZ8aPljrvQDPAiMupgb EF62jrIImGogvd/tqcOKb2Z7GmFlOdIcl8xLqltyPFHhExZHE07mSLWdl/nYsFNVqqgj SwptUtFXpa4l5aJbrKEiHqiLDrYW9xJVh7/LvyGYM7/DEQ/WnVlP0WbOvrdxSmhmXS1P C9Yw== 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=Elxio7aNdADuSK409jiLpfVRcvTCT9Ei5+7Raz+Gu8E=; b=dGCxWZbjOZJV+RWCqUCsMZ9lNK2hd1vmqrXO7faLMstcYuArlCejJmPCfD7a0RvioI JtCF+ixYjRMcOIt74tltG22PzrOqewPvXK/bFiY97m/A80Tin5sMxrHfhX9iXL+4C2De DKO9CZ4LnTuPin81SZ2QKnbDw40ES3Jt7xUvkRkJ4Nzpl4uMWnGoRjyVLy1kQdEzgwjo Dfctxpra/8xZ+q/zc0khSkOV3usNQF3NwBQSDa+Q62AhDVuJKBCqtmZXCzx3yiD5MT5v XDi/yv/F/F/ewTtlqHK120wjVt+46qbYcyNKKRs1ldkk8QehJ1fTUajnClcJnV6ZxEsg sbUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rfopaU5h; 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 g13si5992385edk.411.2021.01.29.14.00.07; Fri, 29 Jan 2021 14:00: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=rfopaU5h; 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 S232812AbhA2V5J (ORCPT + 99 others); Fri, 29 Jan 2021 16:57:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:55710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232535AbhA2V5B (ORCPT ); Fri, 29 Jan 2021 16:57:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 91D9D64DDB; Fri, 29 Jan 2021 21:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611957381; bh=dypjTuYXyR6gLCOHJWW9+7erzHAmZ8hQ6zLYMGrE3JY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rfopaU5h9kVf6LpwGaTOUSFzN0A/NXs6NggJJlw5LLwCpNvUnRYmOXzs+c+Lnff5P 8Abhs6OXcoVzwgyGJ8fT/NeOY+cQ87N5YxRaJXNq5TzMWpF7cRfSupzNu0rtsojC6K ltxLOYpbnX47Id3Y0WDSCGUuomxMC/DnZiklPK1NiuKQrYEG14q7mIiduPKdc/oTOA uN8bbPJej7z6xXOSzrZ66mk+PQ0wOmSA/H9AzfVK2CQEGvfoHLea8CCn8fQcksgrvg tNASIw9VfHfz1eE+hgnH3B3pCRdF6RmaipbsHEfNhWfZlGB78soAj3sC0HtFJxTBA1 bYN9LksU53+7w== Date: Fri, 29 Jan 2021 15:56:19 -0600 From: Bjorn Helgaas To: "Alex G." Cc: Sinan Kaya , Alexandru Gagniuc , Keith Busch , Jan Vesely , Lukas Wunner , Alex Williamson , Austin Bolen , Shyam Iyer , 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: <20210129215619.GA114790@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 28, 2021 at 06:07:36PM -0600, Alex G. wrote: > On 1/28/21 5:51 PM, Sinan Kaya wrote: > > On 1/28/2021 6:39 PM, Bjorn Helgaas wrote: > > > 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. > > > > Hide behind debug or expert option by default? or even mark it as BROKEN > > until someone fixes it? > > > Instead of making it a config option, wouldn't it be better as a kernel > parameter? People encountering this seem quite competent in passing kernel > arguments, so having a "pcie_bw_notification=off" would solve their > problems. I don't want people to have to discover a parameter to solve issues. If there's a parameter, notification should default to off, and people who want notification should supply a parameter to enable it. Same thing for the sysfs idea. I think we really just need to figure out what's going on. Then it should be clearer how to handle it. I'm not really in a position to debug the root cause since I don't have the hardware or the time. If nobody can figure out what's going on, I think we'll have to make it disabled by default. > As far as marking this as broken, I've seen no conclusive evidence of to > tell if its a sw bug or actual hardware problem. Could we have a sysfs to > disable this on a per-downstream-port basis? > > e.g. > echo 0 > /sys/bus/pci/devices/0000:00:04.0/bw_notification_enabled > > This probably won't be ideal if there are many devices downtraining their > links ad-hoc. At worst we'd have a way to silence those messages if we do > encounter such devices. > > Alex