diff options
| author | Keith Busch <kbusch@kernel.org> | 2024-11-01 23:48:47 +0300 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2024-11-11 20:49:49 +0300 |
| commit | 5fd075cdaf3649000677d960fd9e45c08081b7e0 (patch) | |
| tree | 4c16748263d967f81ba24bfc3c64409fb480f295 /include/linux | |
| parent | 266b652c65b44fb2ccfa17cdb54ce2ef723deb0a (diff) | |
| download | linux-5fd075cdaf3649000677d960fd9e45c08081b7e0.tar.xz | |
nvmet: implement rotational media information log
Most of the information is stubbed. Supporting these commands is a
requirement for supporting rotational media.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvme.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 6d5b4299a1b2..99cf0ee73714 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -642,6 +642,18 @@ struct nvme_endurance_group_log { __u8 rsvd192[320]; }; +struct nvme_rotational_media_log { + __le16 endgid; + __le16 numa; + __le16 nrs; + __u8 rsvd6[2]; + __le32 spinc; + __le32 fspinc; + __le32 ldc; + __le32 fldc; + __u8 rsvd24[488]; +}; + struct nvme_smart_log { __u8 critical_warning; __u8 temperature[2]; @@ -1281,6 +1293,7 @@ enum { NVME_LOG_ENDURANCE_GROUP = 0x09, NVME_LOG_ANA = 0x0c, NVME_LOG_FEATURES = 0x12, + NVME_LOG_RMI = 0x16, NVME_LOG_DISC = 0x70, NVME_LOG_RESERVATION = 0x80, NVME_FWACT_REPL = (0 << 3), @@ -1435,7 +1448,7 @@ struct nvme_get_log_page_command { __u8 lsp; /* upper 4 bits reserved */ __le16 numdl; __le16 numdu; - __u16 rsvd11; + __le16 lsi; union { struct { __le32 lpol; |
