Skip to content

kernel_if: factor out CSR-dependent status handling #142

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

Merged
merged 5 commits into from
Jun 9, 2022
Merged

kernel_if: factor out CSR-dependent status handling #142

merged 5 commits into from
Jun 9, 2022

Conversation

pcolberg
Copy link
Contributor

@pcolberg pcolberg commented Jun 4, 2022

This factors out the CSR-dependent status handling of pending kernel invocations into separate functions, prerequisite to #103.

The refactoring is cosmetic, with the exception of when kern->last_kern_update is updated. Before, when the CSR done bit was set to signal that an invocation was finished but the finish counter was read as zero, kern->last_kern_update would still be updated. Now, kern->last_kern_update is not updated when the finish counter is read as zero. In practice, this change should not have any effect too, since the finish counter should never be zero when the CSR done bit is set; however the runtime does not check whether the finish counter is indeed nonzero.

@pcolberg pcolberg added the enhancement New feature or request label Jun 4, 2022
@pcolberg pcolberg added this to the 2022.3 milestone Jun 4, 2022
@pcolberg pcolberg self-assigned this Jun 4, 2022
@pcolberg pcolberg requested review from sophimao and zibaiwan June 8, 2022 23:59
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

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

Thanks Peter! LGTM!

@pcolberg pcolberg merged commit 2b68b90 into intel:main Jun 9, 2022
@pcolberg pcolberg deleted the update_status branch June 9, 2022 14:53
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.

3 participants