Skip to content

feat: Add power measurement feature support.#3132

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
Micron-TPG-OSS:feat-power-measurement-squashed
Mar 5, 2026
Merged

feat: Add power measurement feature support.#3132
igaw merged 1 commit intolinux-nvme:masterfrom
Micron-TPG-OSS:feat-power-measurement-squashed

Conversation

@jimmunn
Copy link
Contributor

@jimmunn jimmunn commented Mar 5, 2026

Added "power-meas" feature.
Fixed bug in power threshold printing code.

Added "power-meas" feature.
Fixed bug in power threshold printing code.

Signed-off-by: Jim Munn <jlmunn@micron.com>
nvme_show_result("Set %s: 0x%04x (%s)", power_meas_feat, cdw11,
sv ? "Save" : "Not save");
nvme_feature_show_fields(fid, cdw11, NULL);
}
Copy link
Collaborator

@igaw igaw Mar 5, 2026

Choose a reason for hiding this comment

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

we recenetly changed how print error. instead of this snippet, it's possible to use something like this:

	err = nvme_identify_ctrl(hdl, ctrl);
	if (err) {
		nvme_show_err("identify controller", err);
		return err;
	}

	nvme_show_id_ctrl(ctrl, flags, vs);

looks like feat-nvme.c needs this update too...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's do this change in a different patch though.

@ikegami-t do want to update feat-nvme.c accordingly? Just asking because you have been working most of the time on this file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure will do it later. Thank you.

@igaw igaw merged commit a333a9e into linux-nvme:master Mar 5, 2026
19 checks passed
@igaw
Copy link
Collaborator

igaw commented Mar 5, 2026

Thanks!

@ikegami-t
Copy link
Contributor

Thanks for the fix. Just FYI: looks it was better to be done the threshold fix by a separated patch since not related to the power measurement feature support itself.

@jimmunn
Copy link
Contributor Author

jimmunn commented Mar 5, 2026

@ikegami-t , I was debating with myself rather I should split this up and have the bug fix separately. I will do that next time.

@ikegami-t
Copy link
Contributor

Thank you. Noted.

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.

3 participants