Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1354063imm; Wed, 23 May 2018 14:47:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpp51st7pLH1bFlyK4ZRaLfn0s0F4jJ4BXErfkWa7QUSomc7YIykWTQ2ThJNlIXMlrosNHh X-Received: by 2002:a17:902:b584:: with SMTP id a4-v6mr497006pls.238.1527112038771; Wed, 23 May 2018 14:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527112038; cv=none; d=google.com; s=arc-20160816; b=ZsBxJrx0jJ72MIENKgznifB/Tyh3VadTFPFD5bSKnwpo4S82XX4/eC7PplUUtC1GjZ bFVntQaXVrb1pNmMy0ikATKaT29tpXPjl4LbZb4LDOazDcgMJuOsmjndsp8bh/jVSGfA eevYf4MC87SILwAtbujQMnuiIThynmWTunMRcCVNc98U8wzPwf/crI2j47Q+F9ZCUl2U 6WcHyl2MshTWRbE59vuthIMgPzhBy5xcbLMKKYhFEQAlOrY+27X78jHZjXsZY+JyIGiL HWT/oRClBPC6gKR0DTsGQKGe1CXKBXYNbgYFZGhmFA8PSYV4+Hbzx89zSoFn1W3oXaTW Hv3g== 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=wKtxP/KQ2XkqqLNaFlHJK/u22gIpBe+jzZKr8guw9f4=; b=ZJXk3o/5fXEpbo4weWq46cEc00LNnVXcDHospeaAg89CJojA4USQWOnwhcS9PKLVrZ TX2opeiFe6RJNaVdehIEEHBhNB77oM27E4hpb5c8c/R/U/KEcyPtc7bOc8g2xxaWMWUl ADKTzGWChLFnatR16I6l5FlrIWYGoDDvRfJfEc41dK5HxQ46iJqy6GKVLGI69M2vM6eu ih7oOoAHyOio43pl0b3R9ElqZsV7XiyGHQCcYqUkMWq75Oxa9JIsmKXGMtkJVXvwdJzW aQn8FNEixzNK84o7NT1TetWfATAJAwty8wdnABHKY2lnsv08+gh1DgDn8ToDspT0w1xk l1rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DdIei9i9; 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 w12-v6si19461296pfd.113.2018.05.23.14.47.03; Wed, 23 May 2018 14:47:18 -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=DdIei9i9; 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 S934050AbeEWVqy (ORCPT + 99 others); Wed, 23 May 2018 17:46:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933936AbeEWVqw (ORCPT ); Wed, 23 May 2018 17:46:52 -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 3A22820870; Wed, 23 May 2018 21:46:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527112012; bh=wY3QpboDtA2Et44Vwig6Q41bdqjjqKwJD7mJoJFLdkY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DdIei9i9jl2pTiDrMi5v4l2uV7E7WXmjsNNAgce4sSnbZRN0o0mpJZcwUtcjyRiIZ et5S9rz6ywhZPWpFTVgkC7RfirxVl2EIKfREjitFzbs0d/aZzc4ZFXS8lo+5cLY17N HBBz8rAuR7TRM2dNgy7PiX0+0ZWG/O624nmHb8A8= Date: Wed, 23 May 2018 16:46:51 -0500 From: Bjorn Helgaas To: Jeff Kirsher , Ganesh Goudar , Michael Chan , Ariel Elior , "David S. Miller" 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: <20180523214651.GE150632@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 [+to Davem] 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() > > > 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(-) I applied all of these on pci/enumeration for v4.18. If you'd rather take them, Dave, let me know and I'll drop them. I solicited more acks, but only heard from Jeff.