From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23ACAC433F5 for ; Mon, 29 Nov 2021 23:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232993AbhK2Xog (ORCPT ); Mon, 29 Nov 2021 18:44:36 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:58046 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232984AbhK2Xof (ORCPT ); Mon, 29 Nov 2021 18:44:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=UgYW7XDCDe7k4NBuknkD2Hj68nJdXEvFcuMNI53KVhA=; b=5z+zSE7SB5838CktSaX+Mg1hec aXtJD/tTaILRaZXIoKvqqaJ1qx8jvoT98VcgWp6DG9FvOST7OQXVejH/mqYT7GQ7Tua4I7KCF3BBz xLW2slIDMs3Kv7euCQqkNfwqJp6t+Lcb+ekoQMSiop2pIqDC9UlHQTdrzTCqiji5yhJc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mrqGm-00EygK-2m; Tue, 30 Nov 2021 00:41:12 +0100 Date: Tue, 30 Nov 2021 00:41:12 +0100 From: Andrew Lunn To: Ido Schimmel Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, mkubecek@suse.cz, pali@kernel.org, jacob.e.keller@intel.com, vadimp@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: Re: [RFC PATCH net-next 3/4] ethtool: Add ability to flash transceiver modules' firmware Message-ID: References: <20211127174530.3600237-1-idosch@idosch.org> <20211127174530.3600237-4-idosch@idosch.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211127174530.3600237-4-idosch@idosch.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sat, Nov 27, 2021 at 07:45:29PM +0200, Ido Schimmel wrote: > From: Ido Schimmel > > CMIS complaint modules such as QSFP-DD might be running a firmware that > can be updated in a vendor-neutral way by exchanging messages between > the host and the module as described in section 7.3.1 of revision 5.0 of > the CMIS standard. > > Add a pair of new ethtool messages that allow: > > * User space to trigger firmware update of transceiver modules > > * The kernel to notify user space about the progress of the process > > The user interface is designed to be asynchronous in order to avoid RTNL > being held for too long and to allow several modules to be updated > simultaneously. The interface is designed with CMIS complaint modules in > mind, but kept generic enough to accommodate future use cases, if these > arise. > > Example from the succeeding netdevsim implementation: > > Trigger the firmware update process: > > # ethtool --flash-module-firmware eth0 file test.img Hi Ido Does the design allow control over which partition gets upgraded? It seems like it should be possible to boot into the read only factory firmware image, making both A and B eligible for upgrade. Andrew