🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9609

Re: Netdev devlink A/B firmware bank selection feature

#9609
From: Jiri Pirko
Date: Mon, 02 Nov 2026 12:06
42 lines
11751 bytes
Fri, Oct 30, 2026 at 07:28:52PM +0100, limzhineng2@gmail.com wrote:
>Hi Jiri,
>
>I'm from the FBNIC team at Meta, working on firmware and drivers. I
>realized that devlink core currently lacks a feature for selecting
>which A/B bank to use to activate the firmware, i.e currently we just
>have "devlink dev reload pci/<bdf> action fw_activate" to activate a
>pending image, or reload a current image if none is pending.
>
>I'm thinking of adding a feature that allows for A/B bank selection,
>something like:
>
>devlink dev reload pci/<bdf> action fw_activate bank active
>devlink dev reload pci/<bdf> action fw_activate bank inactive
>
>This will be useful if say we just activated a problematic image, and
>want to immediately roll back to the previous good one.
>
>Before I submit a series, some questions:
>1. Has this feature been proposed before? Were there objections or
>discussions I should read?

I'm not aware of it.


>2. Is extending fw_activate the right interface, or is there an
>existing mechanism already for what I'm trying to achieve?

Looks like the right place.


>3. How should userspace discover bank-selection support, so explicit
>selection cannot silently fall back to ordinary activation on older
>kernels?

max_attr?


>
>Regards,
>Zinc Lim
Technical Details
Message-ID: <auh8l9JniT6EhK1v@FV6GYCPJ69>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354647-linux-kernel-netdev=dewy.ru
References: <CAOr6SmEW8ZLjMzqCWdQL3W0DKwZCVaRL+DbhrSEZu7SeZRiVpg@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354647-linux-kernel-netdev=dewy.ru
From: jiri@resnulli.us (Jiri Pirko)
Newsgroups: linux.kernel.netdev
Subject: Re: Netdev devlink A/B firmware bank selection feature
Date: Mon, 2 Nov 2026 13:06:54 +0100
Organization: Usenet Network
Message-ID: <auh8l9JniT6EhK1v@FV6GYCPJ69>
References: <CAOr6SmEW8ZLjMzqCWdQL3W0DKwZCVaRL+DbhrSEZu7SeZRiVpg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2916003"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CqWBfQOjPTiOIHZo1qj1zZBruHA= sha256:WUCA7xKiXWdh8cO8T6eVyvnXPWTBDcIj1wGzNv2oCZo=
	sha1:eEPhDl10BaCMOFDL3MnjkO8nhjQ= sha256:q+s5esb34lfQaIYEUcTCzL3PsAA+TNGBpLP9B4KeYLg=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 521051124E3; Mon,  2 Nov 2026 15:07:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=resnulli.us
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id RMSbsfKQtKXU;
	Mon,  2 Nov 2026 15:07:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-354647-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=resnulli.us
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 1E80C1124C7; Mon,  2 Nov 2026 15:07:06 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 6430D600C77; Mon,  2 Nov 2026 12:07:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793621223;
	b=y1Z/UXtdaoqsodwAINhZeWOojE8b7A16dLJaHiH29kPLonD4aiOM4SKspxSK2WJ8n0g4
	 kK9E82NPnbI3MxSLWjDFqPPmE9KXTDPs1J4hYYXlC/ZQh1/AldmLWaObHysJg9bpapy+C
	 6X5gVK/kBlSl8FvISmmzWMELgcVjabsn0UzowTOJSUzJ4PhLbCd805hNZuxP9VV1+Ff+R
	 /VYTe6Sj8PQdMNBDSaH+VdYyOg3lSzbp82yAOUtG+/JxoTxE1umnU2Dc+cB9fiWOTifuD
	 +gFb+2Bb3kx8KND2ryh7U18Ow6axHkRTrlF/9/pdJUDVsk8wjck8iD6b7eQuoIGm1/g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793621223;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=cHxwMczrsd8dG0Mciy8ucuGSBKV5QcduhNoDlOIOkBM=;
	b=MuZY8t5Cz1LKm8/TZ8k6Qhh0Ac7RHOxFjVdyWmOhxZxtBRb5Qg6n40ZI+qKUR1TgSyl8
	 VxcfmdlCjQPa+oqqR0kesYXZ1HRVUNNMe9MbLjpbp5hZAUqyDpCkJSo1+WgzuH7eLvp8k
	 1Ke/4KDrpGRKkasPe67aBiLZ2hnr8acsDru9imtKEsYd/qBieGZNGJTy9434NIHF5fALQ
	 bOQvtQoZdaecVssdApbaMuqxwpAjkviqqtmL0IKzmtQyECErco5qIwMRf33MJ/BMAr6Cr
	 SqfWWGxLxbEoYZRYiZP3SWMWOkspl68I6JUzbCrSrLWHzNDAX0T3uaKeQsL3v9uSFOQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=tftbZa61;
	dmarc=pass header.from=resnulli.us;
	spf=pass smtp.mailfrom=resnulli.us;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AC7D606A330;
	Mon,  2 Nov 2026 12:07:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=tftbZa61
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793621222;
	b=Jt1k7/wsYAVxIctdgbIo7FB6xM5W5X2RY/gV1hOUC6+8a1+1OfZOg2yX7YH6XF2nsUsl
	 R5JfBQRjVne+Hjigbg9/1XFY01KQAFUX4qP6/ECMliWljZW/8u+Bem3JLmal/dKtxuBoE
	 QPyRrLFymUCz71w8nlGfHA2uxFP8BHdqaJbzk7QYMkclZPj7RcP+QMbdM7zTHUVeb4508
	 Mck2Pyp+qFBcgnYEzh1lzwBwF4lSbJUT3cJFQIg2133pXb5uOgO5ajqmx2L43td7MtmA0
	 Hk+N48xYAqbtBsZyv3TV0+Tg5/cF7gNu/qMK24pHsKoUgnq2EjAuNvqfA+6Dsdh19FQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793621222;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
	 Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=cHxwMczrsd8dG0Mciy8ucuGSBKV5QcduhNoDlOIOkBM=;
	b=3if+NE5nVDl50SJ5GjCoBKLFoZCyRwu6YT02l7hqKEph97r+JH2i1+WO/rrR4jgB/G38
	 VBt3pUXMSoiaPS0CX0Ck2h2F45G6WIt6Uo8sWIsMhbvDr4U4p4SlRhCx6rarwk2Sv56Mr
	 DOTJ1Y+ab6aPm2y7s/KqQhJhN+QcOdZOI+E9cYz4/NGUVVgPgRxEi8TgZWEN6JruAI2Dg
	 21VUmtiyaaRxAT3daYiS7x2Ktk8D/ZGoT7VjQk/Lawi6IxAlBXUlm9SUDD+fWgJkOqf/e
	 gLHSmZY5f4ZYAI4EI2u1FpjlhMJK90znJLJYlaTkGJH9Ugvcz3VGG6D9jdKI70JNMfA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=resnulli.us;
	spf=pass smtp.mailfrom=resnulli.us;
	dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=tftbZa61;
	arc=none smtp.remote-ip=209.85.218.43
X-Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DBCD606A324
	for <netdev@vger.kernel.org>; Mon,  2 Nov 2026 12:07:00 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4DBCD606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us
X-Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-c445c95d553so385705066b.1
        for <netdev@vger.kernel.org>; Mon, 02 Nov 2026 04:07:00 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=resnulli.us; s=google; t=1793621219; x=1794226019; darn=vger.kernel.org;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=cHxwMczrsd8dG0Mciy8ucuGSBKV5QcduhNoDlOIOkBM=;
        b=tftbZa615LKNryZ9Kc9GKk9ho4fcnAEDTrxb9TcoyLubpthocMG+3lDPU5rQ5HwxUI
         f4JrDTvh+ehBSlzYTK6OFmWa8kfA8jX9U72WFzXk9dNOIQcdbEPi3jpvRptX5DP4QDE7
         CARGva8Q2vojgQHvJc5XCo2XM1ri8G+g+t5SiuRWlctSecNHbsO6Em8JRNxIZeLTklvr
         ix+i72KpefxTp2m9/+nCqb99dnrX6+E+hZQDXfnFhqVFW8gx0NGl4wN8OqJf6Wy6nl93
         Fb7TMTcltpD1e0Hv9k6iyMBp4Itp//HSNJCRS/tes6P+awsGZfTEKT5oUqRpcxPs7vzF
         hI1A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793621219; x=1794226019;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=cHxwMczrsd8dG0Mciy8ucuGSBKV5QcduhNoDlOIOkBM=;
        b=k7cA3P9FHrJO+RMCUbRA9F9HvlmxhQvCQk0+d3cBGeF6iS/Cj/gKKPLs4OVOEqJ7G0
         nTfLFfnfFN0govq2SkHT3waeoNO8R8/yb55BPrVZmoxwBFSBvisLtaq4JJA36RiGkjB3
         BzLjAIEvK8gHL74AZYF10JPSx92XxZQ70e9Al8H25kFii8KedG8gT+CcE+fPVybO9GI9
         S4YKMMBfAeZVqiYMBP0X3o8VSNWYfIGM+I4D5ow6/O9lTjM96MQrw5CwWuMPG5eAmcTw
         VY+6Fdgk7edAluxslysQfgO+6B3uiFchG2bNrVZR2/1e76ziGlMAix80beWrB4dMqtQg
         RXvg==
X-Gm-Message-State: AFq9FYJcb0KrulaXJo84bqZtjsqsY3h7mzMZy1TpOwB46FqamA27booH
	iJFdQA0h4V4IlsZ/D2gYBF/XtX9yChbzh5awtuiY6iy8sX8Cusu6TxftRHxvic/E3t4=
X-Gm-Gg: AYBFou2iY/RhiUDTOIJoaqIqRCFTp7V0AAttXQiNdSdI3+1xYKSnZcqvdcVdNnxnKGr
	T94nDXwa6wGjoiDga0ohaZEHAJFEGbnSOz5em0xDRTwJbHH09v2lEg9LjzD5GmP1tUEd4T5cNDF
	BqpFK1GB+qGbG5wgD5BZVHjEE+KX9fO/RDaXYLXTvDO0IjqRlkz0RNTgqJPtPg1yvzxQ7BQYAJG
	9wFnx5KWnVa+uTUvDcidrma2YGF8JGlsBLqe/rTO+tczhLg5oOfWpF/j7481HKr1e3TkQJmujEK
	0XPe9poZbEPuNHG2F/O3GGauVgf+qzO+VoL7hpjiJdMpl0P4Y1WYGahq0lIcKrwDfZjE1wxmjQM
	5blOLTBJCHRRaHfzU9yHKl9lCKT2RzkxklK91OejftWxkX1HT3sQfE2BeyAeYqZqvDm3Fq6ASsX
	RImGp8WXAyB6UlKC6ShAofXKjsa7nwYUkQ+6oX3VowhL8OTsufQ5RW7+7IJ6G6IJvfgv5zD97PK
	xeMGsW892tlq5uENVsCaw2pQcdQRQhUgI0VoiJAleyCxHll2/vLeLT0FCQ/yyV2u/ouvT1AlRr5
	lf4YK8Tm2Er+8fTJn4XJ206e
X-Received: by 2002:a17:907:60c8:b0:c49:a4b1:9cb1 with SMTP id a640c23a62f3a-c4ca795fa50mr1010874466b.3.1793621219175;
        Mon, 02 Nov 2026 04:06:59 -0800 (PST)
X-Received: from localhost ([140.209.217.212])
        by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c4cabe0f5easm381515066b.35.2026.11.02.04.06.58
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 02 Nov 2026 04:06:58 -0800 (PST)
X-Cc: netdev@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <CAOr6SmEW8ZLjMzqCWdQL3W0DKwZCVaRL+DbhrSEZu7SeZRiVpg@mail.gmail.com>