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

ioctl,types: telemetry log update based NVMe v2.1 #922

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

sc108-lee
Copy link
Contributor

MCDA added for Telemetry Host-Initiated Log creation

Log member variable added
Host-Initiated Log - THS
Controller-Initiated Log - TCS

@@ -1548,7 +1564,7 @@ static inline int nvme_get_log_create_telemetry_host(int fd,
.nsid = NVME_NSID_NONE,
.csi = NVME_CSI_NVM,
.lsi = NVME_LOG_LSI_NONE,
.lsp = NVME_LOG_TELEM_HOST_LSP_CREATE,
.lsp = (__u8)((mcda << 1) | NVME_LOG_TELEM_HOST_LSP_CREATE),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume this is the thing which 5.1.12.1.8 Telemetry Host-Initiated (Log Page Identifier 07h) talks about:

If the MCDAS bit (refer to Figure 215) is set to ‘1’ and a Get Log Page command with the Create Telemetry
Host-Initiated Data bit is set to ‘1’, then the maximum data area to be created in the Telemetry Host-Initiated
log page shall be less than or equal to the MCDA field in the Log Specific Parameter field in Command
Dword 10 (refer to Figure 213).

Is my understanding correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes it is

@igaw
Copy link
Collaborator

igaw commented Dec 2, 2024

looks good, just a bit confused how this api works.

@sc108-lee sc108-lee force-pushed the telemetry branch 2 times, most recently from 095560a to d09ca0f Compare December 3, 2024 06:40
MCDA added for Telemetry Host-Initiated Log creation

Log member variable added
Host-Initiated Log - THS
Controller-Initiated Log - TCS

Signed-off-by: Steven Seungcheol Lee <[email protected]>
@sc108-lee
Copy link
Contributor Author

Actually I was considering api problem, same as you.
So I updated the commit as I first modified.

remain : old function to call new function
new : nvme_get_log_create_telemetry_host_mcda include mcda argument.

@igaw igaw merged commit 80775de into linux-nvme:master Dec 3, 2024
15 checks passed
@igaw
Copy link
Collaborator

igaw commented Dec 3, 2024

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