Page MenuHomeFreeBSD

nvmecontrol: document power command
ClosedPublic

Authored by imp on Jul 9 2021, 6:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 22 2024, 10:31 PM
Unknown Object (File)
Mar 22 2024, 10:31 PM
Unknown Object (File)
Mar 22 2024, 10:31 PM
Unknown Object (File)
Mar 22 2024, 10:31 PM
Unknown Object (File)
Mar 22 2024, 10:31 PM
Unknown Object (File)
Mar 22 2024, 10:31 PM
Unknown Object (File)
Mar 9 2024, 11:58 AM
Unknown Object (File)
Feb 14 2024, 4:36 AM
Subscribers

Details

Summary

The description of the power command is missing. While the synopsis is present,
there's no explanation. Add one.

PR: 237866
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jul 9 2021, 6:12 PM
imp added reviewers: phk, chuck, mav.

I haven't used the power setting myself, but it looks mostly good for me.

sbin/nvmecontrol/nvmecontrol.8
500

I think here should be specified standard version, otherwise section number makes no sense.

This revision is now accepted and ready to land.Jul 9 2021, 6:24 PM
sbin/nvmecontrol/nvmecontrol.8
500

In the 2.0 specification, this is section 8.15.3, and this functionality doesn't exist prior to the 1.2 version.

I don't feel strongly about how to change this, but some suggestions are:

  • Keep the section name but drop the number
  • Drop this sentence
  • Drop this sentence and modify the opening of the section to something like

Set the NVM Subsystem Workload hint for automatic power mode control.

501

Subsystem misspelled

imp marked an inline comment as done.Jul 9 2021, 7:46 PM
imp added inline comments.
sbin/nvmecontrol/nvmecontrol.8
500

Tweaked the wording. It was the same in 1.2 and 1.4 so I thought it would be safe. I used

Please see the "NVM Subsystem Workloads" section of the relevant NVM Express standard for details.

which feels better. The standard is long, so we should refer to some sub-part of it.

Review comments addressed, will commit later today if no objections.

This revision now requires review to proceed.Jul 9 2021, 7:48 PM
This revision is now accepted and ready to land.Jul 9 2021, 7:50 PM

A little more word smithing. Will hold off til Monday committing.

This revision now requires review to proceed.Jul 9 2021, 7:55 PM
sbin/nvmecontrol/nvmecontrol.8
477

Extra words here. Maybe

List all power modes the controller supports.

501

This sounds good to me

This revision is now accepted and ready to land.Jul 9 2021, 8:57 PM
This revision was automatically updated to reflect the committed changes.