From nobody Tue Aug 27 01:06:31 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wt8WW5bWGz5TjDb; Tue, 27 Aug 2024 01:06:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wt8WW2jJCz4lc4; Tue, 27 Aug 2024 01:06:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724720791; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xhwenZKquX5tXzQ9Xj/v6HytizOhea0sZPPFo2cYT7U=; b=vvMb7lP1u8a1kaRUXXm+2/Ds/Kdtom38nj8btwLRfOTcFQsYEnFGTsLQjwqsUFAjw5r/oq 1FEV0+NOaaiI+U8TzmXwji+HqPtHIjeGztlkc11fPhfR4bM+uMgF+qcipw2inKZUp1nT/C oXfiWIhuD/3JBSPBG+X4EMX/NEXOiSITaOw6+hdGen2T5KAW1YDpMuZv+VyzQtUNSNoCzR spAuxXkRVURcpVahsS0db04K66Y0uC8MCv7bR+oUvCPlD3HdnWrsuT4gIPLodn8P4AWi1H Ju00BQ7uXqGMeLsHBZjClXf3znrshw8RhhplVGMXNLfqOkrfPN9RD7ji5hdi3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724720791; a=rsa-sha256; cv=none; b=FemmljynCi+K5uxNPCtYcxJJ91gbTj2gU/VJ7IizqV4m4ZjePJ90EYgAEWrcRrWWR90JBL fv2k+mkRAmphKyjc0ax2OvWHA9Mnwf6XRLCtzxuuVGnaqhAzV6gcAJ+zXPGQCXAFdjKtzB CAfpM65yPSh9q6gcib06K7hdDy4c1lW9psp7FyiHNr6Ezpl9Gzs1HZuZCCqA71iau+7DUy LjKtwS/hZL4dcwK/2ltsW5N0ytjZo9CB+oruLkomCCA+VWezABeyF3qw/2QYLysmYrlX2J nptjVcnjHYVHk+LRhtgIpjImxiuXSdvcnFUgPrIhzzCy38WxWVJ7Ze9tMaxXaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724720791; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xhwenZKquX5tXzQ9Xj/v6HytizOhea0sZPPFo2cYT7U=; b=KgUSZgj9QInL8oGA7Pijmr43GzB4taK6Zs4QrtFBG5NZlLwMSz5QAQej0Dg1u2AUUtccDJ jnmtdJTxiyS2TY7sdKhrTjms/NcbknP7lOCj1bC+woBIUY9w56AJsVexREoCNuJW3dzBsi CvuTB9T9SYYbWTKR0+JzGpmddCuFd4x1hjv0mm7o/FgFMe7IRzn72UyAGGKTcMO/zicd92 7J1RmZzuQoTxAvKAolh9mCSTt70hJ26QflZbRztipsEQ8Rz7/WiXL4ER1GRedUcNaX3WLt 221x7P+a2Xj4bzwI8csx6glwCw7WHirCDP1VxVtpZt8/ZeN2OnVNmPkq18QSAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wt8WW1q14zT9T; Tue, 27 Aug 2024 01:06:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47R16VHE056727; Tue, 27 Aug 2024 01:06:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47R16Vd9056724; Tue, 27 Aug 2024 01:06:31 GMT (envelope-from git) Date: Tue, 27 Aug 2024 01:06:31 GMT Message-Id: <202408270106.47R16Vd9056724@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 9541862de74e - stable/14 - nvme: Add constants for the Controller Attributes field in cdata List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9541862de74e437e01a2e0f3b978f6fb5f0568d4 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9541862de74e437e01a2e0f3b978f6fb5f0568d4 commit 9541862de74e437e01a2e0f3b978f6fb5f0568d4 Author: John Baldwin AuthorDate: 2024-03-23 00:24:31 +0000 Commit: John Baldwin CommitDate: 2024-08-26 18:27:59 +0000 nvme: Add constants for the Controller Attributes field in cdata Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44447 (cherry picked from commit 7fa8adb8c5cd46979b76770794ac1b6584e8baa7) --- sys/dev/nvme/nvme.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index 3bbb1c326efd..6317c65ec9cd 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -311,6 +311,38 @@ enum nvme_psdt { #define NVME_CTRLR_DATA_OAES_LOG_PAGE_CHANGE_SHIFT (31) #define NVME_CTRLR_DATA_OAES_LOG_PAGE_CHANGE_MASK (0x1) +/** CTRATT - Controller Attributes */ +/* supports 128-bit Host Identifier */ +#define NVME_CTRLR_DATA_CTRATT_128BIT_HOSTID_SHIFT (0) +#define NVME_CTRLR_DATA_CTRATT_128BIT_HOSTID_MASK (0x1) +/* supports Non-Operational Power State Permissive Mode */ +#define NVME_CTRLR_DATA_CTRATT_NONOP_POWER_STATE_SHIFT (1) +#define NVME_CTRLR_DATA_CTRATT_NONOP_POWER_STATE_MASK (0x1) +/* supports NVM Sets */ +#define NVME_CTRLR_DATA_CTRATT_NVM_SETS_SHIFT (2) +#define NVME_CTRLR_DATA_CTRATT_NVM_SETS_MASK (0x1) +/* supports Read Recovery Levels */ +#define NVME_CTRLR_DATA_CTRATT_READ_RECOVERY_LVLS_SHIFT (3) +#define NVME_CTRLR_DATA_CTRATT_READ_RECOVERY_LVLS_MASK (0x1) +/* supports Endurance Groups */ +#define NVME_CTRLR_DATA_CTRATT_ENDURANCE_GROUPS_SHIFT (4) +#define NVME_CTRLR_DATA_CTRATT_ENDURANCE_GROUPS_MASK (0x1) +/* supports Predictable Latency Mode */ +#define NVME_CTRLR_DATA_CTRATT_PREDICTABLE_LATENCY_SHIFT (5) +#define NVME_CTRLR_DATA_CTRATT_PREDICTABLE_LATENCY_MASK (0x1) +/* supports Traffic Based Keep Alive Support */ +#define NVME_CTRLR_DATA_CTRATT_TBKAS_SHIFT (6) +#define NVME_CTRLR_DATA_CTRATT_TBKAS_MASK (0x1) +/* supports Namespace Granularity */ +#define NVME_CTRLR_DATA_CTRATT_NAMESPACE_GRANULARITY_SHIFT (7) +#define NVME_CTRLR_DATA_CTRATT_NAMESPACE_GRANULARITY_MASK (0x1) +/* supports SQ Associations */ +#define NVME_CTRLR_DATA_CTRATT_SQ_ASSOCIATIONS_SHIFT (8) +#define NVME_CTRLR_DATA_CTRATT_SQ_ASSOCIATIONS_MASK (0x1) +/* supports UUID List */ +#define NVME_CTRLR_DATA_CTRATT_UUID_LIST_SHIFT (9) +#define NVME_CTRLR_DATA_CTRATT_UUID_LIST_MASK (0x1) + /** OACS - optional admin command support */ /* supports security send/receive commands */ #define NVME_CTRLR_DATA_OACS_SECURITY_SHIFT (0)