Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: Update id-ctrl field based on NVMe 2.1 spec #912

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sc108-lee
Copy link
Contributor

Boot Partition Capabilities (BPCAP)
NVM Subsystem Shutdown Latency (NSSL)
Power Loss Signaling Information (PLSI)
Controller Reachability Capabilities (CRCAP)
Key Per I/O Capabilities (KPIOC)
Maximum Processing Time for Firmware Activation Without Reset (MPTFAWR)

src/nvme/types.h Outdated Show resolved Hide resolved
* @NVME_CTRL_BACAP_SFBPWPS: Set Features Boot Partition Write Protection Support
*/
enum nvme_id_ctrl_bpcap {
NVME_CTRL_BACAP_RPMBBPWPS = 3 << 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these be _MASK and _SHIFT fields so we use the NVME_GET and NVME_SET macros?

And then include actual values for various RPMBBPWPS

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, please introduce the _MASK and _SHIFT fields.

Boot Partition Capabilities (BPCAP)
NVM Subsystem Shutdown Latency (NSSL)
Power Loss Signaling Information (PLSI)
Controller Reachability Capabilities (CRCAP)
Key Per I/O Capabilities (KPIOC)
Maximum Processing Time for Firmware Activation Without Reset (MPTFAWR)
Command Quiesce Time (CQT)
Recommended Host-Initiated Refresh Interval (RHIRI)
Host-Initiated Refresh Time (HIRT)

Signed-off-by: Steven Seungcheol Lee <[email protected]>
* not supported by this controller.
* 10b - RPMB Boot Partition Write Protection is
* supported by this controller.
* 11b - Reserved
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you also introduce enums for these? Thanks!

@igaw
Copy link
Collaborator

igaw commented Dec 2, 2024

looks good, just add the mask/shift things and also the missing bit field definition, so that all is consistent. 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.

3 participants