From nobody Fri Apr 05 22:57:48 2024 X-Original-To: dev-commits-src-main@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 4VBDR113l5z5HMNP; Fri, 5 Apr 2024 22:57:49 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VBDR064Y3z59CL; Fri, 5 Apr 2024 22:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712357868; 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=dYUq1J2DnatsbnKiEE05pghs5K2v1MGZEdPTJRhBuLA=; b=Ivlps6qYBPCBKhiHzL2frFnddPkYIAbzxZ6+zjTae5gJyZ41Cy0tLS7Dmeq2xG0TyHIpRt 9LJr+J0WwKT0EW+69vq+NN0nRIsia+1vLTB5VZpVWe75CbPEpeCyY6RbRUENexu+xHOTvY TK7VRcf/BWp0/5gq1J65V0+p6Xfs6MKj3YXANhPWJIrV/TVxqDME2soFtOKtBuhmms58+f fKOoB6RMP0aRO1XbWj7jU3iNjydYF7ZGS4BwErbUjqzVOs2/B16N+T6Q3VZVTYP6NMqghA 5ClzJjQp6EZgd6cw738Qdoi1oPmUYrxkrjW0AfkR2S2d05xKozBFac3GdUMVww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712357868; a=rsa-sha256; cv=none; b=n9S4uq6M0DC/df2T/A4PEPiANpIFaQs26KBfF4xLcbC2EKfGhgY4f+2tsuEZ671sUcs7j/ Dl+Fgz276FOhixVZhtIskIZL/+5+BIokJIX+3KB6p0Df/L56D7AgKvOZuoZdoV/HR2yD4N /X2Ff2kWVDa+xp+OUXpeTj5omVR8hV2hdXTLqEqN7vxKcEwk4dVgS1FHY1qUadI+8K9RUi yTxXDVFp/MqN3b5lBVOgq5D/WN1MKoa09qYsv1PRaOXJen/byCkC7pa6EjkbDimXg6iqfT ALFxU3N9jdEeOcy9AnqoTeMZCPH2Ee68ONxM5hUYSf670u9Hg8EkfWeRXNbeaA== 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=1712357868; 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=dYUq1J2DnatsbnKiEE05pghs5K2v1MGZEdPTJRhBuLA=; b=UHMDcCQ3lGP9hDi6ysNarN4DYgzpBdllqy9F4gauTdXb5eSK0KcnOT58+VX5edZp32WtFG jqPA9z+hhNAVZ7doZjXIygHOCEGsuXrW9VqoUNj/xjnfDNUo+aXukNZwteBtfIO96R3ind Sw5YYdqO1s3NIlRJ/bb6U1ok0z7gKCyytxM/Bw/Vh0rQqC3slAwZzQGXJFPg89eGed9T25 b1KAIUvMVTXL+QiJYJxbUhzcGL62qtvunqj+RBbx4Wn3hGNZwkDWZ91hc9mNtSoolygmo3 4bCzdRnK7gGaNsEiPXs8eiNSLX0cY2jBDTL5JuP1stLiomG9rRtHKGLbXjncLg== 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 4VBDR05Z60zJct; Fri, 5 Apr 2024 22:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 435Mvml9058677; Fri, 5 Apr 2024 22:57:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 435Mvm8q058675; Fri, 5 Apr 2024 22:57:48 GMT (envelope-from git) Date: Fri, 5 Apr 2024 22:57:48 GMT Message-Id: <202404052257.435Mvm8q058675@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0b8f21e8d1f7 - main - nvme: Add LPA bits List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b8f21e8d1f749bd03532f90656e2a5cf01800c0 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0b8f21e8d1f749bd03532f90656e2a5cf01800c0 commit 0b8f21e8d1f749bd03532f90656e2a5cf01800c0 Author: Warner Losh AuthorDate: 2024-04-03 17:26:17 +0000 Commit: Warner Losh CommitDate: 2024-04-05 22:53:47 +0000 nvme: Add LPA bits Add all the bits from the NVMe 2.0 base specification: CMD_EFFECTS to indicate the commands and effects log page is supported, TELEMETRY to indicate that the telemetry log pages and protocols are supported, PERSISTENT_EVENTS to indicate the persistent event log is supported, LOG_PAGES_PAGE to indicate that various log pages related to log page and command support are supported: L0, L5, L12, and L13. and DA4_TELEMETRY to indicate that the DA4 area is supported for telemetry data. Sponsored by: Netflix --- sys/dev/nvme/nvme.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index 46956d5f54cf..706b77507b61 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -390,9 +390,24 @@ enum nvme_psdt { /* per namespace smart/health log page */ #define NVME_CTRLR_DATA_LPA_NS_SMART_SHIFT (0) #define NVME_CTRLR_DATA_LPA_NS_SMART_MASK (0x1) +/* Commands Supported and Effects log page */ +#define NVME_CTRLR_DATA_LPA_CMD_EFFECTS_SHIFT (1) +#define NVME_CTRLR_DATA_LPA_CMD_EFFECTS_MASK (0x1) /* extended data for Get Log Page command */ #define NVME_CTRLR_DATA_LPA_EXT_DATA_SHIFT (2) #define NVME_CTRLR_DATA_LPA_EXT_DATA_MASK (0x1) +/* telemetry */ +#define NVME_CTRLR_DATA_LPA_TELEMETRY_SHIFT (3) +#define NVME_CTRLR_DATA_LPA_TELEMETRY_MASK (0x1) +/* persistent event */ +#define NVME_CTRLR_DATA_LPA_PERSISTENT_EVENT_SHIFT (4) +#define NVME_CTRLR_DATA_LPA_PERSISTENT_EVENT_MASK (0x1) +/* Supported log pages, etc */ +#define NVME_CTRLR_DATA_LPA_LOG_PAGES_PAGE_SHIFT (5) +#define NVME_CTRLR_DATA_LPA_LOG_PAGES_PAGE_MASK (0x1) +/* Data Area 4 for Telemetry */ +#define NVME_CTRLR_DATA_LPA_DA4_TELEMETRY_SHIFT (6) +#define NVME_CTRLR_DATA_LPA_DA4_TELEMETRY_MASK (0x1) /** AVSCC - admin vendor specific command configuration */ /* admin vendor specific commands use spec format */