Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3664005yba; Tue, 23 Apr 2019 07:36:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaxXzh2tkVZnqzxSgOBQSFcBu7kywVl8XoLO+mMt302FjSlTUBJiIfugbY9c+jXSKrWJBG X-Received: by 2002:aa7:9389:: with SMTP id t9mr27269619pfe.60.1556030201544; Tue, 23 Apr 2019 07:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556030201; cv=none; d=google.com; s=arc-20160816; b=khqUsZrCXcQLTG/qJrIDOS5QkbpR3uEOM3Mvkku/9UYLTlNTWPwxMqbkO7Qf2YutBL 6m1uwg/7qVO7WJBYVYLbWQjEEPE+EHs17kgL8e0nkwggHCGv1W3KQlEui/PAH4nGIe0H XSq8Zwf+5aRr0HAO2emSvXt3fOcMhLSU7o6nfhCRLswfrxSHSTShNPLspX+TH7D7aI/8 9PjB6nqL9KffiaW0ICtROIH83opgdKmtLMR1mq5RsNbBEGTe6CrwgzGX7q0QhgbCpnBw r0UcUgvAOWqMswb+JrYYw96tN862Is2/okSXcL/HeOFELN83U0y6i64zjBph3tsb1i+5 YR9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3At1fI9N1eg8Et4ARVC2n3zebSL8yuqB5lEKY2h0dSk=; b=Da2iPKi/aUah3JVE8VcIbg+kWl3cHY2Wej8Xcyrw5aDzFV0PYFTwQu/o/wRkdwATzy 6V0VK5wDDO1EsIQrZGtR+xIxkKhOAlcT9e09BtmtmT8uN09aNccXXEGRYy2od6wEGURf pry2f3Y61WYvNUpwn6/bE0PfLx1Mg9CpyxJHMr/xyyJhq5oRNQZ2KKiM/BsufopQLPN3 CQpW2ggTaug9fFHR6F1XJIBmluerI3k8e8tebW1TNF0e6sWCYgHkHMhE6QY4m/cPl20B oeegIRwVI0lt6TaA8XO2Wch09ibvIqhJg2dSDta7G1/HW9PV/okFhhBXSwTiT30KfviC ZQtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ql1sS65D; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si15651520plt.4.2019.04.23.07.36.26; Tue, 23 Apr 2019 07:36:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ql1sS65D; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728222AbfDWOd5 (ORCPT + 99 others); Tue, 23 Apr 2019 10:33:57 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:50656 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbfDWOd4 (ORCPT ); Tue, 23 Apr 2019 10:33:56 -0400 Received: by mail-it1-f196.google.com with SMTP id q14so508112itk.0; Tue, 23 Apr 2019 07:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3At1fI9N1eg8Et4ARVC2n3zebSL8yuqB5lEKY2h0dSk=; b=ql1sS65DR0KntPdZVz6uwIbO8SrThBVzgrNvMccR91gAW9Wh9zacS3KuFhHSkxNjpv yFyRonqcql2Yb4l+iDD9KqRsYNmH9Ug/yQSQPoEJz7BmNKSBTYCyqDZ8ZeMGJqzq7RC0 RI6h2OdUi9Yk5r+21jMF5BoZQndbkj5jMZUUy294IdbNZYm/HMb1ToyhAbUU5TjAaMF5 0obT1HeDVMmdKA/0XTvTLlTw7lwhl5whPUctPfPPGvm/kKYxrLTXlhcqBMg4aQqMgKEk 2DDAZjdfYZnF7YiKGXXA1G/FoWJ8XYAKt5XLE+yMN3bik1mz+qT4vV3bhWSRsaDbDgeO X/fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3At1fI9N1eg8Et4ARVC2n3zebSL8yuqB5lEKY2h0dSk=; b=GEkZoEzctwEKbTBx5HjyDYWT7abQRtTP7MlIvtzRgDADBu4R4ibfB239kyOKy3FKjn SDVLUhf5zZaQphQH1WME2HjUGO2ZJkF/eg0fqmzALIejnffQiW/joDMk98LJ9qu5evKK WZBLrS9ghf1fMMNGYOAP+qkACXxekWD9+XXlJeEcpjgGnLVpxBoy+6hN3eTz3/4XVq5U XysxcsL3nCfKoxnj0uXHjGqqpnMrhChhN0v/GcMFQgfNappVBliNLWES6e4qoMOzVs7U qUJvziEEGISGpnAIuRq3QuZxqaD75EWQVNYE30A9t1O/JKyraPOoSua7WsY1j8oJEtWw cpUg== X-Gm-Message-State: APjAAAV9Yk7V4Vnch5smXc++shtHgfTynBDVPr7n0kQavoDeaPCobKn8 0JklX12yT4ffx7TgLKhkHNVg13HaAEU= X-Received: by 2002:a24:51:: with SMTP id 78mr2506373ita.20.1556030035724; Tue, 23 Apr 2019 07:33:55 -0700 (PDT) Received: from nukespec.gtech ([2601:2c1:8501:182d::6fe]) by smtp.gmail.com with ESMTPSA id g1sm5374656ion.2.2019.04.23.07.33.54 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 07:33:55 -0700 (PDT) Subject: Re: [PATCH] PCI/LINK: Account for BW notification in vector calculation To: Alex Williamson Cc: 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, lukas@wunner.de, okaya@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org References: <155597243666.19387.1205950870601742062.stgit@gimli.home> <20190422183347.51ba522c@x1.home> From: Alex G Message-ID: <84300da7-9bbd-4f32-c7fa-23724db60b88@gmail.com> Date: Tue, 23 Apr 2019 09:33:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190422183347.51ba522c@x1.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/19 7:33 PM, Alex Williamson wrote: > On Mon, 22 Apr 2019 19:05:57 -0500 > Alex G wrote: >> echo 0000:07:00.0:pcie010 | >> sudo tee /sys/bus/pci_express/drivers/pcie_bw_notification/unbind > > That's a bad solution for users, this is meaningless tracking of a > device whose driver is actively managing the link bandwidth for power > purposes. 0.5W savings on a 100+W GPU? I agree it's meaningless. > There is nothing wrong happening here that needs to fill > logs. I thought maybe if I enabled notification of autonomous > bandwidth changes that it might categorize these as something we could > ignore, but it doesn't. > How can we identify only cases where this is > an erroneous/noteworthy situation? Thanks, You don't. Ethernet doesn't. USB doesn't. This logging behavior is consistent with every other subsystem that deals with multi-speed links. I realize some people are very resistant to change (and use very ancient kernels). I do not, however, agree that this is a sufficient argument to dis-unify behavior. Alex