Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1966156rda; Tue, 24 Oct 2023 08:26:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFczw/CzLq6FxfOXQyHIMVneDi2HRNZ+2Lf4BUvA0BqhSEAuDRgX0CR2pueHeIeHlL07Vd4 X-Received: by 2002:a05:6a00:27a0:b0:690:c306:151a with SMTP id bd32-20020a056a0027a000b00690c306151amr10690144pfb.0.1698161171611; Tue, 24 Oct 2023 08:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698161171; cv=none; d=google.com; s=arc-20160816; b=ci7Oodl7QJF7bYPPSXkmo/0ze0UAZj3ZaFs1N2lFbni6eMotorouK+OULT1iFylhz/ HFiTEI1ceqWZEJrjvwKLIYMX6J3CVB5vwxPKEnlpw2nOUhDsk1+m229Azhw20W9YSqGo kt0AtACRx3nMpROY2lv0gHYnrsaQzhGM+KYjFQmu0rfz0A2no6FruD7m0roY/S9A9iXB 8LMQa5HUqHBD4HD1oilnRZ1Mbp9b4uXsrWuragc+xvG1utpBB+HzY+JCGYQpxKjG0Exs AXuyYUTmP0ST7fJUyL6qmMQzKyltWGf2ftkblfFbPIUVHMENvfHUbqbO0Ew11dE0XfWx uJYg== 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=G99EpgNPwk3ZKtsKXFSuDuK5XAwD0sKO/GOP5GTC8us=; fh=dqYjP3PCubjK7ZrcVy+g6DtIEOPfyRSVOVN/3bIjrnE=; b=qtZY8hi/w6ehWmGg4p8sRiRi7/1xC37ohCrVoXVDNbuvPkN+to+QkYrJo101lBeEaz FMHkqM7Vwrs9/ndXPkJaQbD+dRdEriaXFEGgzlitHrgkctGvYxUFxxl9s3tQ6DEocMvy ZJbdStJGqZ+3dS/mawZpKkM8EEqLOV1yJnG8HskyauY5bvcTPwdIJpD9m/9SC8x/5x4J z6Uhic+TCtEFCUDQoyb05YguUnpfsQMrC9alj5Y0VxqVKmY2T2hjgHIHYQnBuzA/avGd 7TDds0ibHKWbwbye9orM9b8PBvUhVjwxxxupGn/+1FnFXyG5iytvF3yr7WARkbdk6bvJ yWPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XBysLWeD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id fj9-20020a056a003a0900b006a15afe16adsi8782966pfb.258.2023.10.24.08.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XBysLWeD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 34A658076659; Tue, 24 Oct 2023 08:26:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234911AbjJXPZs (ORCPT + 99 others); Tue, 24 Oct 2023 11:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbjJXPZ3 (ORCPT ); Tue, 24 Oct 2023 11:25:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 759F34ECA for ; Tue, 24 Oct 2023 08:22:26 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E1EEC433AB; Tue, 24 Oct 2023 15:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698160946; bh=yP/m5o/N2xjmFltBU342MA71mpnmokk3pCJv5uGnXGE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XBysLWeDFStlnjEQdvf9qACHZxYBYU3Xu/6xqUFCu6Ju1a3WZKBvjxtFbJsq5Vmgn xqDcyOxjS0loDAGl8TaGTgRizdvsc5P7ntlxJraiRoah1MqXWgjzH24sIt0hlSI3Uo fShS2I4QG2TU+qXEn5+bzlch00CmvKT/PgyHhE/fFE5eTi5uvfBOeXcB2gERwB2XNG jOvmAyzd37nYMoxQtyLt+7uH45luxJVr71LKB1F6GHlxPnn+cTZJIEOQHnnTIS9/DG q3o9ZAVyYumqwGkS4g4HDC/2DGjLSk12BJ47pcvpYzI+yJLVReLFrIK/Hrs0fXGZHv fzi+QtOt50LBw== Date: Tue, 24 Oct 2023 09:22:23 -0600 From: Keith Busch To: Chaitanya Kulkarni Cc: Daniel Wagner , "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: References: <20231013163420.3097-1-dwagner@suse.de> <9c9ee261-6d44-4193-917d-a513865e7181@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c9ee261-6d44-4193-917d-a513865e7181@nvidia.com> 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:26:09 -0700 (PDT) On Tue, Oct 24, 2023 at 06:21:45AM +0000, Chaitanya Kulkarni wrote: > On 10/13/23 09:34, Daniel Wagner wrote: > > The firmware version sysfs entry needs to be updated after a successfully > > firmware activation. > > > > nvme-cli stopped issuing an Identify Controller command to list the > > current firmware information and relies on sysfs showing the current > > firmware version. > > > > > > why did nvme-cli stopped using id-ctrl ? We have exported attributes. We should be able to use them so that we're not interrupting the device to provide info that the driver already caches. The driver just needs to make sure the contents are reliable.