Skip to content

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

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
sc108-lee:telemetry
Dec 3, 2024
Merged

ioctl,types: telemetry log update based NVMe v2.1#922
igaw merged 1 commit intolinux-nvme:masterfrom
sc108-lee:telemetry

Conversation

@sc108-lee
Copy link
Copy Markdown
Contributor

MCDA added for Telemetry Host-Initiated Log creation

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

Comment thread src/nvme/ioctl.h
.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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 <sc108.lee@samsung.com>
@sc108-lee
Copy link
Copy Markdown
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
@igaw
Copy link
Copy Markdown
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