All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-cli: Implement printing get NOPSC feature
@ 2018-06-13 21:21 Revanth Rajashekar
  2018-06-14 22:37 ` Keith Busch
  0 siblings, 1 reply; 2+ messages in thread
From: Revanth Rajashekar @ 2018-06-13 21:21 UTC (permalink / raw)


Signed-off-by: Revanth Rajashekar <revanth.rajashekar at intel.com>
---
 linux/nvme.h | 1 +
 nvme-print.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/linux/nvme.h b/linux/nvme.h
index 01b4e6d..e75a4b0 100644
--- a/linux/nvme.h
+++ b/linux/nvme.h
@@ -857,6 +857,7 @@ enum {
 	NVME_FEAT_HOST_MEM_BUF	= 0x0d,
 	NVME_FEAT_TIMESTAMP	= 0x0e,
 	NVME_FEAT_KATO		= 0x0f,
+	NVME_FEAT_NOPSC		= 0X11,
 	NVME_FEAT_RRL		= 0x12,
 	NVME_FEAT_PLM_CONFIG	= 0x13,
 	NVME_FEAT_PLM_WINDOW	= 0x14,
diff --git a/nvme-print.c b/nvme-print.c
index cdaf1cb..adc7b3a 100644
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -1443,6 +1443,7 @@ char *nvme_feature_to_string(int feature)
 	case NVME_FEAT_AUTO_PST:	return "Autonomous Power State Transition";
 	case NVME_FEAT_HOST_MEM_BUF:	return "Host Memory Buffer";
 	case NVME_FEAT_KATO:		return "Keep Alive Timer";
+	case NVME_FEAT_NOPSC:		return "Non-Operational Power State Config";
 	case NVME_FEAT_RRL:		return "Read Recovery Level";
 	case NVME_FEAT_PLM_CONFIG:	return "Predicatable Latency Mode Config";
 	case NVME_FEAT_PLM_WINDOW:	return "Predicatable Latency Mode Window";
@@ -1807,6 +1808,9 @@ void nvme_feature_show_fields(__u32 fid, unsigned int result, unsigned char *buf
 	case NVME_FEAT_RESV_PERSIST:
 		printf("\tPersist Through Power Loss (PTPL): %s\n", (result & 0x00000001) ? "True":"False");
 		break;
+	case NVME_FEAT_NOPSC:
+		printf("\tNon-Operational Power State Permissive Mode Enable (NOPPME): %s\n", (result & 1) ? "True" : "False");
+		break;
 	}
 }
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] nvme-cli: Implement printing get NOPSC feature
  2018-06-13 21:21 [PATCH] nvme-cli: Implement printing get NOPSC feature Revanth Rajashekar
@ 2018-06-14 22:37 ` Keith Busch
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2018-06-14 22:37 UTC (permalink / raw)


I'm not sure what order you intended for me to apply these in. It looks
like all 4 were developed indepenedently and they all clash with each
other. It looked pretty straight forward to resolve, so I manually
applied all 4 and pushed. Please have a look.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-14 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-13 21:21 [PATCH] nvme-cli: Implement printing get NOPSC feature Revanth Rajashekar
2018-06-14 22:37 ` Keith Busch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.