Received: by 10.192.165.156 with SMTP id m28csp993174imm; Fri, 13 Apr 2018 11:18:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx482Sexm5EJXB20Z4HSQdq3Gd/Ss1mEtXuYo2BLnIsJX6CR5PX8PJa0CtqVQtyFKr8uMS3LV X-Received: by 2002:a17:902:5681:: with SMTP id j1-v6mr5966075pli.383.1523643514335; Fri, 13 Apr 2018 11:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523643514; cv=none; d=google.com; s=arc-20160816; b=z0itI3er/CR9e/WJr+CI+lk6K+Cm2Ze1bDCRVH3dzpGe/p2rxeRrJu4/14l2JSve8D x17ZbTsmt8burFn7J8yaCkbgy1UGW46cNzCA6iy/OEWmYWDbkDsY5fn1vCjUs/A0pPH0 9Zet0hpO1uwGpzBFAZCFvQLWB3J36gghX+QfXUkEnod3cpumgOYL+kCzXQqMMDDSedw5 K9UbknfWAmY8tca23tkrWi2W/VjKeHcyw79HnqEy0r0p67YDLumiLsAHWLr1DrFq6chh WZVNVqTRy0puW0q+1/MK+WWxwmYX7Xt6s+tHW1SpCNMqxZbsnc6OkxXmVgLsbdRLhAlr rsmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=vuTYSWivOZGDl6fRr8TKvpmcq7cZ8Cxrv4owI+OTZUk=; b=GNNl/meQrLO8Y7JSE4RoUo5XvCqPqP2tCJNTyykf1A5+1lC8rFmHLffLILQhszjXno rzIz+qA/TrvVmzSun4Uc67SeNSB56NAmWYfTNrnF8xkY/Aw6qOLJK/ktDmb6qRPwq5XI Y6W152yJ47G6vnUJVkexbOXYAnfDiGdqwkITUeh+efnj8hEu9kIL87GAc6iSf5nat/rF L75Ba9AtvXnsWFBic9H9pxr2gToGFP3V445jQHRR7jhjbViKXdFau8Cq/jioWLtyrgy/ 6EZONhfdXRxLEOK7eavRVy/fClRdlBHih66Cww6a09dWLNFUe3Pp04VM1AGZxB2BCsJo 6T1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=tNFxzGc0; 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 h28si4572668pgn.22.2018.04.13.11.18.19; Fri, 13 Apr 2018 11:18:34 -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=tNFxzGc0; 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 S1751632AbeDMSRG (ORCPT + 99 others); Fri, 13 Apr 2018 14:17:06 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:44613 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeDMSRD (ORCPT ); Fri, 13 Apr 2018 14:17:03 -0400 Received: by mail-pf0-f194.google.com with SMTP id p15so6506191pff.11 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=jc6+wWhqds689M+gooalcBHS4hoWfuKo6+4RjyzMdfrdQodmiNyKZuUisjZxJ88T0m 6mIRp8CRWf8LJFsFtIQYHWnpFTQxAYeELjmJr2uWuG/I0+g3xIC/6UkXzs13eNpMLs/3 NZQyZe9Ovw2IgygavZ7YhZgDJgjMilNRsCKIPVI7a4EFLd5olEY5YRCAideZMgL4W2Fg 4iaagViTWD/QNoC0cE2jSjhCE9E2pJ0xbzRw35UNU8tMWVTk8QE4ECovYnYqNdBrTS8w qObplMhcb82//rlXLUHhyufkz0M9Trv+hNpq8oCe4ZUr2sAIAA08HdRlAd4/cOZSr7LE 77zw== X-Gm-Message-State: ALQs6tDsMak2I6SpT0l7ka00h1bNEzKsFofs5GgsrJnpqKmS6Wari0pM LFz5cPguUjXix59BjTzqmSrPEA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) : "", -- 2.16.2