Page MenuHomeFreeBSD

Provide new tunable hw.nvme.verbose_cmd_dump
ClosedPublic

Authored by imp on Jul 18 2019, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 10, 8:14 AM
Unknown Object (File)
Sat, Jan 25, 8:04 PM
Unknown Object (File)
Fri, Jan 24, 7:02 PM
Unknown Object (File)
Fri, Jan 24, 7:00 PM
Unknown Object (File)
Jan 17 2025, 3:42 PM
Unknown Object (File)
Jan 9 2025, 8:24 PM
Unknown Object (File)
Dec 12 2024, 9:09 PM
Unknown Object (File)
Nov 21 2024, 3:11 PM
Subscribers

Details

Summary

The nvme drive dumps only the most relevant details about a command when it
fails. However, there are times this is not sufficient (such as debugging weird
issues for a new drive with a vendor). Setting hw.nvme.verbose_cmd_dump=1
in loader.conf will enable more complete debugging information about each
command that fails.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 18 2019, 9:34 PM
cem added a subscriber: cem.
cem added inline comments.
sys/dev/nvme/nvme.c
59 โ†—(On Diff #59896)

Maybe a CTLTUN sysctl instead of just a tunable?

And maybe bool?

sys/dev/nvme/nvme.c
59 โ†—(On Diff #59896)

bool and sysctl and tunable mix poorly, but less badly than before....
CTLTUN wouldn't be bad here, though.
this driver also isn't very good about bool too, since it mixes int and boolean_t in spots and uses boolean_t as a real bool in others. I'd like not not muddy those waters.

This revision now requires review to proceed.Jul 19 2019, 12:08 AM

Hmmm, arc updated this rather than created a new one. A new one isn't worth creating for something this small...

This revision is now accepted and ready to land.Jul 19 2019, 12:15 AM
This revision was automatically updated to reflect the committed changes.