-
Notifications
You must be signed in to change notification settings - Fork 790
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
[hmac, sw] Revert hash stop hang workaround #25594
[hmac, sw] Revert hash stop hang workaround #25594
Conversation
In line with the RTL fix in lowRISC#24771 for the hash stop hang bug described in lowRISC#24767, this commit reverts four commits that implemented a software workaround for the issue. This workaround and its corresponding documentation is now obsolete. Reverted commits: - e869152 lowRISC#25070 - 2b072c4 lowRISC#25012 - 7f32449 lowRISC#24966 - f591bea lowRISC#24944 Signed-off-by: Andrea Caforio <[email protected]> Co-authored-by: Martin Velay <[email protected]>
sw/device/lib/crypto/drivers/hmac.c
Outdated
* TODO(#23191): It might be beneficial to have a timeout value for the polling. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing a plain revert of the other commits is fine and the approach is good, it's easier to review this.
What is not ideal is that it means to re-introduce this TODO here which got resolved by the workaround. Would it be possible to do a separate commit or even PR (whatever you prefer @andrea-caforio ) to resolve this? You can take inspiration from the reverted commits on how to do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @vogelpi for the review and catching this issue. I reinstantiated the polling timeout implementation in a separate commit as to not spam the PR list with code that has already been review before.
The previously reverted commit f591bea (later refined in e869152) contained a desirable timeout implementation for the HMAC idle polling (see lowRISC#23191). This commit reinstantiates it. Signed-off-by: Andrea Caforio <[email protected]> Co-authored-by: Martin Velay <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks @andrea-caforio !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, thanks @andrea-caforio for taking care of it !
In line with the RTL fix in #24771 for the hash stop hang bug described in #24767, this commit reverts four commits that implemented a software workaround for the issue and only keeps the idle polling timeout implementation from #24944. This workaround and its corresponding documentation is now obsolete.
Reverted commits: