svn commit: r356530 - stable/12/sbin/nvmecontrol

Alexander Motin mav at FreeBSD.org
Thu Jan 9 00:36:29 UTC 2020


Author: mav
Date: Thu Jan  9 00:36:28 2020
New Revision: 356530
URL: https://svnweb.freebsd.org/changeset/base/356530

Log:
  MFC r351824, r356392: 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:
  stable/12/sbin/nvmecontrol/identify_ext.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/nvmecontrol/identify_ext.c
==============================================================================
--- stable/12/sbin/nvmecontrol/identify_ext.c	Wed Jan  8 23:39:23 2020	(r356529)
+++ stable/12/sbin/nvmecontrol/identify_ext.c	Thu Jan  9 00:36:28 2020	(r356530)
@@ -192,6 +192,10 @@ nvme_print_controller(struct nvme_controller_data *cda
 		    uint128_to_str(to128(cdata->untncap.unvmcap),
 		    cbuf, sizeof(cbuf)));
 	}
+	printf("Host Buffer Preferred Size:  %llu bytes\n",
+	    (long long unsigned)cdata->hmpre * 4096);
+	printf("Host Buffer Minimum Size:    %llu bytes\n",
+	    (long long unsigned)cdata->hmmin * 4096);
 
 	printf("\n");
 	printf("NVM Command Set Attributes\n");


More information about the svn-src-all mailing list