Skip to content

feat: add power-limit command#3077

Merged
igaw merged 2 commits intolinux-nvme:masterfrom
ikegami-t:feat-power-limit
Feb 10, 2026
Merged

feat: add power-limit command#3077
igaw merged 2 commits intolinux-nvme:masterfrom
ikegami-t:feat-power-limit

Conversation

@ikegami-t
Copy link
Contributor

Add feat_get() uidx parameter also for the command.

nvme-print.c Outdated
{
switch (pls) {
case NVME_PSD_PS_NOT_REPORTED:
return "Reserved";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"not reported" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No actually the values 00b and 11b are described as reserved by the NVMe base specification revision 2.3 as below so seems the definition name should be also NVME_PSD_PS_RESERVED changed or deleted.
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just reconfirmed as the definitiopn added by the commit: e830543 and still the power state descriptor data structure (active) power scale desribed as below so fixed as mentioned. (Also for the power limit exactly the definitions should be separated.)
psd-ds-aps

Add feat_get() uidx parameter also for the command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This is for Power Threshold feature to get and set.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
@ikegami-t
Copy link
Contributor Author

Just fixed as mentioned.

@igaw igaw merged commit 935878c into linux-nvme:master Feb 10, 2026
20 checks passed
@igaw
Copy link
Collaborator

igaw commented Feb 10, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants