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

Clarify SBI IPI and RFENCE error codes #156

Closed

Conversation

jamestiotio
Copy link
Contributor

@jamestiotio jamestiotio commented Jul 24, 2024

Add SBI_ERR_INVALID_PARAM as a possible error code to IPI and RFENCE functions which take in hart_mask and hart_mask_base input parameters. While this is specified in the Binary Encoding chapter, explicitly including it in the function descriptions would make it harder to miss. SBI_ERR_INVALID_PARAM is also specified for invalid asid and vmid parameters in some RFENCE functions.

Furthermore, also add SBI_ERR_FAILED as the default error code for any other unspecified or unknown failure reasons.

CC: @atishp04 @jones-drew

@atishp04
Copy link
Collaborator

lgtm.

@jones-drew
Copy link
Contributor

I agree with this. SBI_ERR_INVALID_PARAM can also be specified to apply to asids and vmids for the rfence functions, which the binary encoding section doesn't consider. Also, adding SBI_ERR_FAILED "The reset request failed for unspecified or unknown other reasons." gives SBI implementations a catchall if they have cases not considered by the spec. I recommend we add that as well.

@avpatel
Copy link
Contributor

avpatel commented Jul 25, 2024

Please update the changelog for 3.0-rc1 as part of this PR

Add SBI_ERR_INVALID_PARAM as a possible error code to IPI and RFENCE
functions which take in `hart_mask` and `hart_mask_base` input
parameters. While this is specified in the Binary Encoding chapter,
explicitly including it in the function descriptions would make it
harder to miss. SBI_ERR_INVALID_PARAM is also specified for invalid
`asid` and `vmid` parameters in some RFENCE functions.

Furthermore, also add SBI_ERR_FAILED as the default error code for any
other unspecified or unknown failure reasons.

Signed-off-by: James Raphael Tiovalen <[email protected]>
@jamestiotio jamestiotio changed the title Include SBI_ERR_INVALID_PARAM in functions with hart list parameters Clarify SBI IPI and RFENCE error codes Jul 25, 2024
@jamestiotio
Copy link
Contributor Author

I have incorporated @jones-drew's suggestions and updated the changelog as requested by @avpatel in the latest commit.

@atishp04
Copy link
Collaborator

atishp04 commented Sep 9, 2024

Resolved the conflict with change log and did a manual merge.

@atishp04 atishp04 closed this Sep 9, 2024
@jamestiotio jamestiotio deleted the hart-list-params branch September 10, 2024 12:44
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.

4 participants