Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3739552yba; Tue, 23 Apr 2019 08:50:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhY18TrDUHlNMX/U4/0rQbqrGeSdzeeadJUgzy0btvOgN/QP3u6WYHKF6lK6gc6P/7A8d7 X-Received: by 2002:a17:902:b948:: with SMTP id h8mr26984193pls.39.1556034632146; Tue, 23 Apr 2019 08:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556034632; cv=none; d=google.com; s=arc-20160816; b=g2iKfL1vFIvIvR2XQrI/mfbfktS4kuVYdj3fbSqXturRKVnxlJCB+D54Bl5Y4YOEzF Q8/HVAchfWO76chGmzQfwcVw6X3AQwxfXWzlbMI+PDexus3xZLMc7+k6A7Xr2K9Vl3EF uCcjOSgbWWXJWXXqDhax0qK85TtRuMZDkUATM7cvn7sVvXPG1mtmmfXntsp41LdYiXCT Upuq1ApbVA5Dih4zrl4Dz82k55Qos603A75FZ3+qRUTwtn+PEs/5FrmzUQX8uLTJt0iH Dq35DPjDe78/TnjP1ZGwotah5H+VeUlAVisMy8O1+3KQcim60lbOnCd4Jd5rT4PVANh3 BImA== 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=CTqcCpojvdiwqDwCtgk6Sed82s30BlHWPGS212zgsEE=; b=sAhdI38200IuwintVjPn7l5Emu3l9pFpqfvcBhxe0k+E10SqlDL6MZw/XOsq6pLYGo wqcUkeoY7HetFRiVIgUEQboH71O9BUFI96h2E0t3KKeQgCLedn0PIfgb60ae8DHJj4DC d4/lgNYMJnKihzavfcI6BUEU3eQhW29gfeQ3YwCt05wbu2Ky6RylieqdxX101PObV5at /NBCSeetPy2+nMmOGKuy+DaWBTfgMwFSFC4YFCyK3kWDPZSilcxpGjZxWNZFfUmpWTAS 6X0f00ikOcO/9zXj4C/rYMQ+t9uqHqdtRn7mAIWoZcwtqWBB9equvz9UH9QA5iIxsGXN LvrA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si16031075plp.369.2019.04.23.08.50.16; Tue, 23 Apr 2019 08:50:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728460AbfDWPtX (ORCPT + 99 others); Tue, 23 Apr 2019 11:49:23 -0400 Received: from bmailout2.hostsharing.net ([83.223.90.240]:45915 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728295AbfDWPtX (ORCPT ); Tue, 23 Apr 2019 11:49:23 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id EDAC12800B3C2; Tue, 23 Apr 2019 17:49:20 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 9123F5B529; Tue, 23 Apr 2019 17:49:20 +0200 (CEST) Date: Tue, 23 Apr 2019 17:49:20 +0200 From: Lukas Wunner To: Alex Williamson Cc: Alex G , bhelgaas@google.com, helgaas@kernel.org, linux-pci@vger.kernel.org, austin_bolen@dell.com, alex_gagniuc@dellteam.com, keith.busch@intel.com, Shyam_Iyer@Dell.com, okaya@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI/LINK: Account for BW notification in vector calculation Message-ID: <20190423154920.uytvswrxx7plv3dh@wunner.de> References: <155597243666.19387.1205950870601742062.stgit@gimli.home> <20190422183347.51ba522c@x1.home> <84300da7-9bbd-4f32-c7fa-23724db60b88@gmail.com> <20190423093408.16b07efc@x1.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190423093408.16b07efc@x1.home> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 23, 2019 at 09:34:08AM -0600, Alex Williamson wrote: > On Tue, 23 Apr 2019 09:33:53 -0500 Alex G wrote: > > 0.5W savings on a 100+W GPU? I agree it's meaningless. > > Evidence? Regardless, I don't have control of the driver that's making > these changes, but the claim seems unfounded and irrelevant. On laptops, 0.5 W can result in noticeably longer battery life. > I can see why we might want to > be notified of degraded links due to signal issues, but what I'm > reporting is that there are also entirely normal and benign reasons > that a link might be reduced, we can't seem to tell the difference > between a fault and this normal dynamic scaling, and the assumption of > a fault is spamming dmesg. So, I don't think what we have here is well > cooked. Do drivers have a mechanism to opt-out of this error > reporting? Is dmesg spammed even if no driver is bound to a GPU? If so, that would suggest a solution that's not dependent on drivers. E.g., the bw_notification port service could avoid reports for devices matching PCI_BASE_CLASS_DISPLAY. (It could also avoid binding to ports whose children include such a device, but the child may be hot-pluggable and thus appear only after the port is bound.) Then we'd still get a notification on boot about degraded link speed, but not continuous messages. Thanks, Lukas