Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1257139imm; Fri, 14 Sep 2018 14:10:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYsVFbbNtyo4/O0IelMX8WXjRTXlUxheCU1qePoYTCgoqhhjmnmmrJWuI0xWvjFSZYvr+gL X-Received: by 2002:a62:d113:: with SMTP id z19-v6mr14174905pfg.98.1536959401285; Fri, 14 Sep 2018 14:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536959401; cv=none; d=google.com; s=arc-20160816; b=uXb1Oou6BBKJExoZfyXd0qraZyQVwPLXhfQU1Bz/9MDUjRZPVwAyNl3h5SCe9k4/tb Z/frFbw1ba8R+GBrsYdbPAz0f/3MgPy0qZNu0JrJ71uq/EMw8qj4+nrIbpZyx4I9xXAF iQ95r82ZUmBmo/l9BFSEsVPnnRUSZBiQfSJrgKHy1LtuJBbB7VTl6BeeA+FoHkM74ybd 5jzOXJKJROGAg9A/HkISREQz3f5zk7ZCibGClGb26LYsU8COPFzJ5fjlxq7yTb/Wg6eQ krPAgzW1KcIQVWIKTrWk3daXCbbGf+CaxU4radjN7RcGfbVaee7bb7CsAp5GJdYqkxfq gJ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=tkEiPHkew7/L/nJDdYQm+ngZ4Lgl7uDfFAMbq4r7K0M=; b=hAl/nbckwmYVo0N7UjsaXCHTR8ipg+hbzXjRGnp1gdtlmKSVCRsnR4aVLR8NWL2GKr pHmNlsQ3A42plWHz+KzyRGeukW17PvuUwvoMFKOFZcXcLcUu2Ta/IEDUc0rdVCJuMY+C Bd7KJ9FMm7ZNgTumm+v2T8JKtPsNqGmQVtchZMHMVYsLviTYDp1h7yhjg8iEDGu9JF/o q9rRiKnNA7kY+0BUp2QteacHdWAUjwjTddicOf/b6sBtiV4x4EFAKJcwXzOXVm/iwD/J zNJyCDIWuEwOFSU+l0C1qrgSohWEmrcbgRvRx9nQF1qYodiB9PRV/Zws8IPiNFMD2yKC 7rzA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8-v6si7570574pfm.141.2018.09.14.14.09.46; Fri, 14 Sep 2018 14:10:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728289AbeIOCZV (ORCPT + 99 others); Fri, 14 Sep 2018 22:25:21 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:41098 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728050AbeIOCZV (ORCPT ); Fri, 14 Sep 2018 22:25:21 -0400 Received: from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net [74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 92AEF142A2067; Fri, 14 Sep 2018 14:09:09 -0700 (PDT) Date: Fri, 14 Sep 2018 14:09:06 -0700 (PDT) Message-Id: <20180914.140906.724918309737328254.davem@davemloft.net> To: qing.huang@oracle.com Cc: leon@kernel.org, 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 From: David Miller In-Reply-To: References: <20180914002514.27571-1-qing.huang@oracle.com> <20180914044314.GC5257@mtr-leonro.mtl.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 14 Sep 2018 14:09:09 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qing Huang Date: Fri, 14 Sep 2018 10:15:48 -0700 > IMHO, this information is very useful and only takes up very little > log file space. :-) If it's critical then the log is the wrong place for it as the log is lossy. The proper place to obtain this information is via the fw_version field of the ethtool_drvinfo struct. This can be obtained at any time and is reliable. And if it isn't reliable or correct, we must fix that.