diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-10-08 16:00:12 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-10-08 16:00:12 +0000 |
commit | 64e2a5a8e6e7ec29b095128042e02877af474bfa (patch) | |
tree | f9ff055d457112f01ee8b03b6d0e4f1c3be8e20b /sys/dev/nvme/nvme_private.h | |
parent | 9cdb85e5c10e1d1e964b04d57d17b35b32e55c0c (diff) | |
download | FreeBSD-src-64e2a5a8e6e7ec29b095128042e02877af474bfa.zip FreeBSD-src-64e2a5a8e6e7ec29b095128042e02877af474bfa.tar.gz |
Log and then disable asynchronous notification of persistent events after
they occur.
This prevents repeated notifications of the same event.
Status of these events may be viewed at any time by viewing the
SMART/Health Info Page using nvmecontrol, whether or not asynchronous
events notifications for those events are enabled. This log page can
be viewed using:
nvmecontrol logpage -p 2 <ctrlr id>
Future enhancements may re-enable these notifications on a periodic basis
so that if the notified condition persists, it will continue to be logged.
Sponsored by: Intel
Reviewed by: carl
Approved by: re (hrs)
MFC after: 1 week
Diffstat (limited to 'sys/dev/nvme/nvme_private.h')
-rw-r--r-- | sys/dev/nvme/nvme_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h index 1c2333e..f6bd041 100644 --- a/sys/dev/nvme/nvme_private.h +++ b/sys/dev/nvme/nvme_private.h @@ -322,6 +322,9 @@ struct nvme_controller { struct cdev *cdev; + /** bit mask of warning types currently enabled for async events */ + union nvme_critical_warning_state async_event_config; + uint32_t num_aers; struct nvme_async_event_request aer[NVME_MAX_ASYNC_EVENTS]; |