Skip to content

feat: add remaining feature commands - #3984

Open
ikegami-t wants to merge 6 commits into
linux-nvme:masterfrom
ikegami-t:feat-remain-cmds
Open

feat: add remaining feature commands#3984
ikegami-t wants to merge 6 commits into
linux-nvme:masterfrom
ikegami-t:feat-remain-cmds

Conversation

@ikegami-t

Copy link
Copy Markdown
Contributor

Almost implementation suggested by Copilot.

@ikegami-t

Copy link
Copy Markdown
Contributor Author

@ikegami-t
ikegami-t force-pushed the feat-remain-cmds branch 2 times, most recently from 8a7c6fe to a3d9e9f Compare September 6, 2026 15:46
@ikegami-t

Copy link
Copy Markdown
Contributor Author

Still considering to add async-event-fonf command fields options instead of the result later.

Comment thread libnvme/src/nvme/nvme-types-base.h Outdated
NVME_FEAT_RATE_LIMITING_TGT_MASK = 0xff,
};

// IRQ Coalescing Feature - Shift and Mask definitions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you add kdoc documentation here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As commented below the definitions are not necessary then deleted. Thank you.

Comment thread libnvme/src/nvme/nvme-types-base.h Outdated
NVME_FEAT_IRQ_COAL_THR_MASK = 0xff,
NVME_FEAT_IRQ_COAL_TIME_SHIFT = 8,
NVME_FEAT_IRQ_COAL_TIME_MASK = 0xff,
};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And the GET macros are missing for these.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

BTW, the nvme-cli-ai project can help here. See the nvme-spec skill for this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry already existed NVME_FEAT_IRQC_***_SHIFT/MACRO definitions, etc. then just deleted the definitions as duplicated. Thanks for the information I will do use it in future.

Almost implementation suggested by Copilot.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Commit the update-completions changes.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since called set features command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Add the feature print getters to replace open coded field decoding.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Also fix to add to the ANSAN field print missed.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This is to combine json and stdout strings duplicated.
Also add json TTHRY field output missed.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
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