Received: by 10.192.165.148 with SMTP id m20csp2247963imm; Thu, 3 May 2018 13:00:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEd8GeuqNlnFaCdG8At0TolDEr6VIVDCRSN/reiD+xXUsm7ZlgG6/xIDhaicJCEHsqLUIk X-Received: by 10.167.128.149 with SMTP id v21mr2416115pff.198.1525377648758; Thu, 03 May 2018 13:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525377648; cv=none; d=google.com; s=arc-20160816; b=S0fIPFJmLhLk9WwLsgwNddEavBni2LGMXTjBc/xXuG11ks+/9U5a2M/1Zp3BHTwqLL MI+/F5FgAANKyCPycc2C1AUKJeZW/MW5sP04gr8fmHGZZ8H0MQ5vjp4tI48/yNmFvNiH 9gojdjnv3lMYcfK94ECY02zr45opc65j3reMt4ta87TRnFA/fDFs92G0e2N0lVjPK2YP oh+AWBAR86xVYY8eBzpfYrJGcRqmLlJ+mNbVnUMaK3HIRgz6mGPsubRSd+FE7na1ZTbf IPxgdpGIqQeR1e7DLhbnOAItRNaeBV0bet893VqICyiTzGnkP8iyxFUyFCcGzmqLksfd 1lZg== 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 :user-agent:message-id:date:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=yCtdwhFpLjfoickfzJgVtxpdpztjyD40lHJd/Nn05Co=; b=lIgwGA+QkjBmrwOjqwAmlXBnD74QbvqGzIgG48pMvSnVcDKwifqCZPAmf/O1eKRMPS M4rUUjPGmbJMIiQsvpzeza2lZyelQtoivDGEbMud5mZArPwAPLsOg2AOxwerwb2uSu8I BrjROemG02cEJQ+iUN0hZlCm29yNtNepw7AM1l6ThBuSNrTINorQoOCQfyzJhxZCpx5p kWMPD37/g8HolOhfGPSuNE4psAbIZgrE7c5PtWyIgeZ0zg4JZ6xj100o6dYNaoiQTDm6 xKZNRE1juSIDV0NXOYM/oyCHsgTjOtY1qXabFQHhNxmGsDhQoEN/M7bcI+e3r0Np4VVJ caXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NhkidCwt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11-v6si1007348pgt.680.2018.05.03.13.00.24; Thu, 03 May 2018 13:00:47 -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=@kernel.org header.s=default header.b=NhkidCwt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751176AbeECUAL (ORCPT + 99 others); Thu, 3 May 2018 16:00:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:33218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbeECUAK (ORCPT ); Thu, 3 May 2018 16:00:10 -0400 Received: from localhost (unknown [69.71.5.252]) (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 D73322176D; Thu, 3 May 2018 20:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525377610; bh=CpWCio5lcVsq8GHp8SdMz2hvqi/AegQnMsxchyg3KQc=; h=Subject:From:To:Cc:Date:From; b=NhkidCwt2YTQTWLAstbejUf+DKK1iVSw7spcujED7Ops5zSDk+mZXhi2NlFMIC6w4 hJoeNoh5nPM9uoFkhqBAaMSDufQo39VoOyUkDcSwzVOHJ1FtKS1NPbELi9dDpouVwo 8fUAxWFTf8WbjljKUIPaXocS4wEs4PuaJLONFlSY= Subject: [PATCH v6 0/5] PCI: Improve PCIe link status reporting From: Bjorn Helgaas To: Jeff Kirsher , Ganesh Goudar , Michael Chan , Ariel Elior Cc: linux-pci@vger.kernel.org, everest-linux-l2@cavium.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tal Gilboa , Tariq Toukan , Jacob Keller , Jakub Kicinski Date: Thu, 03 May 2018 15:00:07 -0500 Message-ID: <152537719056.62474.2571390812509425478.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is based on Tal's recent work to unify the approach for reporting PCIe link speed/width and whether the device is being limited by a slower upstream link. The new pcie_print_link_status() interface appeared in v4.17-rc1; see 9e506a7b5147 ("PCI: Add pcie_print_link_status() to log link speed and whether it's limited"). That's a good way to replace use of pcie_get_minimum_link(), which gives misleading results when a path contains both a fast, narrow link and a slow, wide link: it reports the equivalent of a slow, narrow link. This series removes the remaining uses of pcie_get_minimum_link() and then removes the interface itself. I'd like to merge them all through the PCI tree to make the removal easy. This does change the dmesg reporting of link speeds, and in the ixgbe case, it changes the reporting from KERN_WARN level to KERN_INFO. If that's an issue, let's talk about it. I'm hoping the reduce code size, improved functionality, and consistency across drivers is enough to make this worthwhile. --- Bjorn Helgaas (5): bnx2x: Report PCIe link properties with pcie_print_link_status() bnxt_en: Report PCIe link properties with pcie_print_link_status() cxgb4: Report PCIe link properties with pcie_print_link_status() ixgbe: Report PCIe link properties with pcie_print_link_status() PCI: Remove unused pcie_get_minimum_link() drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 23 ++----- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 19 ------ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 75 ---------------------- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 47 -------------- drivers/pci/pci.c | 43 ------------- include/linux/pci.h | 2 - 6 files changed, 9 insertions(+), 200 deletions(-)