-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
JDK-8283865: riscv: Break down -XX:+UseRVB into seperate options for each bitmanip extension #8032
Conversation
👋 Welcome back fjiang! A progress list of the required criteria for merging this PR into |
@feilongjiang The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
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.
Changes looks good to me. (Not a JDK Reviewer)
hotspot/jdk tier1 tests on QEMU with options |
Sorry, I probably misunderstand the background and the consequences here. This patch effectively disables B-extensions unless user specifically enables the subextensions with It looks to me we need to postpone this patch until we can detect Zba and Zbb availability automatically. |
Let me try to clarify: This patch effectively disables B-extensions unless user specifically enables the subextensions with +UseZba and +UseZbb? -- That's correct. This is also true even before this change. Is there a hardware that supports B-extension only partially? I.e. do we care about this, at expense of disabling the B-extension by default? -- No. Actually, we can only test this with QEMU. It looks to me we need to postpone this patch until we can detect Zba and Zbb availability automatically. -- In fact this patch fixes two things here:
|
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.
All right, thanks for explanations. This PR makes sense then.
@feilongjiang 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 11 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@RealFYang, @shipilev) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@RealFYang @shipilev -- Thanks for the review! The Windows failure is some unrelated environment setup problem, which is not caused by this patch. P.S.: I have opened another issue (JDK-8284196) to keep tracking the status of feature detection for RISC-V bitmanip ISA-extensions. |
/integrate |
@feilongjiang |
/sponsor |
Going to push as commit 060a188.
Your commit was automatically rebased without conflicts. |
@RealFYang @feilongjiang Pushed as commit 060a188. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Currently openjdk riscv supports RISC-V bitmanip extension as a bundle while spec provides four individual extensions: Zb[abcs][1].
According to the spec, we need to break down
UseRVB
into two individual optionsUseZba
andUseZbb
to enable or disable Zba and Zbb respectively (openjdk riscv only supports Zba and Zbb for now).Since multi-letter extensions representation in the ISA bitmap is still not determined [2][3], availability for those extensions could not be queried from HWCAP. Feature detection of Zba and Zbb was removed temporarily.
Linux RISCV64 release hotspot/jdk tier1 tests are passed on QEMU with following options:
[1]: https://github.com/riscv/riscv-bitmanip/releases/download/1.0.0/bitmanip-1.0.0-38-g865e7a7.pdf
[2]: http://lists.infradead.org/pipermail/linux-riscv/2021-November/010250.html
[3]: http://lists.infradead.org/pipermail/linux-riscv/2021-November/010252.html
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8032/head:pull/8032
$ git checkout pull/8032
Update a local copy of the PR:
$ git checkout pull/8032
$ git pull https://git.openjdk.java.net/jdk pull/8032/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 8032
View PR using the GUI difftool:
$ git pr show -t 8032
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8032.diff