Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1087229imm; Wed, 8 Aug 2018 10:30:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwCtjBAWREfcB45uWX50qkbRzNXoCe4Y3FcMaXAPzGRMOsdtBc37mgdxo0PwBMyEUq3NpGb X-Received: by 2002:a17:902:bb85:: with SMTP id m5-v6mr3369727pls.46.1533749402124; Wed, 08 Aug 2018 10:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533749402; cv=none; d=google.com; s=arc-20160816; b=KggQzP5bTT+ORO7YsI9eeU2A6ZZyiSKTIsEUnw9MYhQ2uTvY8HaS/3ZJVi3G0N1WyC PlFr0PwbgNg3r97ZHRD4guv0i2swCkR4EW2oOQfr4T6Bh+u2f6+B4/Vy+722DrsiTrk6 u76f5lEAPoH5ixW11KvbUq9/Tmnw+8PFw/+SPh3MN7Nh4lhmfvG66nCaW7/0r8EfHdxI DForVOMAnZejThxGLf4vQaS/VKEokYgLaeqqCQPeC/6v4KpdiLB7YCHBVtbCtlcyGmSj DX/xcPmazDYmuATv9l5qeMo9xBdwZUWVMD9y2Eh7cV8TMnzmQ7wBXASrENqqITwbFqQc wuyw== 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=MDFOr2WlCS/SbCTvSudZ8drPpKWqu3ujpHiYd4CJB3o=; b=SOP9sn8pyVCYCR+TV5RmqyODNNvYIVYTbWpFK6s2Opq09fJQxYCYRaCZhIWxCfVLyn BqFkbhQ72RZzuXBa1ThQExyGQwRCZftEh8tkutTsTfBM/6cBK0buGrQF/LnJV1BLr93h mePS+LPyC34F4dtW3NFAwSQ2rrru38rnMEDz4bPY5pVzdPhf0rJ4tJGaLUrA+dbxAkgf D1Foqc0rScEyJ4qXJ3vj6GatMm3Qura3FvgmF+6NbgK8alYm29utxvtZL/XKJGE4xPKr oeOYkBqBJC2l0lTJOdkng5yuEsxneygq2nbw61sWnBRfGwRZD8T2VkZjt/AO1fnArul0 A+GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HqbOclLc; 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 d2-v6si3543065plh.341.2018.08.08.10.29.46; Wed, 08 Aug 2018 10:30:02 -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=HqbOclLc; 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 S1728471AbeHHTsR (ORCPT + 99 others); Wed, 8 Aug 2018 15:48:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:35028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbeHHTsR (ORCPT ); Wed, 8 Aug 2018 15:48:17 -0400 Received: from localhost (unknown [213.57.183.250]) (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 AEE9121758; Wed, 8 Aug 2018 17:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533749257; bh=MDFOr2WlCS/SbCTvSudZ8drPpKWqu3ujpHiYd4CJB3o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HqbOclLc+GoJSOeNbqZ8R3AB5HfiChMQFMP2Nz9UyF+MbYFn9h45z60ziaVBRWtVD gyIQVlxhVQRxI6DGK/NeV3zSBt/tg3EXSvvu7MIK6YFHNkdGgQfrHOWv7VFV3bHaDh Xo/NRTsZW0HpjYrAqhyWimUpeNHcPYFtdMNJqrcg= Date: Wed, 8 Aug 2018 20:27:36 +0300 From: Leon Romanovsky To: "Alex G." Cc: Tal Gilboa , linux-pci@vger.kernel.org, bhelgaas@google.com, jakub.kicinski@netronome.com, keith.busch@intel.com, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, Ariel Elior , everest-linux-l2@cavium.com, "David S. Miller" , Michael Chan , Ganesh Goudar , Jeff Kirsher , Tariq Toukan , Saeed Mahameed , Dirk van der Merwe , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, oss-drivers@netronome.com Subject: Re: [PATCH v6 8/9] net/mlx5: Do not call pcie_print_link_status() Message-ID: <20180808172736.GB13378@mtr-leonro.mtl.com> References: <20180806232600.25694-1-mr.nuke.me@gmail.com> <20180806232600.25694-8-mr.nuke.me@gmail.com> <20180808060848.GQ13378@mtr-leonro.mtl.com> <05056a70-ee78-ea3c-0b9b-6d64a8663b11@mellanox.com> <20180808154142.GZ13378@mtr-leonro.mtl.com> <5578cd9a-e4f0-85ab-4a86-bfa23eec136c@mellanox.com> <79264a38-e3e4-d270-95df-a09047f7a15e@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mXDO3udm/xYWQeMQ" Content-Disposition: inline In-Reply-To: <79264a38-e3e4-d270-95df-a09047f7a15e@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mXDO3udm/xYWQeMQ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 08, 2018 at 11:33:51AM -0500, Alex G. wrote: > > > On 08/08/2018 10:56 AM, Tal Gilboa wrote: > > On 8/8/2018 6:41 PM, Leon Romanovsky wrote: > > > On Wed, Aug 08, 2018 at 05:23:12PM +0300, Tal Gilboa wrote: > > > > On 8/8/2018 9:08 AM, Leon Romanovsky wrote: > > > > > On Mon, Aug 06, 2018 at 06:25:42PM -0500, Alexandru Gagniuc wrote: > > > > > > This is now done by the PCI core to warn of sub-optimal bandwid= th. > > > > > > > > > > > > Signed-off-by: Alexandru Gagniuc > > > > > > --- > > > > > > =A0=A0 drivers/net/ethernet/mellanox/mlx5/core/main.c | 4 ---- > > > > > > =A0=A0 1 file changed, 4 deletions(-) > > > > > > > > > > > > > > > > Thanks, > > > > > Reviewed-by: Leon Romanovsky > > > > > > > > > > > > > Alex, > > > > I loaded mlx5 driver with and without these series. The report > > > > in dmesg is > > > > now missing. From what I understood, the status should be > > > > reported at least > > > > once, even if everything is in order. > > > > > > It is not what this series is doing and it removes prints completely = if > > > fabric can deliver more than card is capable. > > > > > > > We need this functionality to stay. > > > > > > I'm not sure that you need this information in driver's dmesg output, > > > but most probably something globally visible and accessible per-pci > > > device. > > > > Currently we have users that look for it. If we remove the dmesg print > > we need this to be reported elsewhere. Adding it to sysfs for example > > should be a valid solution for our case. > > I think a stop-gap measure is to leave the pcie_print_link_status() call = in > drivers that really need it for whatever reason. Implementing a reliable > reporting through sysfs might take some tinkering, and I don't think it's= a > sufficient reason to block the heart of this series -- being able to dete= ct > bottlenecks and link downtraining. IMHO, you did right change and it is better to replace this print to some more generic solution now while you are doing it and don't leave leftovers. Thanks > > Alex > > > > > > > > > > > > net-next (dmesg output for 07:00.0): > > > > [270498.625351] mlx5_core 0000:07:00.0: firmware version: 14.22.4020 > > > > [270498.632130] mlx5_core 0000:07:00.0: 63.008 Gb/s available > > > > PCIe bandwidth > > > > (8 GT/s x8 link) > > > > [270499.169533] (0000:07:00.0): E-Switch: Total vports 9, per vport= : max > > > > uc(1024) max mc(16384) > > > > [270499.182358] mlx5_core 0000:07:00.0: Port module event: > > > > module 0, Cable > > > > plugged > > > > > > > > net-next + patches (dmesg output for 07:00.0): > > > > [=A0 331.608472] mlx5_core 0000:07:00.0: firmware version: 14.22.40= 20 > > > > [=A0 332.564938] (0000:07:00.0): E-Switch: Total vports 9, per vpor= t: max > > > > uc(1024) max mc(16384) > > > > [=A0 332.616271] mlx5_core 0000:07:00.0: Port module event: module > > > > 0, Cable > > > > plugged > > > > > > > > --mXDO3udm/xYWQeMQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJbaygIAAoJEORje4g2clinD3oP/257jSKTCkI3FUiqmT5G1WqS +IMg0/i8ShffFMfKq/MEwYKNHkYHzD2SRRM5sI2OKsA4BaivqsxkASbZSA6jNt6E 57Or3vwsSZUZvwrkEjyqUduvp6CbZIjNQ4pLJhCOXwMFHyKL/zSKbwwqpueZl6Fa KTzzDzidv8gDVjZnd/HohtG7xC9PaCkyQncSOrYq0jPTVsxBUytTPy5t34THMoup OP1tct5Ei0R/WegvY+KpaCLSsP2SufytdovkYz3mrrrT1acPBIn5MvxR8VFKT+43 SSOa5cKs5Q39N0csiL8UvMf7EgF1fNbpL2/oQtU+xAWqEU28w7jqE/FiZcGGzDdT Eavb5uy6jfdOeWR3SVGsNIT3F3d7exLCojniCTDdts4TShd2UUAl+3DSZLO8cNlL /arWoHrK9DbswSjmXa3R7tXDlVl5hs/mnVU6SPzNC6ApGqMV8jz2w5GVQfyXpQOl 72brLxicafsMzPjh0vj+6/QjzuTPIFfc71vcSKYpcRitKIltJi1V8fD0RzoPq6lt oW2LTBpMKuZnjR06xKtYgoc4QN97jW17n750K+J8jvulRntaH+eZjWsoW60yA/0m SsD0352SaRL/5el0jL3917h76T5TH2iiIatklAwco6EgNtciHiIprjZ2ZGvRz24g KFBNnSnlL79Snqt0uHMU =Eeoq -----END PGP SIGNATURE----- --mXDO3udm/xYWQeMQ--