From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82CBC1F93D for ; Fri, 21 Jul 2023 16:13:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 053AEC433C7; Fri, 21 Jul 2023 16:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689955990; bh=al6Z9zKAGSMmO2QzMvNUanx1U9z8Ulvjl+63X0v5Yg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vFkhnTnkTQcwnYgUTA3xJjDKUD2j1UY8bPQjfdBCge1kciR45riZq/e9lpbwrPyPo wq++WyJk3jmnFoWqsxa5GYJItbXtBTIRcUKV35Hccl52sbgU9Q4JZhk5ZyGyePihzE wqx3T1IfTj7MkJrvyAHz6IkO1gLHvVqZ1d6hLzU8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ankit Kumar , Kanchan Joshi , Keith Busch , Sasha Levin Subject: [PATCH 6.4 078/292] nvme: fix the NVME_ID_NS_NVM_STS_MASK definition Date: Fri, 21 Jul 2023 18:03:07 +0200 Message-ID: <20230721160532.161431805@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721160528.800311148@linuxfoundation.org> References: <20230721160528.800311148@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Ankit Kumar [ Upstream commit b938e6603660652dc3db66d3c915fbfed3bce21d ] As per NVMe command set specification 1.0c Storage tag size is 7 bits. Fixes: 4020aad85c67 ("nvme: add support for enhanced metadata") Signed-off-by: Ankit Kumar Reviewed-by: Kanchan Joshi Signed-off-by: Keith Busch Signed-off-by: Sasha Levin --- include/linux/nvme.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 779507ac750b8..2819d6c3a6b5d 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -473,7 +473,7 @@ struct nvme_id_ns_nvm { }; enum { - NVME_ID_NS_NVM_STS_MASK = 0x3f, + NVME_ID_NS_NVM_STS_MASK = 0x7f, NVME_ID_NS_NVM_GUARD_SHIFT = 7, NVME_ID_NS_NVM_GUARD_MASK = 0x3, }; -- 2.39.2