svn commit: r368637 - stable/12/usr.sbin/bhyve

Chuck Tuffli <[email protected]> Mon, 14 Dec 2020 17:12:49 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <[email protected]>
Author: chuck
Date: Mon Dec 14 17:12:48 2020
New Revision: 368637
URL: https://svnweb.freebsd.org/changeset/base/368637

Log:
  MFC r364602: bhyve: NVMe set nominal health values

Modified:
  stable/12/usr.sbin/bhyve/pci_nvme.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/bhyve/pci_nvme.c
==============================================================================
--- stable/12/usr.sbin/bhyve/pci_nvme.c	Mon Dec 14 14:54:20 2020	(r368636)
+++ stable/12/usr.sbin/bhyve/pci_nvme.c	Mon Dec 14 17:12:48 2020	(r368637)
@@ -604,6 +604,11 @@ pci_nvme_init_logpages(struct pci_nvme_softc *sc)
 	/* Set read/write remainder to round up according to spec */
 	sc->read_dunits_remainder = 999;
 	sc->write_dunits_remainder = 999;
+
+	/* Set nominal Health values checked by implementations */
+	sc->health_log.temperature = 310;
+	sc->health_log.available_spare = 100;
+	sc->health_log.available_spare_threshold = 10;
 }
 
 static void
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"