Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp975656imm; Wed, 8 Aug 2018 08:43:31 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw5bW3ZhPrK6U+Dh2teyOdr12WTwc3aX6z4rz9++sg46ZO7zXgRlIp/m+vgMMpFDxpDx05v X-Received: by 2002:a17:902:76c7:: with SMTP id j7-v6mr3090634plt.275.1533743011233; Wed, 08 Aug 2018 08:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533743011; cv=none; d=google.com; s=arc-20160816; b=YErN0sQmtosYLn3IRifoHsXi6Joz4Ftg84nNy1TeQYYsInw0Ww+nEBEO6gY0LGFS5o 8QhPagMqPtR7HXrsKkBIXuEpd1AvJHBZzTfAigaLDok5jbT3XNL9qBbDgEESfaA05cOR ZWzB1msTSeK2PH6q3F7J6b3sr8HzGpwaXipUqvm2i91NViqcFD1RPUReak1VAe6Ty5/p BttC9ZD707bO/x4dh6qb9YPucn/lWOcWHHrqixZZGrruRjnpol7LoZHJ3UoVelwpH6V7 IoKTxyr3ja4NkB7o4fyAPiSsviuhhoEMssUHwPVe40DjAlvYHmNTODhxvapgW60Vjg5z Ds1A== 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=UvEQ6CBiPFJIMx8IV5JajWFQJZMlxgcMT/Ell0Gzp5E=; b=xQGCqWEo8b5WIW3h9I4YL6AjJMkeO3iy1+CTTHd8PTKfl08pEA8YrpK7dAZEgq2dEW m0+VJZB3EaREjJoC5WwlcVFBbtJRYdRYa4ZN34IZYp59XUfSlhVXlbDCuf48u0c0LQ9M QkFGouU+2w6y2UoA/LzWVd0UVk9S6PTWUorc6cdnkSzMseY4ZyRBURGLd5KwkTCo8D4f 9gl8W0GYVu4LWFZINsR3uL9KRxwlkE750Ivn9cxT4JoCsYx4qjcEBglsZiMt2IE0tEDB WebusyHz9bMzYViCww5hhYSvNDlYeB/ADvUCPBlzLF7X1QTMCNgJq3BUr3+/S8YwetEr H4xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FhDrfNx9; 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 c6-v6si4029621pgn.143.2018.08.08.08.43.16; Wed, 08 Aug 2018 08:43:31 -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=FhDrfNx9; 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 S1727825AbeHHSB6 (ORCPT + 99 others); Wed, 8 Aug 2018 14:01:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:33428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbeHHSB5 (ORCPT ); Wed, 8 Aug 2018 14:01:57 -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 5981B21765; Wed, 8 Aug 2018 15:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533742904; bh=xc6jUcLjvOd5tfG/pkYktVc8BPgWMWadei/XnkXR1T8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FhDrfNx93d0ystHQ9RE7W5ymffPwnmnnsJ6gw7xaTXPklCSKfLpcbeOnjhqJX2jE0 xjbgQM0EFOqmcWOmxMTKkBHlwTWq9h6bCDlR3COJA+/OmYiPHwi9CqW4mkxaZriQT5 Lgggt8LUiWilXOJ9hH3MPSjGi4NdY4ZPwR2k16qs= Date: Wed, 8 Aug 2018 18:41:42 +0300 From: Leon Romanovsky To: Tal Gilboa Cc: Alexandru Gagniuc , 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: <20180808154142.GZ13378@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cfJ13FhsvNR/yOpm" Content-Disposition: inline In-Reply-To: <05056a70-ee78-ea3c-0b9b-6d64a8663b11@mellanox.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 --cfJ13FhsvNR/yOpm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 bandwidth. > > > > > > Signed-off-by: Alexandru Gagniuc > > > --- > > > drivers/net/ethernet/mellanox/mlx5/core/main.c | 4 ---- > > > 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. > > 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): > [ 331.608472] mlx5_core 0000:07:00.0: firmware version: 14.22.4020 > [ 332.564938] (0000:07:00.0): E-Switch: Total vports 9, per vport: max > uc(1024) max mc(16384) > [ 332.616271] mlx5_core 0000:07:00.0: Port module event: module 0, Cable > plugged > > --cfJ13FhsvNR/yOpm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJbaw82AAoJEORje4g2clinSrcQAIG8XlaVMnqmX9ZIn10cfkoz lngbzsg4KBPfVjhswO/NwYTa6S9Q0E8rMqGZJ1oWW9lPkiNJHxf6eK82lRerJmER Le5Bx6uUWDXPUg5UV1cpSlC6VwOW3oBrlo0EnHJRYK7mmLNnQJ7yLAGleWTNySpk S6ZkX3nO4x1a2CjUIxg4d1Jl9m9iP8enQyPsBPTIdgYlH39xFh8NwaQ3fjytErEV kW/C1K2mKryiSs9ss+xLfS4c7v2BT552DrnwMsOpdVF6zUWt8a2yA0vrQP4G+b+s q1s1i1SCHVGiDXT62T8lAL3p/sTf1k8ERwJHhxNuVlPc+cuC1rUt8MJ8my+DACbk JqPhwo+HSKDGphsUTbrJ0Hc9f7PW9fv+nRDrciE/9Q/0tBj5zVR+kh+53EJzJcEW q1wXpbh26dYdeo93Ki48a9kmJJ/mjlRn6ma1TfAgaab6Ct//rIBhpkDt1eOUn773 xoiXVNdwRWzQTFgeeWiA8pebyUU+e08gZSvhHyQjT0d1WWpZQMmVpUJ2MKCdaHF9 8kNsjww4h/F9PozSYlvQwduxp+3F+D/K656TC0rtAUvCRKsfynZWfRIb3KlBIWnE 7uTCDmvmLLf6W+8tVWY0u9obmtVHkcyvkUEPElyhfVazdw1dLue2UigdNN2SN7Y+ YY+vEw9UQ/ez/RY9zQD6 =/LzE -----END PGP SIGNATURE----- --cfJ13FhsvNR/yOpm--