Details
-
Task
-
Resolution: Fixed
-
P4
-
None
-
b17
-
riscv
-
linux
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8317488 | 21.0.2 | Ludovic Henry | P4 | Resolved | Fixed | b02 |
JDK-8319892 | 17.0.10 | Robbin Ehn | P4 | Resolved | Fixed | b03 |
Description
Some dev boards only support RVV version 0.7, while the OpenJDK only supports RVV version 1.0. These two versions are not compatible with each other. Given the V bit is set through HWCAP on some custom kernels, regardless of the version, it can lead to generating V instructions on boards that don't support RVV version 1.0 (ex: Sipeed LicheePi or VisionFive 2), leading to a SIGILL.
That is an acceptable workaround as only Linux Kernel v6.5+ supports V, and that version already support hwprobe anyway
That is an acceptable workaround as only Linux Kernel v6.5+ supports V, and that version already support hwprobe anyway
Attachments
Issue Links
- backported by
-
JDK-8317488 RISC-V: Disable detection of V through HWCAP
-
- Resolved
-
-
JDK-8319892 RISC-V: Disable detection of V through HWCAP
-
- Resolved
-
- relates to
-
JDK-8309258 RISC-V: Add riscv_hwprobe syscall
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/b5065594
-
Commit openjdk/jdk21u/69af26c4
-
Commit openjdk/jdk/311c7461
-
Review openjdk/jdk17u-dev/1942
-
Review openjdk/jdk21u/203
-
Review openjdk/jdk/15898
(4 links to)