From patchwork Fri Apr 13 18:16:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 10340707 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBECC60329 for ; Fri, 13 Apr 2018 18:17:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD73E2899D for ; Fri, 13 Apr 2018 18:17:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EDF7289A1; Fri, 13 Apr 2018 18:17:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A66BD2899D for ; Fri, 13 Apr 2018 18:17:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751154AbeDMSRF (ORCPT ); Fri, 13 Apr 2018 14:17:05 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:39993 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbeDMSRD (ORCPT ); Fri, 13 Apr 2018 14:17:03 -0400 Received: by mail-pf0-f195.google.com with SMTP id y66so6502655pfi.7 for ; Fri, 13 Apr 2018 11:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=vuTYSWivOZGDl6fRr8TKvpmcq7cZ8Cxrv4owI+OTZUk=; b=tNFxzGc0BBKMtYW40rWin7dTVJvSBlNUXM3+xvmzITZkhjappbY4EmdV9rsu/L9til 7WI7QYO7E7W1rR5jjEnogFmI3EfJUsD2z75CE6bA+VPho/Lf6RsPspIvTjj8IwHsyJ/D 6Wum7sAOoM/FB0fhpVMJ2ytN1EbchmNg10HGhDiXkYQFy/NVvyuN73Zpwd+2TYE8VuwO 6ijJ1crcFZu5INs3IM2iP8MAza5bUmlmeJn6QaBEJcQQIWwvMVdhaItWpamY9wNgLmTY xyTSqJUGPcEHYtuEuka13KuUBTgeAx+qZyesIJc4a9E6MHbkXQBVKAq1QBmFTNA6YqJI z7kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vuTYSWivOZGDl6fRr8TKvpmcq7cZ8Cxrv4owI+OTZUk=; b=KCFyuwMyjkBTnjFygtgij3Hh8aakbGetsGPsJww5abQ+98Jg6avleOF03KzqDvc7oC NvZl5Z+tgTte2dSFyI9VLtc8gNIYNfLfCU88IRcxtUrsqhJw9Gwyd+ZI9YYYeAs/dwi+ 3zfo1qdeDuWKhmaibflvsPB7ITS2WG2AwKISNa8RCFYr5PsIevT6x+a5jOkkzIoUOW0A O2Ty2awV3WFO+ceBioKWq3XNZLYtXzhYZ/vUMZFQ+ELL6jpyQNpM2E8H2tNTfQjQZwYx zu2Dy2RsCcworHFf/Z6RsNL9nDLt2va9OTuJoAY1ZFVdOThWddpVz2+ETG2GNv/0hxbp 1lFg== X-Gm-Message-State: ALQs6tBWfsgYXe3pLUUJeV8Cb428beBwjdu2HE1MBia9zY7zk7RFfjVD EBnaYnOX+lSFAgu+gE1hlQyehg== X-Google-Smtp-Source: AIpwx4/+yAWptRyxoTPgUyaVqiScbjtI+C0sObKsRXO1ODVuzgHvnm4w+u1TyCimtkNdr7KdT+ceug== X-Received: by 10.99.188.9 with SMTP id q9mr4725688pge.381.1523643423354; Fri, 13 Apr 2018 11:17:03 -0700 (PDT) Received: from jkicinski-Precision-T1700.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id t137sm11418545pgc.16.2018.04.13.11.17.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Apr 2018 11:17:02 -0700 (PDT) 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, Jakub Kicinski Subject: [PATCH] PCI: Add PCIe to pcie_print_link_status() messages Date: Fri, 13 Apr 2018 11:16:38 -0700 Message-Id: <20180413181638.6424-1-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.16.2 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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) : "",