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)
Dec 20 2023, 3:59 AM
Unknown Object (File)
Oct 11 2023, 4:01 AM
Unknown Object (File)
Oct 11 2023, 4:01 AM
Unknown Object (File)
Sep 30 2023, 1:41 PM
Unknown Object (File)
Aug 7 2023, 5:32 PM
Unknown Object (File)
Aug 7 2023, 5:30 PM
Unknown Object (File)
Aug 7 2023, 5:29 PM
Unknown Object (File)
Aug 7 2023, 5:29 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.