Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1947066rdf; Sun, 5 Nov 2023 22:59:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3oK+gTvKSYVrItoFJSN3QL1RARpwqlMUyvLa7y2aPGNCqVtoAxI3171jtYGE9HVyWQiLG X-Received: by 2002:a05:6358:5924:b0:168:e7ab:6877 with SMTP id g36-20020a056358592400b00168e7ab6877mr27931894rwf.6.1699253957218; Sun, 05 Nov 2023 22:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699253957; cv=none; d=google.com; s=arc-20160816; b=lN/Gv4AL06nsITU7mjMo7hom9Oq/UWSHGgdU4JroxJXS2S0JfORkamzFp8LXC1da4R IhOKQXEYbA9Ma2w9ATAJJ38jEEut8pSTyVYYoz+qRrFzER0UUToAcnXUWs3FmanP1idu Rp1xsQiiyOu8048mO40XzwS6tK9E9R52MMoWHWKpIEN2TGZ+QYxXF+HOGBHEW+Pdbqb5 cPswlBWWreV7WHzwIZ5y8Gu/f9RO50Qv5vCL9iQXQBi5tXDzp8h+STWnDlXKBlc4XOe7 VO8+N5APc7t/hevuURDCSdJz6Xjz/TDgDXVEim/MEwLmHlEOVShCYLU1SRykl3S11kgJ YzvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=+p3StKUp0N4ggikwgytWyMwdQGjDE4+4rKwUV67bhsU=; fh=/Qmxw76D+rP5vBNvxPo5cJvF+Bf9wb5/Qt+02RExCOg=; b=gXPsXnR4TDpw8kaf9LAZw+rnjV713+wN08p9MPK6JEL4BBtRatrixGI/ckhWZ/lazW hL+vT7wmg/BaDk8AhFY4wBDGGygstOeLh8a6HyNeIx9Tcd3XyMNMGVFNQLb24ScuqnmF gMlGpDXFCLv/2d7P1x8He85HUDuRuUSCQza+kUKq/+jHcZlcE8ia+JOH1qyAscwC15H/ RlMG7/4x7a4BT+glEi753LjjUQLjqD87zaP196ysn8E4wBfHOLRf395+qRCKrgkG+VA2 0FvpAsYlDNOxkdfF8R5HDOw30Fb3apX8HGG0nYtQji9uNwrw0pE5b7bSsHhUh2UYSZwf IaWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PuVxkGtZ; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p27-20020a635b1b000000b005ac50a019b3si7033471pgb.745.2023.11.05.22.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:59:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PuVxkGtZ; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E42A1804B115; Sun, 5 Nov 2023 22:59:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230442AbjKFG7G (ORCPT + 99 others); Mon, 6 Nov 2023 01:59:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjKFG7E (ORCPT ); Mon, 6 Nov 2023 01:59:04 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0A0EA4 for ; Sun, 5 Nov 2023 22:59:01 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2E5F32183B; Mon, 6 Nov 2023 06:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1699253940; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+p3StKUp0N4ggikwgytWyMwdQGjDE4+4rKwUV67bhsU=; b=PuVxkGtZdtGmu2UK2oJtGPxV3OeuBHA8hWosz3VO6B72F8zNW073K8Pa/ruiqVQJ/OqNy/ vj1QFwOl2uPr2r+rDNVn4B+wgYXobgM/SPA8yf794+WHH//u21oGTrWHT+CkRQuNabeNSx 0J5OXt+lPSTkAEYLERd/qKf3oHTNJs0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1699253940; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+p3StKUp0N4ggikwgytWyMwdQGjDE4+4rKwUV67bhsU=; b=rH1xXDK1/rY2sTVfHR8aJIYhU5jI+sDMzb34PHQNE+F4UMqEXZlQlOt+MO+WVKYECRBlk/ byzUjO0xxZ3jFGDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 20B3A138E5; Mon, 6 Nov 2023 06:59:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id vyT3B7SOSGVDMAAAMHmgww (envelope-from ); Mon, 06 Nov 2023 06:59:00 +0000 Date: Mon, 6 Nov 2023 08:00:44 +0100 From: Daniel Wagner To: Keith Busch Cc: Christoph Hellwig , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Niklas Cassel , Kenji Tomonaga Subject: Re: [PATCH v3] nvme: update firmware version after commit Message-ID: References: <20231030160044.20355-1-dwagner@suse.de> <20231103135857.GA1871@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 05 Nov 2023 22:59:15 -0800 (PST) On Fri, Nov 03, 2023 at 08:22:11AM -0600, Keith Busch wrote: > > All 0's based (what a stupid term..) fields in NVMe are explicitly > > marked as such. And even if that wasn't the case I'd very much > > expect the same encoding for the two sub-fields. > > Yeah, it's just the firmware slot number, taken literally. AFI = 1 means > slot 1, AFI = 2 means slot 2, etc... Slot 0 either has special meaning > (firmware commit SF field, or fw log AFI bits 6:4), or is reserved > value, like in Identify Controller FRMW.NOFS, and has no place in the FW > Slot Info log page. > > Our first slot in the log page is defined as slot one, so we have to > subtract one from the AFI field to index into the slot array. I messed > up for not catching that earlier, but thanks for pointing it out now. Thanks for the clarification. Do you want me to send a follow up patch, a new version of this one or do you fix up yourself?