]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvme: Only reset once on attach.
authorWarner Losh <imp@FreeBSD.org>
Fri, 1 Oct 2021 17:09:34 +0000 (11:09 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 1 Oct 2021 17:09:34 +0000 (11:09 -0600)
commit4b3da659bf62b0f5306b5acee9add41b84361498
treec6ffd4e5dde83fdecee77731d4b93b44949b5ca3
parente5e26e4a24a1142e02a9b477877e13ed0c194f36
nvme: Only reset once on attach.

The FreeBSD nvme driver has reset the nvme controller twice on attach to
address a theoretical issue assuring the hardware is in a known
state. However, exierence has shown the second reset is unnecessary and
increases the time to boot. Eliminate the second reset. Should there be
a situation when you need a second reset (for buggy or at least somewhat
out of the mainstream hardware), the hardware option NVME_2X_RESET will
restore the old behavior. Document this in nvme(4).

If there's any trouble at all with this, I'll add a sysctl tunable to
control it.

Sponsored by: Netflix
Reviewed by: cperciva, mav
Differential Revision: https://reviews.freebsd.org/D32241
share/man/man4/nvme.4
sys/conf/options
sys/dev/nvme/nvme_ctrlr.c