From nobody Wed Sep 6 21:56:50 2023 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 4Rgx6W1VFLz4sJMN; Wed, 6 Sep 2023 21:56:51 +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 4Rgx6W0bfnz3btR; Wed, 6 Sep 2023 21:56:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694037411; 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=igFWaOSNZc3WpQ+qZ1wu4VO1MhcoQ6tODAiptrQuWYM=; b=NFrxdsPxRlGaZ2fcoIBH2sHhGJ34EjCda9juP3uPxwp6CT8SpgQb3DEa4vMdwhiinsNSm0 1gBiEg2zb7ELeeFhvRnuYJgsXb/NV/heaU6eKfdscBvnrZXVWwwhYIvWb84UKv3CzGHymf TRz/Tc7Y/N1+U6Bqk6/Nhe/TBtWJMJ6FzgzrLj4BpE120B/Y8lz05HBd3DgSZ3QdNg9AUd 3DUt8EAPnaRDS5zIiXDcICg48TKtjqzlrqGsZ9GWUj6ySF+NS/6Q8lqw1QVN5EXQvE+2Lx ZhismxT+9WulwAnPlH/8th4sKzX1adxECe/qKTSepMGm9IcEKxasZrJ176YOLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694037411; a=rsa-sha256; cv=none; b=yswunDKgOoyILLBOlnLomDH7S5PhkDY2NKQ9kw+DprteUke38PRyiHVIUcwSvLd3oFdF5X d36Y6pDOitqD0ySznCfNQ9Jiv+Geu5tc7Wksc+wKdnwAaQSEGhsTBAjnySIcXj35Z4h0Fx QZUUrIzkxg/5ZOWigNr4ONKbowub6IU0A4tqxRa2e8djwXfI3ZN6vt0Pbw9/nRw/d6bzp2 MepcQL66Iej7nDpruAMewCzqpp2xZS+CTc4thX0KWFHQ3g1CaJS9PzRrKb42qFVusAu6Gk qaTC1Prui938PtyQ24dLJbyTWGMA2JUU/rahAMigpgkZp+stKyx3tTN+8XadyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694037411; 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=igFWaOSNZc3WpQ+qZ1wu4VO1MhcoQ6tODAiptrQuWYM=; b=kcvymTOzR6TTFQgd7YDbxRxVIJqWoQFtgSzftIkqW3teLhIR5BuF6YHS/LHglGQq0tv88w xu2Clm/k1MmCYjyAwj1zq4cnNcnCa25U92jch3cGAPKeAxjRSxmjd6MU3XwnioepWwiRRH f1lz7UX8kmu4ED3yzs8ooBegtBD759AGM5KiOdNgZZEFNa9KTsvd+XOcBqYqlmsoC69eip bg0XuOmAE7uDeYKYdH3lIEeYrLu2cpCK0M3//CpGdyrFyozw8Kwy3f60maSXdjYKUbXGgh HEjfOwCNAoQP2GlTxCTkofSHSvBKZgPJdVckknsXMrMTAQ6v5fhl/vHF3vNSjw== 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 4Rgx6V6nmlzYvd; Wed, 6 Sep 2023 21:56:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 386Luowi023236; Wed, 6 Sep 2023 21:56:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 386LuoKG023233; Wed, 6 Sep 2023 21:56:50 GMT (envelope-from git) Date: Wed, 6 Sep 2023 21:56:50 GMT Message-Id: <202309062156.386LuoKG023233@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: a11b9463ff58 - stable/13 - bhyve: Store the FreeBSD OUI in little-endian in the controller data 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a11b9463ff582a3ec95d85ddecf930c5a84bee2a Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a11b9463ff582a3ec95d85ddecf930c5a84bee2a commit a11b9463ff582a3ec95d85ddecf930c5a84bee2a Author: John Baldwin AuthorDate: 2023-08-17 18:30:50 +0000 Commit: John Baldwin CommitDate: 2023-09-06 21:56:10 +0000 bhyve: Store the FreeBSD OUI in little-endian in the controller data Section 7.10.3 of the NVME 1.4b specification states that the IEEE OUI in the identify controller structure is stored in little-endian format (unlike the embedded OUI in EUI64 identifiers). Reviewed by: corvink, chuck, imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D41487 (cherry picked from commit 18974bd616ae141c8721b8b01eb634670f5ccd56) --- usr.sbin/bhyve/pci_nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index 2a4ce332fd1a..073b37d4d6d9 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -527,9 +527,9 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc) cd->rab = 4; /* FreeBSD OUI */ - cd->ieee[0] = 0x58; + cd->ieee[0] = 0xfc; cd->ieee[1] = 0x9c; - cd->ieee[2] = 0xfc; + cd->ieee[2] = 0x58; cd->mic = 0;