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

nvme: check MD size with PI size when PRACT set to 1 #2413

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

francispravin5
Copy link
Contributor

As per NVM Command Set Specification, Rev 1.0d, Sec-5.2.2 PRACT Bit: "If PRACT bit is set to 1 and Metadata size equals to the Protection Information size, the protection information is stripped or inserted by the controller."
Currently NVMe supports 8 and 16 byte size of Protection Information. So, use pi_size instead of 8 byte.

As per NVM Command Set Specification, Rev 1.0d, Sec-5.2.2 PRACT Bit:
"If PRACT bit is set to 1 and Metadata size equals to the Protection
Information size, the protection information is stripped or inserted
by the controller."
Currently NVMe supports 8 and 16 byte size of Protection Information.
So, use pi_size instead of 8 byte.

Signed-off-by: Francis Pravin <[email protected]>
Reviewed-by: Steven Seungcheol Lee <[email protected]>
@igaw igaw merged commit e0a8a5a into linux-nvme:master Jul 12, 2024
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Jul 12, 2024

Thanks!

@francispravin5 francispravin5 deleted the check_pi_size branch September 30, 2024 12:43
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