Received: by 10.192.165.156 with SMTP id m28csp735579imm; Tue, 17 Apr 2018 19:34:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49JLaa7nLUu/I9Y2NHLaX06cmUDwr7lNIs+1RBu3PVoY5sfv1QZGiZCIpbF19XSXJNQtcO8 X-Received: by 10.101.99.68 with SMTP id p4mr211571pgv.421.1524018899171; Tue, 17 Apr 2018 19:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524018899; cv=none; d=google.com; s=arc-20160816; b=s2JOzgmYlHkx/X9z8S6oCcS1i7YeJ3960xblaSa9Zxtzcxp5IR5Is/vEOSuYrsOV8v B4PEsmveuNtDJEPbci+2xEVxom2sZqoR2xuL3QcQuVA+9xVYc3PWkDHAIrbD4DTtH2F9 Xw2xegQ9gkG4Op3U6u1xnz9omAC6JJomzN7yidJP0MypEwYHY6EW7jPWdO+SdHA8FGXo eBz3n+mqDhOCu4n12VwIbuaSGgzmMcgw0NLLIYY9fhBx4kbeEyvvqAUwv+BMLiyKtLma Y2Ghs4ms9JyTmqpGNnxeK9bxtto56gbI7hRmOMU7YPXTIPjtD5hNs8Jl41WVZ2Sad2s+ p8KQ== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:arc-authentication-results; bh=R0b0jIVwt66tgYSiV6gWvnrAODma/QK2grYkuGCT17E=; b=hs9ybs5BM6a7FyikPfP6q6YLYkToUeBM8sGCph+d8yi4CVfdCB5xflpxrQ7O31ywpD bFUVeSt34omdD5l2r7Z2pfrMl11aeuQD/YsplIzoZufhQ8ARXWZnk8Ky4M0T+6Ly2vnc lZY215BywadwsB59ouSndRSdSLij4U+mDhTjcUuA+l0IqLM98TRIpNDBvrTQ3iZ3Aype lq7eiwb9ncEZ8s0uVkyf+LUpGGgBI4TsLluB0NXkwKG+zTwqAuTFlkhECKv3442Slv20 /dRG8sImvDGReEDoiNKK2THomJhfRQNV9wPSOu3WloYzxmBSdETW8JQAcJ4ULvbyNS8a 8efg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=uv8LnmWg; 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 s14si220272pgf.263.2018.04.17.19.34.45; Tue, 17 Apr 2018 19:34:59 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=uv8LnmWg; 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 S1753596AbeDRCdg (ORCPT + 99 others); Tue, 17 Apr 2018 22:33:36 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:44952 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002AbeDRCdd (ORCPT ); Tue, 17 Apr 2018 22:33:33 -0400 Received: by mail-qt0-f195.google.com with SMTP id j26-v6so257006qtl.11 for ; Tue, 17 Apr 2018 19:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=R0b0jIVwt66tgYSiV6gWvnrAODma/QK2grYkuGCT17E=; b=uv8LnmWgZK1RPikrwVHYaQEM2Qhh/9qb9t7xOQNV65dN6+SB88xvr+Nhn6ww72Jnsy eoGnJcssiYIoNxhpPtVErrM/PhrWkg4ny1WXkTA9EeAsdQh9nxBQJWV3eD7Z0BZfAUrc g0npjNLkHBHpTzyPWR6BMumVeu5ipFMLyEMA5JDaYOrsgKEGPGplv0SUi42nQJtqddqO flT4aVm5KhNZc1f86CWXdLhZD7NAH0tZquwk3faE3zsRgf0zrrk4qVM7pQAyXlWliZSd G4C27aTTnHs22wBqJvTMA4jW4I+4lO2uXS3UUB7u8Yf7M2i3m0Fc6PUP7JuMoOjcou6o rUIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=R0b0jIVwt66tgYSiV6gWvnrAODma/QK2grYkuGCT17E=; b=i5cXWIc+jdh20NvaEp8vMy1xQSNfaJVF+NGX+MoGef0BLwZMnKUSQ/4o3aUAf4CTPK svHceF9hW+uPTccKJfv5ZNGbVQllGK4gvqBIRPI60OZpA9B2f/P9JKsa4b3vc9JKf5Va I3VvBRTDkFH1TXfYQQMkHmrfuaM7XJpb5QWtl4rLnLU39l8rU+iPtroIJvGpzHivIJzH nyTKopwnjltCUXXQhgE//GS5i8yZDSqhRLCcv698A2TiuAUryAJpqCv+zZjSDDM15Vqy R3ZvZdnZCUREm1eimNj6YSwD0oPv9TgkPEW8toF0TPSrCggpjSCbzZ+KPfKYIeBv4lXU eOaw== X-Gm-Message-State: ALQs6tCi4A7JYopWxCJgNvqLb/8nI09MLsAeHJc6OIV7uDg+lyyS999M yIvDhtbaK1NVFQF9Ui5Ob/n2UA== X-Received: by 2002:aed:3d57:: with SMTP id h23-v6mr263588qtf.225.1524018812767; Tue, 17 Apr 2018 19:33:32 -0700 (PDT) Received: from cakuba.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id b127sm129113qkf.76.2018.04.17.19.33.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Apr 2018 19:33:32 -0700 (PDT) Date: Tue, 17 Apr 2018 19:33:27 -0700 From: Jakub Kicinski To: Bjorn Helgaas Cc: oss-drivers@netronome.com, Tal Gilboa , Tariq Toukan , Jacob Keller , Ganesh Goudar , Jeff Kirsher , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH] PCI: Add PCIe to pcie_print_link_status() messages Message-ID: <20180417193327.41a3ff9a@cakuba.netronome.com> In-Reply-To: <20180413181638.6424-1-jakub.kicinski@netronome.com> References: <20180413181638.6424-1-jakub.kicinski@netronome.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Apr 2018 11:16:38 -0700, Jakub Kicinski wrote: > Currently the pcie_print_link_status() will print PCIe bandwidth > and link width information but does not mention it is pertaining > to the PCIe. Since this and related functions are used exclusively > by networking drivers today users may get confused into thinking > that it's the NIC bandwidth that is being talked about. Insert a > "PCIe" into the messages. > > Signed-off-by: Jakub Kicinski Hi Bjorn! Could this small change still make it into 4.17 or are you planning to apply it in 4.18 cycle? IMHO the message clarification may be worth considering for 4.17.. > drivers/pci/pci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index aa86e904f93c..73a0a4993f6a 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -5273,11 +5273,11 @@ void pcie_print_link_status(struct pci_dev *dev) > bw_avail = pcie_bandwidth_available(dev, &limiting_dev, &speed, &width); > > if (bw_avail >= bw_cap) > - pci_info(dev, "%u.%03u Gb/s available bandwidth (%s x%d link)\n", > + pci_info(dev, "%u.%03u Gb/s available PCIe bandwidth (%s x%d link)\n", > bw_cap / 1000, bw_cap % 1000, > PCIE_SPEED2STR(speed_cap), width_cap); > else > - pci_info(dev, "%u.%03u Gb/s available bandwidth, limited by %s x%d link at %s (capable of %u.%03u Gb/s with %s x%d link)\n", > + pci_info(dev, "%u.%03u Gb/s available PCIe bandwidth, limited by %s x%d link at %s (capable of %u.%03u Gb/s with %s x%d link)\n", > bw_avail / 1000, bw_avail % 1000, > PCIE_SPEED2STR(speed), width, > limiting_dev ? pci_name(limiting_dev) : "",