-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8319716: RISC-V: Add SHA-2 #16562
8319716: RISC-V: Add SHA-2 #16562
Conversation
👋 Welcome back rehn! A progress list of the required criteria for merging this PR into |
/author set @luhenry |
/contributor add @robehn |
@robehn |
@robehn |
Webrevs
|
We still have https://bugs.openjdk.org/browse/JDK-8295382 and https://bugs.openjdk.org/browse/JDK-8295383, some of them should be marked as duplicates, or this PR need to go under 8295382&8295383 issues |
Ah, I missed them, thanks, closed as dups. |
Hi, I am told today that a riscv64 version of sha256/512 for openssl has been added two weeks ago [1][2] [1] https://github.com/openssl/openssl/blob/master/crypto/sha/asm/sha256-riscv64-zvkb-zvknha_or_zvknhb.pl |
AFIACT the are pretty much the same, except for constants handling in 256. Compare these 512 round 2s:
I suggest we create a new enhancement for preload constants in 256 multi-block and ship this. |
@robehn : Thanks for checking & comparing those two versions. I think I can take a more closer look tomorrow or maybe next week. |
No rush at all, rdp1 is 4 weeks away :) And we also need to sort out what our future plans is for describing the arch. |
An update, not all comments addressed yet. |
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.
Thanks for updating.
Please check the initial comments below.
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.
Some other comments
Passes compiler/intrinsics/sha/ with: This part:
Seems not to be implemented in qemu as only using m1 passes also, since almost all instructions are fixed width (the few that aren't splatting is okay). Please consider :) |
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.
Hi, Thanks for the update. Having another look :-)
Ran the tests (compiler/intrinsics/sha/) with -XX:+PrintFlagsFinal and verified the MaxVectorSize was 16/32. Thanks, Robbin |
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.
Thanks for updating, looks good to me.
@robehn This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 18 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
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.
Two minor comments remain, otherwise looks good.
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.
LGTM. Thanks for your patience.
My fault screwing up the vlen 128 testing.... Thank you! |
Thanks! |
/integrate |
Going to push as commit 4cf131a.
Your commit was automatically rebased without conflicts. |
Hi, please consider.
Main author is @luhenry, I only fixed some minor things and tested it.
Such as:
test/hotspot/jtreg/compiler/intrinsics/sha/
test/jdk/java/security/MessageDigest/
test/jdk/jdk/security/
tier1
And still running some test.
Progress
Issue
Reviewers
Contributors
<rehn@openjdk.org>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16562/head:pull/16562
$ git checkout pull/16562
Update a local copy of the PR:
$ git checkout pull/16562
$ git pull https://git.openjdk.org/jdk.git pull/16562/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16562
View PR using the GUI difftool:
$ git pr show -t 16562
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16562.diff
Webrev
Link to Webrev Comment