From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: Re: [PATCH net-next 1/3] devlink: Add fw_version_check generic parameter Date: Tue, 6 Nov 2018 22:37:51 +0200 Message-ID: <20181106203751.GA30851@splinter.mtl.com> References: <20181106200314.29918-1-idosch@mellanox.com> <20181106200314.29918-2-idosch@mellanox.com> <20181106121913.036b8c4d@cakuba.netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ido Schimmel , "netdev@vger.kernel.org" , "davem@davemloft.net" , Jiri Pirko , Shalom Toledo , Moshe Shemesh , "dsahern@gmail.com" , "andrew@lunn.ch" , "f.fainelli@gmail.com" , mlxsw To: Jakub Kicinski Return-path: Received: from out5-smtp.messagingengine.com ([66.111.4.29]:51955 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbeKGGE6 (ORCPT ); Wed, 7 Nov 2018 01:04:58 -0500 Content-Disposition: inline In-Reply-To: <20181106121913.036b8c4d@cakuba.netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Nov 06, 2018 at 12:19:13PM -0800, Jakub Kicinski wrote: > On Tue, 6 Nov 2018 20:05:00 +0000, Ido Schimmel wrote: > > From: Shalom Toledo > > > > Many drivers checking the device's firmware version during the > > initialization flow and flashing a compatible version if the current > > version is not. > > > > fw_version_check gives the ability to skip this check which allows to run > > the device with a different firmware version than required by the driver > > for testing and/or debugging purposes. > > > > Signed-off-by: Shalom Toledo > > Reviewed-by: Jiri Pirko > > Signed-off-by: Ido Schimmel > > The documentation is missing, so it's hard to comment on the definition > of the parameter... I assume you mean Documentation/networking/devlink-params.txt ? > We have a FW loading policy for NFP, too, so it'd be good to see if we > can find a common ground. If the parameter is set, then device runs with whatever firmware version was last flashed (via ethtool, for example). Otherwise, the driver will flash a version according to its policy. In mlxsw, it is a specific version. Will that work for you?