From nobody Mon Feb 21 21:58:03 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 46F8419EBA01; Mon, 21 Feb 2022 21:58:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2blJ1p6xz4gj3; Mon, 21 Feb 2022 21:58:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645480684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5I+SWOQPL5VWyA8qReuCawhoL4PAaEFd6j3lwCLlSRU=; b=ly/RNlUfgg0dY+ftV6WHotGJOOkxv5ShLwt8PVjW7kQgfaTKNeMGtrvlhHeI8YCzqh9kv9 gPq6jtGAzCs/h6pzgKuDiXktfOqECpDg59cS0FmmJrnj/fdRJoP7MidtD5sQHd2DGaTlz3 WO9BCfB8lZxirODqpmbGtG2PcD/8doPqGkkAxrSm41jdY20Q+hxZ6LA8v9uOPA+GrlofVm 7VslnOeBYWNWMM5QAUV6eDbW6O1gVtQvo1oLV/Qz6xUYJA4CFA/qJ2vL3aDZWP3dI7cQJ6 pR/npRxFDOy7uhQo8DmFkUE5akwohJDGQFfs875iG3kTxAVEtka6x+taTf6+Dg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 93E1A18325; Mon, 21 Feb 2022 21:58:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21LLw3V4052262; Mon, 21 Feb 2022 21:58:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21LLw32m052261; Mon, 21 Feb 2022 21:58:03 GMT (envelope-from git) Date: Mon, 21 Feb 2022 21:58:03 GMT Message-Id: <202202212158.21LLw32m052261@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Chuck Tuffli Subject: git: 3286533a1cee - stable/13 - bhyve nvme: Fix reported VWC value List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: chuck X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3286533a1ceeb5d9283bff05b4b4faafcda2705d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645480684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5I+SWOQPL5VWyA8qReuCawhoL4PAaEFd6j3lwCLlSRU=; b=SRZ302zLL69uPAOU1syQjvh9Pv1N3IpwnVa5ngxka3PzNo7AfiAW3VPErwoyPVeT41RhHh j8UYFwwZ5T4jc+S509NaogJVO4KAKpFcmMP6n0FLgYbMPj889vr1g12L+IKBT8eCcPI5Z7 f/DDlasJAUGq1BBfvxCgSjk3fvbunlxTdQxHE1N8OCDl6mzEnr1pAe0CEkzbwE2SIpQqtt nruqpuyiOcU+MAppDikUtNmDxZg4RNZZt3m/Qj4WcTz48+yV/i2xwR9cYv7ovM/XY2UVh+ lUAcVZYEcfl9KWFGWY0puEtxOOhVS4NxP6+GRZ6IO54ios+Zfu38eQwIu4TaFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645480684; a=rsa-sha256; cv=none; b=inxSPE0z0NRneZxolYTqIqSZp7oqOV6eaK6ZMPXIZbWgpo3l1vUo7iQgAtPpAka96etW4q rmem4jOocx1yiiXQg7DRrTOEyBj27yDl+QgEES1wGu6zTdJ6z+vg1pXcg/cbTvNha+Uq+/ l6Ge/DAcLNAGOFLT6dT8GELRqh+i30L2sMP6Udox2fhXGOT9sLVAH/XvA6CYdohQ7dAMco EEJQDjuzP200G8N+E5SNDg/wRCGnPFMtt3YYmkujxb6ROiyGPg4XU88cfFEhKwUSiRZDYj sUi5bO62f1opDvR+RNyX/BPcOQgiUk5/XCtWAPK5QwIFYX4Rd2Q2otJ5qR1Nvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by chuck: URL: https://cgit.FreeBSD.org/src/commit/?id=3286533a1ceeb5d9283bff05b4b4faafcda2705d commit 3286533a1ceeb5d9283bff05b4b4faafcda2705d Author: Chuck Tuffli AuthorDate: 2022-01-30 07:10:42 +0000 Commit: Chuck Tuffli CommitDate: 2022-02-22 03:28:07 +0000 bhyve nvme: Fix reported VWC value v1.4 and later NVMe Controllers report "Flush all Namespaces" support differently. Fixes UNH IOL 16.0 Test 2.6, Case 3 (cherry picked from commit ff5ed0fac420d3441aac436d884d926d91c79b3c) --- usr.sbin/bhyve/pci_nvme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index 66ca3dcdf38e..cba5dfe293ca 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -561,6 +561,8 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc) cd->fna = NVME_CTRLR_DATA_FNA_FORMAT_ALL_MASK << NVME_CTRLR_DATA_FNA_FORMAT_ALL_SHIFT; + cd->vwc = NVME_CTRLR_DATA_VWC_ALL_NO << NVME_CTRLR_DATA_VWC_ALL_SHIFT; + cd->power_state[0].mp = 10; }