Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1727738imm; Sat, 15 Sep 2018 01:50:39 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb3fRRQ3ENArJn+DLUgUZ6TcIY4ztb7faytZnumm1KXZtE66h9aEenuHyyeh0XYvheqjlko X-Received: by 2002:a62:c699:: with SMTP id x25-v6mr16539139pfk.16.1537001439259; Sat, 15 Sep 2018 01:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537001439; cv=none; d=google.com; s=arc-20160816; b=xV9KyfxQegcCdWbaC13dsikGuzYKRIhUmkgO1lfIJgkFn3JyAj0XJ/G4HV3JxC2WJP dh9iqdnok5YHTpmxvLeSY3gBlUwg+GDlXQJfideP9EpP8PCNxe2PKy+u80/Gy8nsETab HwC32cl41rVyelHz2mbknyBZzmjod2Yes0lMhI8jD8OReOl+c52hUQUSch7HOwofksMf FjFvqjs6bU5Jg0nxSvqqC9lunFH23LggHf/+jL737LtN4DAg54jerLoDg56joPXQO+sg SdhUkhaxjsa3/6eyFb/iMC2D14+RaMDzQUpBsq8ZmR38fGT32V7hHzjY6S0TQJ6YN/mr O21Q== 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; bh=bq0lB1LxN+zuIrW0QTyOA4vuY0Fnq5Azy5HbYLTVGQ0=; b=rZPyE7bCOX9fh4y9RN+M5J7qFrA3aWbS8ygcrYcF7d9pbDnC3tNRP9SV++pKsoraku 279jiqKfAkwgKyr9pUEe2RjycA9cIu+9Hw2QUaY6PK98o6Yp5FxTsIJgH56ualEDk09U Au136un7dDFSdYpuQlKJ0y0cX/fk+czizPEwUYZilBK22/QHu/C68abOYldFbimc4r39 scfGwFeZbL0DsB/QQQhGR8Vif3t1m8ACIGUCs9v4IA0u38WpzZ0RBJQ/ihtOIc9YKMiT eXnLbrw1KSoxqwYqUbovwuTTbjXaGPoAWsh3DDRFDZX36M0kX9YTl732Vk5i0tp3+4NN Rsxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CbwoTc1x; 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 v8-v6si9376750pga.487.2018.09.15.01.50.23; Sat, 15 Sep 2018 01:50:39 -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=CbwoTc1x; 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 S1727171AbeIOOI1 (ORCPT + 99 others); Sat, 15 Sep 2018 10:08:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:47238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbeIOOI1 (ORCPT ); Sat, 15 Sep 2018 10:08:27 -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 3226B2083A; Sat, 15 Sep 2018 08:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537001414; bh=msys6+725WWbJQVQ+C2ujHae62x8k4yLaXbrSVZangE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CbwoTc1x+N5dTOJOWHye8pf7dgHd4Xw6dY219Rt1SlDUsor8slRtWk8yhb9caCixu dzgOfJhO+gX28hwr1sSkD4FQmXXKAVEq0GH5JHzjSNKcjxWnzX7x/30JqduC+TqniK tmLsd7hxkz/4eM4JCNwqbPm4bXP6dedtNgOPCGII= Date: Sat, 15 Sep 2018 11:50:09 +0300 From: Leon Romanovsky To: Qing Huang Cc: David Miller , andrew@lunn.ch, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, tariqt@mellanox.com Subject: Re: [PATCH] net/mlx4_core: print firmware version during driver loading Message-ID: <20180915085009.GD5257@mtr-leonro.mtl.com> References: <20180914181718.GD3811@lunn.ch> <20180914.141406.2211638662965115243.davem@davemloft.net> <1d4fe3c6-13aa-12a4-8da4-a83374b89fbf@oracle.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LiQwW4YX+w4axhAx" Content-Disposition: inline In-Reply-To: <1d4fe3c6-13aa-12a4-8da4-a83374b89fbf@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --LiQwW4YX+w4axhAx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 14, 2018 at 03:36:46PM -0700, Qing Huang wrote: > > > On 9/14/2018 2:14 PM, David Miller wrote: > > From: Qing Huang > > Date: Fri, 14 Sep 2018 11:33:40 -0700 > > > > > On 9/14/2018 11:17 AM, Andrew Lunn wrote: > > > > On Fri, Sep 14, 2018 at 10:15:48AM -0700, Qing Huang wrote: > > > > > The FW version is actually a very crucial piece of information and > > > > > only > > > > > printed once here > > > > > when the driver is loaded. People tend to get confused when switching > > > > > multiple FW files > > > > > back and forth without running separate utility tools, especially at > > > > > customer sites. > > > > > IMHO, this information is very useful and only takes up very little > > > > > log file > > > > > space. :-) > > > > Why not use ethtool -i ? > > > > > > > > $ sudo ethtool -i eth0 > > > > driver: r8169 > > > > version: 2.3LK-NAPI > > > > firmware-version: rtl8168g-2_0.0.1 02/06/13 > > > > > > > > Andrew > > > Sure. You can also use ibstat or ibv_devinfo tool if they are > > > installed. But it's not very > > > convenient in some cases. > > > > > > E.g. > > > A customer upgrades FW on HCAs and encounters issues. During triage, > > > it's much easier > > > to study customer uploaded log files when remotely testing different > > > FW files. > > Not a valid argument. You can print the ethtool output from initramfs > > if necessary for triage. > > > > I still stand by the fact that ethtool is the only fully reliable way > > to obtain this information, the kernel log is not. > > This is more for Infiniband mode which depends more on features and > functionalities For pure infiniband devices you have rdmatool, part of iproute2. [leonro@server-14-015 ~]$ rdma dev 1: mlx5_0: node_type ca fw 3.8.9999 node_guid 5254:00c0:fe12:3455 sys_image_guid 5254:00c0:fe12:3455 > provided in firmware and get much more frequent FW bug fixes than typical > Ethernet > devices. This is not meant to replace other ways of getting the information, > more like > an enhancement for checking log history. > > This can provide valuable information when tracing through system log > history to > discover what happened with a specific HCA drv ver and fw ver combination in > the past. > > Regards, > Qing --LiQwW4YX+w4axhAx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJbnMfBAAoJEORje4g2clins2MP/2ahQ8mb69Zi6lmm5NOnF6Jp pRNzlNSTPzRZ9Fp2MXZYMU1tGny0099pN0kkUalecGjUjyIL5W3VU1kTKyhZJo9B 7mi/e1uTXVkT3dEyqsPhXdaig0C7EWv+pQRz6he2oc3QBhc1uUri7jKofjLG7K+q o6/j7F2nZ0mIK4AzoQZJErFv4bZ7hXzcx48vNRg4jV6LLgKP//9C5KyNrjZ/GyUf YDp3DOQzhbu4EHxQqm7bb08XHKj24SJ0AAaGKIJEcXY1iTrZqmg3LYSOpS0aGLy0 RV7q6uuKbbm7RiHqF+htAAobgoGqYorAep9ePvl2lvAzwnJh39Fcv25Hbrqly5EG fXsCk4SvNROH8RwqLwOQ1j4is08omwVN0LeKGS3y0auIJkdjiTJh6VZMb2/+WKG+ BaL9mzQnl32Spl/uOQPepf4YSwWVHqpzATamZpm/FVsDp4g0dhkzJmTLvErhEfxu b27VRmImB3mnGRhnQ/csRIy4aYlYXr811xbYs+QIFBMnU7Gj8587fAhA7Tpbe03u 7AusoUmICk5Z+CMaVWjLXsDY3BlwxRuSIzKrSWOy3eYEsNvgcn2750IoSrFF8ytD //P2h9BKzUMMwnwlxV6FYne4mTYLLhiD3vAk+eI/Xdsv6TLYr67/e8CL24na83Z+ 1nQgA1BF0TXoZBpShiR0 =dvjv -----END PGP SIGNATURE----- --LiQwW4YX+w4axhAx--