Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2020 17:12:49 +0000 (UTC)
From:      Chuck Tuffli <chuck@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r368637 - stable/12/usr.sbin/bhyve
Message-ID:  <202012141712.0BEHCn7A069888@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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