Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp62740imm; Thu, 10 May 2018 15:32:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrETSbRlP28zeL57wRKJ3WKpOF6ImQffykpq9bhdVHsjUrEUt+26kXr+lBfwGSk8TlTdFj X-Received: by 2002:a17:902:bb83:: with SMTP id m3-v6mr3020764pls.236.1525991527181; Thu, 10 May 2018 15:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525991527; cv=none; d=google.com; s=arc-20160816; b=zrYMi6KTakAW+jXhTiDQ68oOveehGDxxM5/H469F267zSxjcsAwDOjrm9n/J0X8hpL RuKwRTS7KRyXBmrKNOTn7qT/9Tbqcr08ujiQi0G8HjLFc04SCd9+jS9n2pmKYFUDYFpF BzJAMs9M++s1tP4qYA7gE32/RbJsFASgV1bwJE6FPY+7Bgc7g7UQH2sbZLlMh2BFUOQm 7IvgkBkviPdSaM+LWlq3UnkenXpERdpk4ZK+kczwvfRRmKGQSoSgf0m7Z4vP0CrRrkn+ QvncoBXW5LsuLDscd08X0jSeNnVVh1H1V+Pscn3P9Q8giqUf45eev4aOd/6Se9nc1Iy3 JzOw== 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:dkim-signature:arc-authentication-results; bh=ajhCvSXABdBxeRIpqH5EJqIhIKt2tqJn9bEpzrirxbY=; b=HRYMJwLPe4nI0bjuMgA/lflymETXtIBjUn5YUCowTyBMBjt46hyt7MLzIyODcSbNEq Hddzm4WrwWUaAkPLhED58c00u1bHcvLq5yew5+rayiVHeugMiuSgCmgTqu0gTaYOxShS 0OfFroBp/WzDk4MBHehZSyyvFA2Or/UQMi5jcO1pKrL4l3yu18HpmhTeovq+5TMdOHY8 bOUzKFyDCXjH/VP4Juahe6wSd7i0Mdw19Lh/BUqUBIj0y3i/Yvkxgk5Gl0BnOoyqEvmb WEYogwQKSwDLiP4NgoefDSBgW0qDyZQWhbUlKPpsmo5QTQAQOuGllc7sR0MsWDiQYZUX Y1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X1ydQQQn; 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 q17-v6si1714871pff.301.2018.05.10.15.31.52; Thu, 10 May 2018 15:32:07 -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=X1ydQQQn; 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 S1751357AbeEJW3d (ORCPT + 99 others); Thu, 10 May 2018 18:29:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:53776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbeEJW3b (ORCPT ); Thu, 10 May 2018 18:29:31 -0400 Received: from localhost (221.sub-174-234-128.myvzw.com [174.234.128.221]) (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 E689021739; Thu, 10 May 2018 22:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525991371; bh=JjH2/USSYwz07Za0/cHhc6XC6R6a/A6rByOXt2OZrK4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X1ydQQQnPz89USc3a6uqheO5BaOE/snBlk62DFAIFgeepYOLpMRIqqMPy9xkQQOLL FIbH667F6ReBUW4GZe4QNGW4p3201nHynsSSjeg4PmCku7+e8suIQ2IP83jl/eL1fy UO5F/olhTg3LdBcSu5/jdPUpzYicyJS1yRTUbbSw= Date: Thu, 10 May 2018 17:29:29 -0500 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 Subject: Re: [PATCH v6 0/5] PCI: Improve PCIe link status reporting Message-ID: <20180510222928.GC190385@bhelgaas-glaptop.roam.corp.google.com> References: <152537719056.62474.2571390812509425478.stgit@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152537719056.62474.2571390812509425478.stgit@bhelgaas-glaptop.roam.corp.google.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 Thu, May 03, 2018 at 03:00:07PM -0500, Bjorn Helgaas wrote: > 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() Jeff has acked the ixgbe patch. Any comments on the bnx2x, bnxt_en, or cxgb4 patches? > 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(-)