Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2253280rdf; Mon, 6 Nov 2023 08:45:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3aMIGfGQqa3tYTjIwGmx3Go8YgsX5O4ilTZe431fWe2ljHUyQxWuunwUKas/lcwRyeMV3 X-Received: by 2002:a05:6358:2908:b0:168:eeab:390d with SMTP id y8-20020a056358290800b00168eeab390dmr39830237rwb.22.1699289100231; Mon, 06 Nov 2023 08:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699289100; cv=none; d=google.com; s=arc-20160816; b=zKa+Zupnyvx7ZVeMybH8Do9HIN09JlQNGulsLYKJ5N6vzlO1k+Dq8xiHNmhHYYHPYp LjpBpppR1sbH7TraLcFLDORFNIxBMGyVlhRs5iDUYC7h/p+3uXjz/jPvalh8Luqop4t6 mqYHGLexFawlKE+aTwt38IJ84+rnk0b6KzH2MZKSQ7Qt7bKUqG3RV+oc9R9EHLi+9qcU k16hHYg6fZ9PFx4QBOmY4MqjYPHPffl2+2sRyjhXAfkUMaFxoLHn7oLNsOmZe1MiK20k 2XcA20+leK1yif14hdMm6re8olYRMqLMLpJ6ajsTJMhs1LPQrwH7mBOhJgE3Qda5ZKCh xq6A== 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; bh=rqYXSL+MVbXDwRx9+a+EfPXw7ZCZOYp34K8jtUl35VE=; fh=15U10XykfH+d8Y7SFsUIVAd/fxjIDJV54oRMAdIxh4k=; b=sQqvpFEmOKLEGZGWrudwuUVLSoTBAsWHuHQTC1SUjuGOYGrrq9oM+bzmKczb7TFMyn JrJyEKFi9r6CeKsltJl61Lz+5GEpKExY7iMELHYroMbO34yU4vi+iIwvJ2P+V6C9ujxo uIpRHFAzSyIgmmKIwmrQe6GCIQBMyjowewaLg8Jrvs5Axkihwngrbq0UuwdLBzXfl8Fj Q1dM5sDsr5Ya8zIxMwpDhjorXwWvxVzu9YrZ6hwuI0Hc+zYKpH3vGidQQzYHaWBjB9u6 5WF7nHmLFl1rHs34lLs0iSrYucsIXMv6rURwU2Mv8W2UA8oETIVs4gc5CpaYFjVIq1ne R3sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O4DdHXUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m13-20020a634c4d000000b005b11e5a69fdsi31159pgl.508.2023.11.06.08.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:45:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O4DdHXUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 80DBB80B9F92; Mon, 6 Nov 2023 08:44:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231792AbjKFQor (ORCPT + 99 others); Mon, 6 Nov 2023 11:44:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjKFQoq (ORCPT ); Mon, 6 Nov 2023 11:44:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B8D191 for ; Mon, 6 Nov 2023 08:44:43 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5688C433C7; Mon, 6 Nov 2023 16:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699289083; bh=lwJGtrml9/BgrDRgIC5tla53Nlno4JDjCOXCP23EQDs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O4DdHXUJuh/SmClx633LjRNEta2shZD6iz6oYhV19nmfkaeaMz1gIgehwrDxRA0D0 EMIH3PR8CTbejhC7n4bL4wDtbBejOqOZy39eMizFgg34EHNUmlPHw35uSHxHknXIsu kydnEJXa7tjrti7GTRRxelxrCq/ONQEBvx0wGpUw8Xd/Q+7g5yP5NnY5rDaIhEwYT6 YZ0D8F9vQoys/cntstVZQ449HhV09eRuon2ZuuH2sjCsi/ZaRi42dWG0gcz7BxvpyU rR5PqW2STsA408kvutNZuSl1EWg1Zl10JQZCuHkBEk/oxQpyfpQjXb1Fx4SDSBOXFm zN6dm38at9V4A== Date: Mon, 6 Nov 2023 09:44:39 -0700 From: Keith Busch To: Daniel Wagner 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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 06 Nov 2023 08:44:57 -0800 (PST) On Mon, Nov 06, 2023 at 08:00:44AM +0100, Daniel Wagner wrote: > 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? Fixed up inline when applying the original patch. Let me know if you have any concerns with the result, currently here: https://git.infradead.org/nvme.git/commitdiff/983a338b96c8a25b81e773b643f80634358e81bc