]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: add support for persistent event log page
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Mon, 11 Jan 2021 08:17:45 +0000 (13:47 +0530)
committerKeith Busch <kbusch@kernel.org>
Mon, 11 Jan 2021 16:55:05 +0000 (09:55 -0700)
commit6879ac41fcc62c468452a8c3e18c60c41e7eac62
tree4ff6398812f97d53316e3abf296a32b7f7316fe4
parent274a49759c8cbdd991253455c64136e0ea73cb6b
nvme: add support for persistent event log page

This is to add support for LID = 0x0D, Persistent Event log page,
this log page contains information about significant events not
specific to a particular command. The information in this log page
shall be retained across power cycles and resets. For More details
see NVM Express 1.4 Spec. Section 5.14.1.13 Persistent Event Log
(Log Identifier 0Dh)

Change nvme get log to read the whole log page interms of 4096 bytes.
Adding LSP argument in nvme get log fuction and change this across
the nvme get log function wherever has been used with NVME_NO_LOG_LSP.

This Adds support for the persistent event types:
01h SMART / Health Log Snapshot
02h Firmware Commit
03h Timestamp Change
04h Power-on or Reset
05h NVM Subsystem Hardware Error
06h Change Namespace
07h Format NVM Start
08h Format NVM Completion
09h Sanitize Start
0Ah Sanitize Completion
0Dh Thermal Excursion

Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
Co-Authored-By: Karthik Balan <karthik.b82@samsung.com>
Co-Authored-By: Steven Seungcheol Lee <sc108.lee@samsung.com>
22 files changed:
Documentation/nvme-persistent-event-log.1 [new file with mode: 0644]
Documentation/nvme-persistent-event-log.html [new file with mode: 0644]
Documentation/nvme-persistent-event-log.txt [new file with mode: 0644]
completions/_nvme
completions/bash-nvme-completion.sh
linux/nvme.h
nvme-builtin.h
nvme-ioctl.c
nvme-ioctl.h
nvme-print.c
nvme-print.h
nvme.c
plugins/dera/dera-nvme.c
plugins/intel/intel-nvme.c
plugins/memblaze/memblaze-nvme.c
plugins/micron/micron-nvme.c
plugins/scaleflux/sfx-nvme.c
plugins/seagate/seagate-nvme.c
plugins/shannon/shannon-nvme.c
plugins/toshiba/toshiba-nvme.c
plugins/wdc/wdc-nvme.c
plugins/zns/zns.c