Received: by 10.192.165.156 with SMTP id m28csp833057imm; Fri, 13 Apr 2018 08:35:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49WiTYgRAP+dKKnV98AI45XY/yQscdJjIDfCWyk6YGc1ozAzMEOBiTmRvKDDGRfG4uo3pYm X-Received: by 10.99.190.75 with SMTP id g11mr4453348pgo.127.1523633738495; Fri, 13 Apr 2018 08:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523633738; cv=none; d=google.com; s=arc-20160816; b=gpcmz/9omn3YzcTD8GGQ8usTWP53I2kdA9X2bYbUvdc2rqgtPhQu00P+VvsGkt19nf 9ypv2o8fjuahYyoBcvlmA1W57OEWUdK1q0NLVCP1LJ+SknpB6FI1s72hKHtQDSCuzbRI oVvRezWDyn7f+DDXH1fzVQulJfNmKJ5wmbCizGkqBzFOhaoAHtsHSw3yfEYwpfx3raRE 2CkMUFP0jEAdJtzIYUnPF4ebNOUWL3EeS94MRWAVxJEEWjpQYEDEI+8qEvKECXOSYR+i 9nayIq09y/WtBErTs4nt1zvtrS3+j2MQieKlWzk04EyIxSZXfwKHX45xeJtJLnqdFk2O zgCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=vRpmpxidKILCj96rtzmNTmsIEvx5zySmPJJuQdqUM7A=; b=voKC7OB4uVMaGcpDxTFzd9HHz/Cr7ANt4cAeJsuf2F8SV3Nyq2vgKTMm7u8zJWVayq bfGtPisWk3b/r0K3ou3PqhrFVPIG5Tohqu7WCj/umxv43pkNS+n8J0ihfWiRcHjY1YIC /w48ca22MgFkOe3Zih4vPeJYX0wPQwAnJUmWQBVskzfuLQ2zv1UHIkppa9QUYo6ld/DH GDkEVQkL59MNdE6skvAe4cWQZjz8goF8dboQQmZYXRFe1XcHEPyJAlK+9/bkXKqeh8Bm m4RClROU6RDQvZgb8JHt7VrF41xKCZ3YOVNTRuPmjBpURit+YS3GpFtNdVQTeN/+OPs/ u6Jg== 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 j73si4226479pgc.142.2018.04.13.08.35.23; Fri, 13 Apr 2018 08:35:38 -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 S1751875AbeDMPeN convert rfc822-to-8bit (ORCPT + 99 others); Fri, 13 Apr 2018 11:34:13 -0400 Received: from mga04.intel.com ([192.55.52.120]:30323 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeDMPeK (ORCPT ); Fri, 13 Apr 2018 11:34:10 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Apr 2018 08:34:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,446,1517904000"; d="scan'208";a="191284303" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga004.jf.intel.com with ESMTP; 13 Apr 2018 08:34:10 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 13 Apr 2018 08:34:09 -0700 Received: from orsmsx115.amr.corp.intel.com ([169.254.4.182]) by ORSMSX158.amr.corp.intel.com ([169.254.10.54]) with mapi id 14.03.0319.002; Fri, 13 Apr 2018 08:34:09 -0700 From: "Keller, Jacob E" To: Bjorn Helgaas , Jakub Kicinski CC: Tal Gilboa , Tariq Toukan , Ariel Elior , Ganesh Goudar , "Kirsher, Jeffrey T" , "everest-linux-l2@cavium.com" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: RE: [PATCH v5 05/14] PCI: Add pcie_print_link_status() to log link speed and whether it's limited Thread-Topic: [PATCH v5 05/14] PCI: Add pcie_print_link_status() to log link speed and whether it's limited Thread-Index: AQHTyGrUSS9MhIAeskOrU+NRjtQ9xqP+pXeAgACgTYD//6MBcA== Date: Fri, 13 Apr 2018 15:34:08 +0000 Message-ID: <02874ECE860811409154E81DA85FBB5882D7BF4B@ORSMSX115.amr.corp.intel.com> References: <152244269202.135666.3064353823697623332.stgit@bhelgaas-glaptop.roam.corp.google.com> <152244391852.135666.14903825998610307052.stgit@bhelgaas-glaptop.roam.corp.google.com> <20180412213249.06661048@cakuba.netronome.com> <20180413140633.GD46420@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20180413140633.GD46420@bhelgaas-glaptop.roam.corp.google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGU5YTY4OGQtMGQ1Ni00MTFjLWI2YWUtOWFjMDBjNmZjMjYwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImgyZlNQc1RBWCszb1pqVGdVek45cDlQSnNIYm9FUzRVYWVcL1kyZHhNVVEwPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Bjorn Helgaas [mailto:helgaas@kernel.org] > Sent: Friday, April 13, 2018 7:07 AM > To: Jakub Kicinski > Cc: Tal Gilboa ; Tariq Toukan ; > Keller, Jacob E ; Ariel Elior ; > Ganesh Goudar ; Kirsher, Jeffrey T > ; everest-linux-l2@cavium.com; intel-wired- > lan@lists.osuosl.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-pci@vger.kernel.org > Subject: Re: [PATCH v5 05/14] PCI: Add pcie_print_link_status() to log link speed > and whether it's limited > > On Thu, Apr 12, 2018 at 09:32:49PM -0700, Jakub Kicinski wrote: > > On Fri, 30 Mar 2018 16:05:18 -0500, Bjorn Helgaas wrote: > > > + if (bw_avail >= bw_cap) > > > + pci_info(dev, "%d Mb/s available bandwidth (%s x%d link)\n", > > > + bw_cap, PCIE_SPEED2STR(speed_cap), width_cap); > > > + else > > > + pci_info(dev, "%d Mb/s available bandwidth, limited by %s x%d > link at %s (capable of %d Mb/s with %s x%d link)\n", > > > + bw_avail, PCIE_SPEED2STR(speed), width, > > > + limiting_dev ? pci_name(limiting_dev) : "", > > > + bw_cap, PCIE_SPEED2STR(speed_cap), width_cap); > > > > I was just looking at using this new function to print PCIe BW for a > > NIC, but I'm slightly worried that there is nothing in the message that > > says PCIe... For a NIC some people may interpret the bandwidth as NIC > > bandwidth: > > > > [ 39.839989] nfp 0000:04:00.0: Netronome Flow Processor NFP4000/NFP6000 > PCIe Card Probe > > [ 39.848943] nfp 0000:04:00.0: 63.008 Gb/s available bandwidth (8 GT/s x8 link) > > [ 39.857146] nfp 0000:04:00.0: RESERVED BARs: 0.0: General/MSI-X SRAM, 0.1: > PCIe XPB/MSI-X PBA, 0.4: Explicit0, 0.5: Explicit1, fre4 > > > > It's not a 63Gbps NIC... I'm sorry if this was discussed before and I > > didn't find it. Would it make sense to add the "PCIe: " prefix to the > > message like bnx2x used to do? Like: > > > > nfp 0000:04:00.0: PCIe: 63.008 Gb/s available bandwidth (8 GT/s x8 link) > > I agree, that does look potentially confusing. How about this: > > nfp 0000:04:00.0: 63.008 Gb/s available PCIe bandwidth (8 GT/s x8 link) > > I did have to look twice at this before I remembered that we're > printing Gb/s (not GB/s). Most of the references I found on the web > use GB/s when talking about total PCIe bandwidth. > > But either way I think it's definitely worth mentioning PCIe > explicitly. I also agree printing PCIe explicitly is good. Thanks, Jake