Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2831504rdh; Mon, 30 Oct 2023 08:54:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuEH0xiRLRJp+DkBL8Z6aIaLjcUhZfEHDzVPNoJDQLBglrj8mVx/n3UZUMT/j/rOS/gQcD X-Received: by 2002:a17:902:c411:b0:1c5:bc83:557b with SMTP id k17-20020a170902c41100b001c5bc83557bmr9879256plk.51.1698681258173; Mon, 30 Oct 2023 08:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698681258; cv=none; d=google.com; s=arc-20160816; b=glV/1h/FhQirkKaxJCutHI2Qw45hO5gYOFugyumoVwgzjoqz2oSyqLK50v4QSFmkPP CuvcUPACdesBiVLktRvWZzHdwxudoZuW5aY6LJLi12KnXf+I0bxKDjFOHSDfgZYHRDxt YH6PiiyA5/49inzCtvmH2675FBB4XWRFj1j6Zww/K6/l/TdtIthMYAI5Eo12PqjtIIL4 Tz9xUWMvcbeFSYhUO6sI5+25jNF2zPpF9fFMMGDjMcXjoGIH/T4uK6Mgy+XeB8KBw4qE Mq2ZhfE+YEbkJw28jSatrfDNhTytbBDwZ1p9p1T9oV38vmr7aPGxzf/1KJfYoLCicABF Xj+Q== 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=Ly7U3gXy+gVasbGPL0oG6S//IwI5mlzZZDgIJdDTmEg=; fh=kaXpEEB5eKodI+2JGlNZSt5WzgOZyHfL1/2ngQO3ocA=; b=AksR96vMgA87tVr5XfoGQ5i+1/I4CEMpb3BUBpBziURLiVcVAhAwk39hyNSkPCP/fp oJVSMrlb8tW42yCPkSbt7D40hekLyYJpAX8L1hEZh4aXPT2pUf+XKDDdSdDtI5tLM8XY kh6vSzR+mk1Kp/nrkGYjskwmpX/oYqfSgB/OSROGmn51/+8slxZhDptIkPz59cv+YoFE entw06n/TZ8dWj/BCN4i+DbsSCVfl54e3FWTANToEdF+1uxWzXnR5ep56sDmmO9cmBhV nOBUIa3w5SHhY6C9mYUOXLFtprsbC5+6eYyE/6+K9arseBwWFwhEZ2TUhT7kHjLtBu/h QkPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QvYigMZn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=7UZw7RKF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k4-20020a170902d58400b001c722b269b4si5203026plh.620.2023.10.30.08.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 08:54:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QvYigMZn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=7UZw7RKF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 57AC580309BD; Mon, 30 Oct 2023 08:54:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233311AbjJ3PyE (ORCPT + 99 others); Mon, 30 Oct 2023 11:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232654AbjJ3PyD (ORCPT ); Mon, 30 Oct 2023 11:54:03 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 057C2CC for ; Mon, 30 Oct 2023 08:54:00 -0700 (PDT) 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-out2.suse.de (Postfix) with ESMTPS id A78141F7AB; Mon, 30 Oct 2023 15:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1698681239; 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=Ly7U3gXy+gVasbGPL0oG6S//IwI5mlzZZDgIJdDTmEg=; b=QvYigMZnkoK+WcoSWXuNn9sXNyEZuH3kts/4Q+DDXuTKZWF17J7FYrUpFvUG7iSeOBpna6 H28cLmdy60gAFguUnFCSGOs88Jk+eMJDTn60drV5nLvE1jZM6iGqETkVdxhUZWoR7I7cW9 /XXj/O5CS+u4zMnXpKq0d+mm9FtMIw0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1698681239; 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=Ly7U3gXy+gVasbGPL0oG6S//IwI5mlzZZDgIJdDTmEg=; b=7UZw7RKFU/RHBOBOPdUn/vXDv+6XQwfjnHnV0lN0bADrewh25+LF5bWxilbbBh/VUYv0ul KPGvtnL2yx8vQkAg== 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 9763A138EF; Mon, 30 Oct 2023 15:53:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +7fKJJfRP2WueQAAMHmgww (envelope-from ); Mon, 30 Oct 2023 15:53:59 +0000 Date: Mon, 30 Oct 2023 16:55:35 +0100 From: Daniel Wagner To: Keith Busch Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Niklas Cassel , Kenji Tomonaga Subject: Re: [PATCH v2] nvme: update firmware version after commit Message-ID: <6xstp2bsrdrrcosddk7jcwdvcojek2b7njqqjw2cggl5f7xpuo@etrfki4orlwy> References: <20231013163420.3097-1-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 08:54:17 -0700 (PDT) On Fri, Oct 13, 2023 at 10:43:48AM -0600, Keith Busch wrote: > On Fri, Oct 13, 2023 at 06:34:20PM +0200, Daniel Wagner wrote: > > if (nvme_get_log(ctrl, NVME_NSID_ALL, NVME_LOG_FW_SLOT, 0, NVME_CSI_NVM, > > - log, sizeof(*log), 0)) > > + log, sizeof(*log), 0)) { > > dev_warn(ctrl->device, "Get FW SLOT INFO log error\n"); > > + goto out_free_log; > > + } > > + > > + afi = le64_to_cpu(log->afi); > > + if (afi & 0x30) { > > That should be 'afi & 0x70'. I've update the patch accordingly and send Kenij and one of our customer to test it.