From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34C6ACA0EC7 for ; Mon, 11 Sep 2023 22:09:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236108AbjIKWGH (ORCPT ); Mon, 11 Sep 2023 18:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244012AbjIKSlC (ORCPT ); Mon, 11 Sep 2023 14:41:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B360C1AB for ; Mon, 11 Sep 2023 11:40:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B48EC433C9; Mon, 11 Sep 2023 18:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694457658; bh=KQWdx/Fl0YYS27pw8mW5NagTbUm9aANbYaGKwBbxMRg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fjn3MsGes9YA8GWfL0TlxGW4rS6yrqd0+qvR+ILrrE7snCVKKbdDZTCSCcBTvjYz+ DoElXtK16OBKquPLHS7B1SFDLvPEZ9KL3wD/FMv4bUA7P5TOnmCJJnVGVBs1YPfaEF 1xs04pKLUTzfeZ6wO2aPKaM5sOmmpKieUNcSUz26eU1GQzFF2lI58iBnKcjJ9G+81k s07y3fThthSSr+BKkvOSUWmCAXrED0Dmn4yBKs++t4c5B6gl5DEj7TDEdfRiT3vnL8 rgchc02OxVFYnZKZ9IJpnQPxBbBw32o4VtVqUyc9478Mpf1u1SqvrfOO+FPLKSETz+ Llh7+5huQZafQ== Date: Mon, 11 Sep 2023 11:40:56 -0700 From: Keith Busch To: Ameer Hamza Cc: linux-nvme@lists.infradead.org, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me, linux-kernel@vger.kernel.org, mav@ixsystems.com, edmund.nadolski@ixsystems.com Subject: Re: [PATCH] nvme: prevent id ctrl csi for specs below 2.0 Message-ID: References: <20230910212641.338438-1-ahamza@ixsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230910212641.338438-1-ahamza@ixsystems.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 11, 2023 at 02:26:41AM +0500, Ameer Hamza wrote: > The 'id ctrl csi' command was introduced in version 2.0, as specified > in Section 5.17.2.6 of the NVME Base Specification 2.0. Executing this > command on previous NVMe versions returns an "Invalid Field" error, > and the error entry is saved in the log page. Although, Commit > c917dd96fe41 ("nvme: skip optional id ctrl csi if it failed") reduced > the error occurrences, but the error persisted during the initial > module load. This patch ensures the command isn't executed on versions > older than 2.0, and it also eliminates the skip implementation because > NVME_ID_CNS_CS_CTRL is expected to succeed with version 2.0. NVMe TP's are allowed to be implemented by versions lower than the release that first included it. I recall the first nvme controller I'd seen that implemented this identification reported itself as 1.4.