Received: by 10.192.165.148 with SMTP id m20csp531713imm; Fri, 20 Apr 2018 10:41:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7gnSEwFjIe76Ag/QaJC4mkznSZdxaPY2Nc1EbxPu1LKThotd4aI5N5Cp89/6CDUHSU0t2 X-Received: by 10.99.45.70 with SMTP id t67mr9175229pgt.439.1524246095404; Fri, 20 Apr 2018 10:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524246095; cv=none; d=google.com; s=arc-20160816; b=X9leufQ2UStn0M4InJRdOw2YjqSH4t+49rN18PR1WW5ba6m2WFN9/FSxYgG6BykRmq jkgNSwxrq0ZAwOU068VEuVGFAofvUabc4ErNo2sZMNud1NhWNrZO72e6+pmeEiUQ8O9F FnHejD5yXbgAK9fck+3AHoiJcCcPuXu/9H6E/VuuSkdLhUZwgkMf80TX1FyxOlArouB+ 0sf/5xObT6huuBjLSRWFtG/Jhy3gw+khVJGScJP0PZ2o0l618yJD5qMtMbFFlEVmKs/O qaaZgEshB+PeiEe0g6epxAbMNVdFyasKUx7FrHwxWKGx9oGUdK/5zs3D6Assip0X+XXF TDYQ== 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:dmarc-filter:arc-authentication-results; bh=DemCvoyiSJyn8NV50wWO7GMJZw9JAvlXR7xtNEad2xs=; b=A0L2l5sB4e4BJmEhWF0xyHcPCvXZqbl2Dpp1YLVmuCtrJcrTR5ctrtM2iop+4wAaIW ceS3BNDWRd6vRYoLSNX4tEnRnMjKK11FKq8hoQDum0FoYieDYUQD6icO3QOKHwlABKXn 3kTI6jvFO/4nLb7eblUAbgMvhNkZSDyDozevFw+OkwxPkQFQyevsxLeKQoDJSk4F9fzi z5QcQou4VNB//KBqBn9JGgbopJz368lgTaCV12pqWgG4VsOFOYjUILZf4mZ20HdOeAud R9TIjQR9IYAtKed0vuEY13iZ6Py4YDCr8EmIHr3hsWsn+K/2KqK9x5qIZJRm1efvBQ17 4clw== 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 n6-v6si6250583plp.386.2018.04.20.10.40.57; Fri, 20 Apr 2018 10:41:35 -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 S1753520AbeDTRiM (ORCPT + 99 others); Fri, 20 Apr 2018 13:38:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:39464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752689AbeDTRiL (ORCPT ); Fri, 20 Apr 2018 13:38:11 -0400 Received: from localhost (unknown [150.199.191.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77C5820C09; Fri, 20 Apr 2018 17:38:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77C5820C09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Fri, 20 Apr 2018 12:38:09 -0500 From: Bjorn Helgaas To: Jakub Kicinski 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: <20180420173809.GR28657@bhelgaas-glaptop.roam.corp.google.com> References: <20180413181638.6424-1-jakub.kicinski@netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180413181638.6424-1-jakub.kicinski@netronome.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 13, 2018 at 11:16:38AM -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 Applied to for-linus for v4.17, thanks! > --- > 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) : "", > -- > 2.16.2 >