From nobody Thu Jul 25 02:47:00 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 4WTwJh4BqVz5RX6M; Thu, 25 Jul 2024 02:47:00 +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 4WTwJh3ZfYz4FL8; Thu, 25 Jul 2024 02:47:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721875620; 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=eSByOOLEkwGY/UdssFThIW9G4+Mh8EqxD941c9oI2Kw=; b=Hmaeh8aojf5ofI46xmpMHyfSSm3AyppqHXCJ8249teR84sV+XidOjV7woKjkR7yNDcnFyD eS5BYxuVVKv4ExAmdaCYyEfuu/RDS6oYMYOrBljPt5ID98NpcMWDczt9/awl+Q0z2+6rSX cYS8HJKkFCseJRzRm4tEgLRwrcDYGX2x2nOSss1VDLAfMYQSCOmue8ds+jao9qFT8zE+hb UZ+8rswJ0vNrq+ojI/TRH6xd15SCDWWoUp5lwntd7Vjahba+hUeL8pFLCXDwSa6kZqxbnR Kgc3LwFtheJkAL25POwT4VFMyYc6cyshSTNXvQ0wzPJXxwj9MisfUKPYiStxBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721875620; a=rsa-sha256; cv=none; b=pE9o1XdQCilMcs2ahzZmtiX0DagR0/aO8ZhLRQ1bP5vwZw/noDIaVvVBJY1eQUtTD7ofIv TLXLWt6SY2u9DgUw7ihPHUS75zlwj6LpFrNVfVCWgi9E+EevJLa1q6JgILluI3iQGFMQoB pGE8bCNO050Hjzx8WtJDL8wgY6jg+BfCXA2SnLYbSQmp4VwYvWYQpkd3+RrcdNz3kXzyl2 8UOxUMUM9txckaAddqvM7HdZJXdEC9UYXm7A24JB3LCvGGFEc2jflkpoYBAUckixbyKPee YNOI3mXkcIPdY6mU+2k34Lds+g9ZaDSPDxV2o9DVl9dI0uN4gKUaNEG9OsKG5Q== 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=1721875620; 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=eSByOOLEkwGY/UdssFThIW9G4+Mh8EqxD941c9oI2Kw=; b=ctwELc5uZuYQRTICbbMc8IkwEZB6/v3xoXErxnF8FOYHl08JHjift/WVLmYjs1MHxt50zX 3DgZAV8kGN2gilFlaxpmyLzlNEWHaW0mhNXQiU9vlk2y+l2eCFb77sI2SHiRYrNxj845Q/ EiaWnSlycSdoKkTISWz/RbECI15dqw91ZwkJmTObnntOmAzQuYBXQFO7HUeBHeU0A08f78 CF7Ny3X75BqjVw0CKXv4JF7K8QxLS/5m9axIFwqsYYbC5aHCdzfsHVEECO+dqIkDPxIeS6 nwVJba/+X2QwJOv5fepSqI+Dsy1kHCVKUwOJ5ycwy4JbzETXXcPK0/RlCbKkEQ== 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 4WTwJh32xyzcbG; Thu, 25 Jul 2024 02:47:00 +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 46P2l0Qh024979; Thu, 25 Jul 2024 02:47:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46P2l0JL024976; Thu, 25 Jul 2024 02:47:00 GMT (envelope-from git) Date: Thu, 25 Jul 2024 02:47:00 GMT Message-Id: <202407250247.46P2l0JL024976@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: f68c4b4746f2 - main - nvme: Add bit names for nvme 2.0 for Async Events 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f68c4b4746f2fd24604374106c6bfc590e317f25 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f68c4b4746f2fd24604374106c6bfc590e317f25 commit f68c4b4746f2fd24604374106c6bfc590e317f25 Author: Warner Losh AuthorDate: 2024-07-24 16:28:08 +0000 Commit: Warner Losh CommitDate: 2024-07-25 02:47:26 +0000 nvme: Add bit names for nvme 2.0 for Async Events NVME 2.0 has defined a number of new bits for async events. Add defines for them. Sponsored by: Netflix --- sys/dev/nvme/nvme.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index 1db50d24c259..5a18d69c96f4 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -648,8 +648,16 @@ enum nvme_critical_warning_state { NVME_CRIT_WARN_ST_PERSISTENT_MEMORY_REGION = 0x20, }; #define NVME_CRIT_WARN_ST_RESERVED_MASK (0xC0) -#define NVME_ASYNC_EVENT_NS_ATTRIBUTE (0x100) -#define NVME_ASYNC_EVENT_FW_ACTIVATE (0x200) +#define NVME_ASYNC_EVENT_NS_ATTRIBUTE (1U << 8) +#define NVME_ASYNC_EVENT_FW_ACTIVATE (1U << 9) +#define NVME_ASYNC_EVENT_TELEMETRY_LOG (1U << 10) +#define NVME_ASYNC_EVENT_ASYM_NS_ACC (1U << 11) +#define NVME_ASYNC_EVENT_PRED_LAT_DELTA (1U << 12) +#define NVME_ASYNC_EVENT_LBA_STATUS (1U << 13) +#define NVME_ASYNC_EVENT_ENDURANCE_DELTA (1U << 14) +#define NVME_ASYNC_EVENT_NVM_SHUTDOWN (1U << 15) +#define NVME_ASYNC_EVENT_ZONE_DELTA (1U << 27) +#define NVME_ASYNC_EVENT_DISCOVERY_DELTA (1U << 31) /* slot for current FW */ #define NVME_FIRMWARE_PAGE_AFI_SLOT_SHIFT (0)