]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: Report the NVMe 1.4 NPWG, NPWA, NPDG, NPDA and NOWS fields
authorBart Van Assche <bvanassche@acm.org>
Tue, 18 Jun 2019 16:13:52 +0000 (09:13 -0700)
committerBart Van Assche <bvanassche@acm.org>
Wed, 19 Jun 2019 17:28:15 +0000 (10:28 -0700)
commit35a773db97a80f63c9efe97c51747dc808d306f4
treec4ce9d47514e7c374741d4613b98f2ad1bf14cae
parent1940258cbbc6839308f5e768f3151636ab777bec
nvme-cli: Report the NVMe 1.4 NPWG, NPWA, NPDG, NPDA and NOWS fields

From the NVMe 1.4 paragraph about NSFEAT:

"Bit 4 if set to 1: indicates that the fields NPWG, NPWA, NPDG, NPDA, and
NOWS are defined for this namespace and should be used by the host for I/O
optimization; and NOWS defined for this namespace shall adhere to Optimal
Write Size field setting defined in NVM Sets Attributes Entry (refer to
Figure 251) for the NVM Set with which this namespace is associated."

Hence only report these fields if bit 4 in NSFEAT has been set.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
nvme-print.c