-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme: Add support for Autonomous Power State Transition
APST is an optional NVMe power-saving feature that allows devices to automatically enter higher non-operational power states after a certain amount of idle time, reducing the controller's overall power consumption. The feature configuration involves filling out the transition table, which then needs to be sent to the controller in a data buffer. Each table entry corresponds to one of the available power states and contains two values: idle transition power state (ITPS) and idle time prior to transition (ITPT). The first specifies the next power state the controller should switch to, and the second specifies the amount of idle time required before that switch. Two sysctls are added: apst_itpt_factor for ITPT calculation (as an integer by which the total latency will be multiplied to get a suitable transition flow), and apst_max_latency for cutting off higher states with unwanted latency (by specifying a maximum value in microseconds). The default behavior is to keep the vendor settings. Signed-off-by: Alexey Sukhoguzov <[email protected]>
- Loading branch information
Alexey Sukhoguzov
committed
Oct 1, 2024
1 parent
865297c
commit fb27132
Showing
5 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters