Skip to contentSkip to conversation

nvme-cli: add prints for new HMB identify fields of TP 4002

PATCH New Minwoo Im 3 participants 3 messages Nov 30, 2017 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 nvme-cli: add prints for new HMB identify fields of TP 4002

Add prints to __show_nvme_id_ctrl() for fields which were added in TP 4002 which is "HMB Enhancements".

Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
 nvme-print.c | 2 ++
 1 file changed, 2 insertions(+)
nvme-print.c +2 -0
index db11dd7..1808405 100644
@@ -860,6 +860,8 @@ void __show_nvme_id_ctrl(struct nvme_id_ctrl *ctrl, unsigned int mode, void (*ve
 	printf("sanicap : %#x\n", le32_to_cpu(ctrl->sanicap));
 	if (human)
 		show_nvme_id_ctrl_sanicap(ctrl->sanicap);
+	printf("hmminds : %d\n", le32_to_cpu(ctrl->hmminds));
+	printf("hmmaxd  : %d\n", le16_to_cpu(ctrl->hmmaxd));
 	printf("sqes    : %#x\n", ctrl->sqes);
 	if (human)
 		show_nvme_id_ctrl_sqes(ctrl->sqes);
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 nvme-cli: add prints for new HMB identify fields of TP 4002

Looks good,

Reviewed-by Christoph Hellwig <hch at lst.de>
Applied
#2 lore raw

PATCH 1/1 nvme-cli: add prints for new HMB identify fields of TP 4002

In reply to Minwoo Im
Quoted 4 lines · Minwoo Im

Add prints to __show_nvme_id_ctrl() for fields which were added in TP 4002 which is "HMB Enhancements".

Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>

Thanks, applied.