Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2019 19:19:23 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351824 - head/sbin/nvmecontrol
Message-ID:  <201909041919.x84JJN0A018833@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Sep  4 19:19:23 2019
New Revision: 351824
URL: https://svnweb.freebsd.org/changeset/base/351824

Log:
  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.

Modified:
  head/sbin/nvmecontrol/identify_ext.c

Modified: head/sbin/nvmecontrol/identify_ext.c
==============================================================================
--- head/sbin/nvmecontrol/identify_ext.c	Wed Sep  4 18:32:11 2019	(r351823)
+++ head/sbin/nvmecontrol/identify_ext.c	Wed Sep  4 19:19:23 2019	(r351824)
@@ -192,6 +192,8 @@ nvme_print_controller(struct nvme_controller_data *cda
 		    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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909041919.x84JJN0A018833>