git: b863d38437af - main - nvme.4: Canonicalize SYNOPSIS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Aug 2026 21:03:53 UTC
The branch main has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=b863d38437af11c18a88de656404af8cefa35e63
commit b863d38437af11c18a88de656404af8cefa35e63
Author: Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2026-08-24 20:23:31 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-08-24 21:02:51 +0000
nvme.4: Canonicalize SYNOPSIS
MFC after: 3 days
---
share/man/man4/nvme.4 | 56 ++++++++++++++++++++++++++++++++++-----------------
1 file changed, 38 insertions(+), 18 deletions(-)
diff --git a/share/man/man4/nvme.4 b/share/man/man4/nvme.4
index 76960a7e06c8..5391862f6669 100644
--- a/share/man/man4/nvme.4
+++ b/share/man/man4/nvme.4
@@ -31,38 +31,49 @@
.\"
.\" Author: Jim Harris <jimharris@FreeBSD.org>
.\"
-.Dd June 6, 2020
+.Dd August 23, 2026
.Dt NVME 4
.Os
.Sh NAME
.Nm nvme
.Nd NVM Express core driver
.Sh SYNOPSIS
-To compile this driver into your kernel,
-place the following line in your kernel configuration file:
-.Bd -ragged -offset indent
-.Cd "device nvme"
-.Ed
+.Cd device nvme
+.Cd options NVME_USE_NVD=0
+.Cd options NVME_2X_RESET
.Pp
-Or, to load the driver as a module at boot, place the following line in
+In
.Xr loader.conf 5 :
-.Bd -literal -offset indent
-nvme_load="YES"
-.Ed
+.Cd hw.nvme.per_cpu_io_queues= Ns Ar 0
+.Cd hw.nvme.min_cpus_per_ioq= Ns Aq Ar X
+.Cd hw.nvme.force_intx= Ns Ar 1
+.Cd hw.nvme.hmb_max
+.Cd hw.nvme.apst_enable= Ns Ar 1
+.Cd hw.nvme.apst_data
+.Cd hw.nvme.use_nvd= Ns Ar 0
+.Cd nvme_load="YES"
.Pp
-Most users will also want to enable
-.Xr nvd 4
+In
+.Xr loader.conf 5
or
-.Xr nda 4
-to expose NVM Express namespaces as disk devices which can be
-partitioned.
-Note that in NVM Express terms, a namespace is roughly equivalent to a
-SCSI LUN.
+.Xr sysctl.conf 5 :
+.Cd dev.nvme.0.num_cpus_per_ioq
+.Cd dev.nvme.0.int_coal_time
+.Cd dev.nvme.0.int_coal_threshold
+.Cd dev.nvme.0.ioq0.num_entries
+.Cd dev.nvme.0.ioq0.num_tr
+.Cd dev.nvme.0.ioq0.num_prp_list
+.Cd dev.nvme.0.ioq0.sq_head
+.Cd dev.nvme.0.ioq0.sq_tail
+.Cd dev.nvme.0.ioq0.cq_head
+.Cd dev.nvme.0.ioq0.num_cmds
+.Cd dev.nvme.0.ioq0.dump_debug
.Sh DESCRIPTION
The
.Nm
driver provides support for NVM Express (NVMe) controllers, such as:
-.Bl -bullet
+.Pp
+.Bl -bullet -compact
.It
Hardware initialization
.It
@@ -87,6 +98,15 @@ the format
.Pa /dev/nvmeXnsY .
Note that the NVM Express specification starts numbering namespaces at 1,
not 0, and this driver follows that convention.
+.Pp
+Most users will also want to enable
+.Xr nvd 4
+or
+.Xr nda 4
+to expose NVM Express namespaces as disk devices which can be
+partitioned.
+Note that in NVM Express terms, a namespace is roughly equivalent to a
+SCSI LUN.
.Sh CONFIGURATION
By default,
.Nm