From 10bb6d358ddfb61b464e0c2dd33fe3b5bb0fcf42 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 4 Sep 2019 19:19:23 +0000 Subject: [PATCH] Report the Host Buffer Memory minimum and preferred sizes. The Host Buffer feature (NVMe 1.4 section 89) allows for the NVMe card request the host provide it buffer for lookaside tables and maybe other things. Report the card's minimum and preferred sizes with nvmecontrol/camcontrol identify. --- sbin/nvmecontrol/identify_ext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/nvmecontrol/identify_ext.c b/sbin/nvmecontrol/identify_ext.c index 9680e9fc25b2..176564e974ee 100644 --- a/sbin/nvmecontrol/identify_ext.c +++ b/sbin/nvmecontrol/identify_ext.c @@ -192,6 +192,8 @@ nvme_print_controller(struct nvme_controller_data *cdata) uint128_to_str(to128(cdata->untncap.unvmcap), cbuf, sizeof(cbuf))); } + printf("Host Buffer Preferred Size: %d bytes\n", cdata->hmpre); + printf("Host Buffer Minimum Size: %d bytes\n", cdata->hmmin); printf("\n"); printf("NVM Command Set Attributes\n");