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

Update LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN to 0x200 #401

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

mxu9
Copy link
Contributor

@mxu9 mxu9 commented Dec 19, 2024

Fix #400

LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN defines the portion length
when reading the TSP_CONFIGURATION from device. Its value was 0x40
and was too small.

Size of a request is limitted by LIBPCIDOE_SPDM_VENDOR_MAX_MESSAGE_SIZE
which value is 0x400 (Refer to pci_doe_spdm_vendor_send_receive_data_ex).
So it is reasonable to set the value of
LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN as 0x200.

@mxu9 mxu9 marked this pull request as draft December 19, 2024 02:46
@mxu9 mxu9 changed the title Update LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN to 0x400 Update LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN to 0x200 Dec 19, 2024
@mxu9 mxu9 marked this pull request as ready for review December 19, 2024 03:37
@jyao1 jyao1 merged commit bf01160 into DMTF:main Dec 19, 2024
32 checks passed
LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN defines the portion length
when reading the TSP_CONFIGURATION from device. Its value was 0x40
and was too small.

Size of a request is limitted by LIBPCIDOE_SPDM_VENDOR_MAX_MESSAGE_SIZE
which value is 0x400 (Refer to pci_doe_spdm_vendor_send_receive_data_ex).
So it is reasonable to set the value of
LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN as 0x200.

Signed-off-by: Min M Xu <[email protected]>
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.

LIBCXLTSP_CONFIGURATION_REPORT_PORTION_LEN(0x40) is too small
2 participants