From nobody Tue Jun 13 03:43:21 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 4QgDt14Vw5z4cg9t; Tue, 13 Jun 2023 03:43:21 +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 4QgDt144YXz4Mf4; Tue, 13 Jun 2023 03:43:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686627801; 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=oob++FFC+j59MaE3Da3vFuZJb9QjFYZfV/Cdx3xptD4=; b=c4++7vA/eInfeoAtInv51DwVCBuI1SOPKJUc2hqO2mZDyoIDvVyhdZuduMCi1lvVTzij45 NicPpy3Q4bsJ+tPFU3j4v2yFhBV0gcH17l8KxpKmvpuuc9VK+BonY2Rd7nMnAbyDoL3iAg cNhfXNfPDhlwARbFH68F/iqprnHmkQQdOO7+4BWygMt8OoUT/SxvOOCnvYF9ZUZlfsWT+z qVt5YymWpvLSGLX+SArKqYvjCp4d5j9dXmKLoFvV/oKoXITNxzZzknSuoCgs8XeldgIjZH JdEQWeJPBDPm64Qt73LTJQitEAqUn6qYZ19uSFxs6ed435npnPUWqA9AGPxPqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686627801; 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=oob++FFC+j59MaE3Da3vFuZJb9QjFYZfV/Cdx3xptD4=; b=cBPZe7bxYuqiZnsem/Z2Wgs7qhhJba0cRsr00rRdORgT3ES+lOySeWq4ljRAhpLetWPAEr xvuWD9I+duSWQW6dwInFwZoy1Sd73jAe+4qSUdmgsOGljo7V8rEB3/9Oet7otmizofXWjj EyGZNzfEnELAvsN584Z8jCLGSStc2DWreHVexccwGURw9suMxXY+HbVKag1vFshOXpHULO Xcy4xvDssKo+lkoQVuqq20a8TP7jWbUJRz+pZp9eFaX2NV8Wrk14YNmGQvT4X3HAQJoaSG BF05aFGspuCRkpxOOMv0Aj5c+ySFwwTuC4EKUFHSOgbyzfpxqM1LCTeH8Bm+0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686627801; a=rsa-sha256; cv=none; b=bpQyeijOK5p4XEyr5FlsXnpA0ZpsgtYwo3RCo9VjuRxPZUjc9F0NiQf0Z+vEvaQlnxW90B SqKrgcMHU58XEZv10rPHCN6eVq5ahtSFSCsgXn1mW6B72zaiYjtG16qfG7D6KOfmQk0zxY qNNqr9/3h5O4xrTz/D9nsKa8xf405zdvD/7noLVHIGAFSZDLboAkquf6rkNOGDUEvZj33b JkXXfkrcZ0sB+nqWSsBl6WvQuqT/8tw/OoXc9xUENsa+8b6jcnRnYdJnuRW9Ehvy8PuxeY hjtN0O04st+BtcsEpUrNK6x3hKLYvpoCYPW0vGwpxzBWzr6nRrM0VLo4RPXvaw== 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 4QgDt138nwz16Dg; Tue, 13 Jun 2023 03:43:21 +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 35D3hL5L066561; Tue, 13 Jun 2023 03:43:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35D3hLMO066560; Tue, 13 Jun 2023 03:43:21 GMT (envelope-from git) Date: Tue, 13 Jun 2023 03:43:21 GMT Message-Id: <202306130343.35D3hLMO066560@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: bdc81eeda05d - main - nvme: Switch to nda by default 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bdc81eeda05d3af80254f6aac95759b07f13f2b7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=bdc81eeda05d3af80254f6aac95759b07f13f2b7 commit bdc81eeda05d3af80254f6aac95759b07f13f2b7 Author: Warner Losh AuthorDate: 2023-06-13 03:37:10 +0000 Commit: Warner Losh CommitDate: 2023-06-13 03:41:06 +0000 nvme: Switch to nda by default We already run nda by default on all the !x86 architectures. Switch the default to nda. nda created nvd compatibility links by default, so this should be a nop. If this causes problems for your application, set hw.nvme.use_nvd=1 in your loader.conf. Sponsored by: Netflix --- UPDATING | 8 ++++++++ sys/dev/nvme/nvme_sysctl.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/UPDATING b/UPDATING index caad098c683d..c75de2d66338 100644 --- a/UPDATING +++ b/UPDATING @@ -27,6 +27,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW: world, or to merely disable the most expensive debugging functionality at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20230612: + Belatedly switch the default nvme block device on x86 from nvd to nda. + nda created nvd compatibility links by default, so this should be a + nop. If this causes problems for your application, set hw.nvme.use_nvd=1 + in your loader.conf or add `options NVME_USE_NVD=1` to your kernel + config. The default has been nda on all non-x86 platforms for some time + now. If you need to fall back, please email imp@freebsd.org about why. + 20230422: Remove portsnap(8). Users are encouraged to obtain the ports tree using git instead. diff --git a/sys/dev/nvme/nvme_sysctl.c b/sys/dev/nvme/nvme_sysctl.c index d6011bc34951..c238c86af5a2 100644 --- a/sys/dev/nvme/nvme_sysctl.c +++ b/sys/dev/nvme/nvme_sysctl.c @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); #include "nvme_private.h" #ifndef NVME_USE_NVD -#define NVME_USE_NVD 1 +#define NVME_USE_NVD 0 #endif int nvme_use_nvd = NVME_USE_NVD;