Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2020 00:32:18 +0000 (UTC)
From:      Chuck Tuffli <chuck@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362764 - head/usr.sbin/bhyve
Message-ID:  <202006290032.05T0WIXT050096@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: chuck
Date: Mon Jun 29 00:32:18 2020
New Revision: 362764
URL: https://svnweb.freebsd.org/changeset/base/362764

Log:
  bhyve: fix NVMe Get Features, Predictable Latency
  
  If the Predictable Latency Mode is not supported, NVMe Controllers must
  return Invalid Field in Command status for the Get Features command
  with IDs:
   - Predictable Latency Mode Config
   - Predictable Latency Mode Window
  
  Fixes UNH Tests 3.6
  
  Tested by:	Jason Tubnor
  MFC after:	2 weeks
  Differential Revision: https://reviews.freebsd.org/D24899

Modified:
  head/usr.sbin/bhyve/pci_nvme.c

Modified: head/usr.sbin/bhyve/pci_nvme.c
==============================================================================
--- head/usr.sbin/bhyve/pci_nvme.c	Mon Jun 29 00:32:15 2020	(r362763)
+++ head/usr.sbin/bhyve/pci_nvme.c	Mon Jun 29 00:32:18 2020	(r362764)
@@ -618,6 +618,10 @@ pci_nvme_init_features(struct pci_nvme_softc *sc)
 	sc->feat[NVME_FEAT_NUMBER_OF_QUEUES].set = nvme_feature_num_queues;
 	sc->feat[NVME_FEAT_INTERRUPT_VECTOR_CONFIGURATION].set =
 	    nvme_feature_iv_config;
+	sc->feat[NVME_FEAT_PREDICTABLE_LATENCY_MODE_CONFIG].get =
+	    nvme_feature_invalid_cb;
+	sc->feat[NVME_FEAT_PREDICTABLE_LATENCY_MODE_WINDOW].get =
+	    nvme_feature_invalid_cb;
 }
 
 static void



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