From nobody Thu Mar 07 01:39:17 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 4TqsR95n6dz5CLnb; Thu, 7 Mar 2024 01:39:17 +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 4TqsR93dhVz4vd3; Thu, 7 Mar 2024 01:39:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709775557; 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=KB+mZm5Cca/v8k3zXzRHObgYIdmfKFsK4PhOYeGbJ3c=; b=WKKCmEp75cbJGJa8dfk0Jzsl5+E0VSeEz7xgTQuB1Q5k2C9KhrFNbbotPAunfPHTNE0aaw vniwrd8yqpu/bzgRy4ej95zHOX1E0ZPmeR6ksReF55CMCbj39VRL2iaz3Ot1XwdCfwcbx1 ZQMJaup5NgH5l+zWaW7BHq5MatUHXpS/fofVUAznWX/yLvpAndAqdZhD1Lai/welll3QEb ywCixE53pXOZZY8+nfN1rsI8mWkvw9eEek8SnevGIvOC/8sYr9E2szREi4WRofTbprIYyr riIURqf1tl+RKQZ7nVB6InHYId9lCRXFh1PLdBIrGb6FwFjPxIdC3ND1rStSlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709775557; a=rsa-sha256; cv=none; b=B/kMuE+3qpbwNAum9QJwgGHGD/CotPdjZQxfUykw4Nj3Q07Y+nZ8D7SDaUwj0fNxM11vEM H6J8CKqT8IjqIu8+YwErj3C7W+2nD7cBvUOYHv91Iri+hsdXeTRsmVGd+ZNroHam6buBqb DPalGhNnkPmao3SKqpg8EJLMgPOQVkMjkhATxL/0o444lg3S9P29KFuJ45ooG3sAEAYKtp pIpK/SHMq/gNBR2UeH5mChE+dXzw3qAN0gYey8qpEUaYq2lPzSVHeqBLA6LWghYaR8usM9 XRPOmLpEyktnC3q6bmaGUx0otntaJfhBYvKqLxRKkl6OVhz2gGhkRPEJSccd6Q== 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=1709775557; 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=KB+mZm5Cca/v8k3zXzRHObgYIdmfKFsK4PhOYeGbJ3c=; b=x1wyrBzGCyxnOoE3pzR2xmvnIwpMCgCv8Lu5HD2/9HG4F5Vm3KpqEIDvHUlqjs/l0amB3R 2dMKF70cTIXIU4VuZ/unmDAZMT2Mq8Pcg5bbgJdN5FtAQB2xTcG9Rm2YuqqLJZxj2d7dU5 bQCUIux7GAWf2rG0Uk962rYjJr/BOK40rAXeXj5xGiVYSAcC/rVuBzNqI9Pi9koQ0Y3vtM 3lmCpyDyYVml2D981SShNEbVmhx85yDVPHItBf+g+efVeLVo6oy4ecQXSYHkTpSSzWWJ+s eHHwPXQO3GHeCT4zZPLaLVxK1JWh98478joPVj0WaT2/rhAAKXF5X48LmUOzEw== 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 4TqsR93GDgzDrF; Thu, 7 Mar 2024 01:39:17 +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 4271dHNv057241; Thu, 7 Mar 2024 01:39:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4271dHQF057238; Thu, 7 Mar 2024 01:39:17 GMT (envelope-from git) Date: Thu, 7 Mar 2024 01:39:17 GMT Message-Id: <202403070139.4271dHQF057238@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: 6a3877a0e2b5 - main - devd: Document the nvme devd 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 6a3877a0e2b5c1345f967981a5c9c249d4a44e2e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6a3877a0e2b5c1345f967981a5c9c249d4a44e2e commit 6a3877a0e2b5c1345f967981a5c9c249d4a44e2e Author: Warner Losh AuthorDate: 2024-03-07 01:22:39 +0000 Commit: Warner Losh CommitDate: 2024-03-07 01:38:59 +0000 devd: Document the nvme devd events Nvme informs devd of smart and reset controller events. Document them. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44212 --- sbin/devd/devd.conf.5 | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/sbin/devd/devd.conf.5 b/sbin/devd/devd.conf.5 index c9c421090ab9..cf2e7dc5534a 100644 --- a/sbin/devd/devd.conf.5 +++ b/sbin/devd/devd.conf.5 @@ -38,7 +38,7 @@ .\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS .\" SOFTWARE. .\" -.Dd December 1, 2022 +.Dd March 6, 2024 .Dt DEVD.CONF 5 .Os .Sh NAME @@ -481,6 +481,34 @@ Notification that the system has woken from the suspended state. .Pp .Bl -column "System" "Subsystem" "1234567" -compact .Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" +.It Li nvme Ta Li controller Ta Li SMART_ERROR Ta +A SMART Critical Warning State change has happened. +$state has a hex bitmask of the bits that changed, as defined +in the NVMe Standard for Critical Warning field of log page 2 +.Dq SMART / Health Information Log : +.Bl -column "Bit Value" "Meaning" -compact +.Sy "Bit Value" Ta Sy "Meaning" +.It 0x1 Ta Spare capacity below threshold +.It 0x2 Ta Temperature outside acceptable range +.It 0x4 Ta Reliability of media degraded +.It 0x8 Ta Media placed into read-only mode +.It 0x10 Ta Volatime memory backup failure +.It 0x20 Ta Persistent memrory read-only or degraded +.El +.It Li nvme Ta Li controller Ta Li RESET Ta +A controller reset event has happened. +$event is one of +.Dq start , +.Dq success , +and +.Dq timed_out +representing the start of a controller reset, the successful completion of a +controller reset, and a timeout while waiting for the controller to reset +respectively. +.El +.Pp +.Bl -column "System" "Subsystem" "1234567" -compact +.Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" .It Li PMU Ta Ta Ta Notification of events from various types of Power Management Units. .It Li PMU Ta Li "AC" Ta Ta