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

Cleanup csrlib #2923

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Cleanup csrlib #2923

merged 1 commit into from
Dec 7, 2024

Conversation

steven-bellock
Copy link
Contributor

Fix #2908.

This was tested with all four combination of values for LIBSPDM_SET_CERT_CSR_PARAMS and LIBSPDM_ENABLE_CAPABILITY_CSR_CAP_EX.

Fix DMTF#2908.

Signed-off-by: Steven Bellock <[email protected]>
@steven-bellock steven-bellock marked this pull request as ready for review December 3, 2024 22:45
@steven-bellock steven-bellock requested a review from jyao1 as a code owner December 3, 2024 22:45
@steven-bellock
Copy link
Contributor Author

@jyao1 I updated the libspdm_gen_csr_ex combination table so that it only includes combinations that libspdm will pass to the Integrator. Please review carefully.

@rw8896 to review as well.

@@ -327,7 +335,9 @@ bool libspdm_gen_csr_ex(
if (*req_csr_tracking_tag == 0) {
if (available_csr_tracking_tag == 0) {
/*no available tracking tag*/
*req_csr_tracking_tag = 0xFF;
#if LIBSPDM_SET_CERT_CSR_PARAMS
*is_busy = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment above said "no available tracking tag" so I am confused how does this imply "device is busy".
Would you help clarify this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That comes from

If the Responder requires a reset to process a GET_CSR request, but does not have any available CSRTrackingTags, it shall respond with an ERROR message of ErrorCode=Busy.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, thanks!

Copy link
Contributor

@rw8896 rw8896 left a comment

Choose a reason for hiding this comment

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

The change looks good to me.

@steven-bellock steven-bellock added the enhancement New feature or request label Dec 5, 2024
@jyao1
Copy link
Member

jyao1 commented Dec 6, 2024

I am OK with that.

@jyao1 jyao1 merged commit 453c1ef into DMTF:main Dec 7, 2024
97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up csrlib
3 participants