Add support for a few Zc* extensions, Zcmop and Zimop
Status from this message: This series was applied to riscv/linux.git (for-next)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest16 patches 5 repliesApplied 16/16
- v616 patches 0 repliesSuperseded
- v516 patches 19 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 11 patches | 15 replies | Superseded | |
| v3 | 11 patches | 3 replies | Superseded | |
| v2 | 12 patches | 18 replies | Superseded | |
| v1 | 10 patches | 13 replies | Superseded |
Changes in v7 from the cover letter
- Rebased on riscv/for-next to fix conflicts
Patches in v7 All 16 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | dt-bindings: riscv: add Zimop ISA extension descriptionDocumentation/ | +5 | 1 reply | Applied |
| 2/16 | riscv: add ISA extension parsing for Zimoparch/ arch/ | +2 | 0 replies | Applied |
| 3/16 | riscv: hwprobe: export Zimop ISA extensionDocumentation/ arch/ arch/ | +6 | 0 replies | Applied |
| 4/16 | RISC-V: KVM: Allow Zimop extension for Guest/VMarch/ arch/ | +3 | 0 replies | Applied |
| 5/16 | KVM: riscv: selftests: Add Zimop extension to get-reg-list testtools/ | +4 | 0 replies | Applied |
| 6/16 | dt-bindings: riscv: add Zca, Zcf, Zcd and Zcb ISA extension descriptionDocumentation/ | +78 | 0 replies | Applied |
| 7/16 | riscv: add ISA extensions validation callbackarch/ arch/ | +136 | 0 replies | Applied |
| 8/16 | riscv: add ISA parsing for Zca, Zcf, Zcd and Zcbarch/ arch/ | +58 | 3 replies | Applied |
| 9/16 | riscv: hwprobe: export Zca, Zcf, Zcd and Zcb ISA extensionsDocumentation/ arch/ arch/ | +28 | 0 replies | Applied |
| 10/16 | RISC-V: KVM: Allow Zca, Zcf, Zcd and Zcb extensions for Guest/VMarch/ arch/ | +12 | 0 replies | Applied |
| 11/16 | KVM: riscv: selftests: Add some Zc* extensions to get-reg-list testtools/ | +16 | 0 replies | Applied |
| 12/16 | dt-bindings: riscv: add Zcmop ISA extension descriptionDocumentation/ | +12 | 0 replies | Applied |
| 13/16 | riscv: add ISA extension parsing for Zcmoparch/ arch/ | +2 | 0 replies | Applied |
| 14/16 | riscv: hwprobe: export Zcmop ISA extensionDocumentation/ arch/ arch/ | +6 | 1 reply | Applied |
| 15/16 | RISC-V: KVM: Allow Zcmop extension for Guest/VMarch/ arch/ | +3 | 0 replies | Applied |
| 16/16 | KVM: riscv: selftests: Add Zcmop extension to get-reg-list testtools/ | +4 | 0 replies | Applied |
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by.
| Patch | Charlie Jenkins | Anup Patel | Conor Dooley | Evan Green |
|---|---|---|---|---|
| 1/16 | R-b | A-b | ||
| 2/16 | R-b | |||
| 3/16 | R-b | |||
| 4/16 | R-b A-b | |||
| 5/16 | R-b A-b | |||
| 6/16 | R-b | R-b | ||
| 7/16 | R-b | |||
| 8/16 | R-b | |||
| 9/16 | R-b | |||
| 10/16 | R-b A-b | |||
| 11/16 | R-b A-b | |||
| 12/16 | A-b | |||
| 13/16 | R-b | R-b | ||
| 14/16 | R-b | |||
| 15/16 | R-b A-b | |||
| 16/16 | R-b A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v7 00/16] Add support for a few Zc* extensions, Zcmop and Zimop
Add support for (yet again) more RVA23U64 missing extensions. Add support for Zimop, Zcmop, Zca, Zcf, Zcd and Zcb extensions ISA string parsing, hwprobe and kvm support. Zce, Zcmt and Zcmp extensions have been left out since they target microcontrollers/embedded CPUs and are not needed by RVA23U64.
Since Zc* extensions states that C implies Zca, Zcf (if F and RV32), Zcd (if D), this series modifies the way ISA string is parsed and now does it in two phases. First one parses the string and the second one validates it for the final ISA description.
---
v7:
- Rebased on riscv/for-next to fix conflicts
v6:
- Rebased on riscv/for-next
- Remove ternary operator to use 'if()' instead in extension checks
- v5: https://lore.kernel.org/all/20240517145302.971019-1-cleger at rivosinc.com/
v5:
- Merged in Zimop to avoid any uneeded series dependencies
- Rework dependency resolution loop to loop on source isa first rather than on all extension.
- Disabled extensions in source isa once set in resolved isa
- Rename riscv_resolve_isa() parameters
- v4: https://lore.kernel.org/all/20240429150553.625165-1-cleger at rivosinc.com/
v4:
- Modify validate() callbacks to return 0, -EPROBEDEFER or another error.
- v3: https://lore.kernel.org/all/20240423124326.2532796-1-cleger at rivosinc.com/
v3:
- Fix typo "exists" -> "exist"
- Remove C implies Zca, Zcd, Zcf, dt-bindings rules
- Rework ISA string resolver to handle dependencies
- v2: https://lore.kernel.org/all/20240418124300.1387978-1-cleger at rivosinc.com/
v2:
- Add Zc* dependencies validation in dt-bindings
- v1: https://lore.kernel.org/lkml/20240410091106.749233-1-cleger at rivosinc.com/
Cl?ment L?ger (16):
dt-bindings: riscv: add Zimop ISA extension description
riscv: add ISA extension parsing for Zimop
riscv: hwprobe: export Zimop ISA extension
RISC-V: KVM: Allow Zimop extension for Guest/VM
KVM: riscv: selftests: Add Zimop extension to get-reg-list test
dt-bindings: riscv: add Zca, Zcf, Zcd and Zcb ISA extension
description
riscv: add ISA extensions validation callback
riscv: add ISA parsing for Zca, Zcf, Zcd and Zcb
riscv: hwprobe: export Zca, Zcf, Zcd and Zcb ISA extensions
RISC-V: KVM: Allow Zca, Zcf, Zcd and Zcb extensions for Guest/VM
KVM: riscv: selftests: Add some Zc* extensions to get-reg-list test
dt-bindings: riscv: add Zcmop ISA extension description
riscv: add ISA extension parsing for Zcmop
riscv: hwprobe: export Zcmop ISA extension
RISC-V: KVM: Allow Zcmop extension for Guest/VM
KVM: riscv: selftests: Add Zcmop extension to get-reg-list test
Documentation/arch/riscv/hwprobe.rst | 28 ++ .../devicetree/bindings/riscv/extensions.yaml | 95 ++++++ arch/riscv/include/asm/cpufeature.h | 1 + arch/riscv/include/asm/hwcap.h | 6 + arch/riscv/include/uapi/asm/hwprobe.h | 6 + arch/riscv/include/uapi/asm/kvm.h | 6 + arch/riscv/kernel/cpufeature.c | 277 ++++++++++++------ arch/riscv/kernel/sys_hwprobe.c | 6 + arch/riscv/kvm/vcpu_onereg.c | 12 + .../selftests/kvm/riscv/get-reg-list.c | 24 ++ 10 files changed, 375 insertions(+), 86 deletions(-)
Signature · 1 line
2.45.2