riscv: Add Zalasr ISA extension support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest10 patches 9 repliesIn review 4 of 10 applied
- v38 patches 5 repliesSuperseded
- v24 patches 12 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 1 reply | Superseded |
Changes in v4 from the cover letter
- Apply acquire/release semantics to arch_atomic operations. Thanks to Andrea.
Patches in v4 4 of 10 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | riscv: Add ISA extension parsing for Zalasrarch/ arch/ | +2 | 0 replies | Applied |
| 2/10 | dt-bindings: riscv: Add Zalasr ISA extension descriptionDocumentation/ | +5 | 1 reply | Applied |
| 3/10 | riscv: hwprobe: Export Zalasr extensionDocumentation/ arch/ arch/ | +6 | 1 reply | Applied |
| 4/10 | riscv: Introduce Zalasr instructionsarch/ | +79 | 1 reply | Applied |
| 5/10 | riscv: Apply Zalasr to smp_load_acquire/smp_store_releasearch/ | +80 | 0 replies | |
| 6/10 | riscv: Apply acquire/release semantics to arch_xchg/arch_cmpxchg operationsarch/ | +71 | 0 replies | |
| 7/10 | riscv: Apply acquire/release semantics to arch_atomic operationsarch/ | +64 | 0 replies | |
| 8/10 | riscv: Remove arch specific __atomic_acquire/release_fencearch/ arch/ | +0 | 0 replies | |
| 9/10 | RISC-V: KVM: Allow Zalasr extensions for Guest/VMarch/ arch/ | +3 | 1 reply | |
| 10/10 | RISC-V: KVM: selftests: Add Zalasr extensions to get-reg-list testtools/ | +4 | 1 reply |
Reviews trailers per patch
4 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Guo Ren | Conor Dooley | Anup Patel |
|---|---|---|---|
| 1/10 | |||
| 2/10 | A-b | ||
| 3/10 | |||
| 4/10 | R-b | ||
| 5/10 | |||
| 6/10 | |||
| 7/10 | |||
| 8/10 | |||
| 9/10 | R-b | ||
| 10/10 | R-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 3 reviewers.
Cover letter [PATCH v4 00/10] riscv: Add Zalasr ISA extension support
This patch adds support for the Zalasr ISA extension, which supplies the real load acquire/store release instructions.
The specification can be found here:
https://github.com/riscv/riscv-zalasr/blob/main/chapter2.adoc
This patch seires has been tested with ltp on Qemu with Brensan's zalasr support patch[1].
Some false positive spacing error happens during patch checking. Thus I CCed maintainers of checkpatch.pl as well.
[1] https://lore.kernel.org/all/CAGPSXwJEdtqW=nx71oufZp64nK6tK=0rytVEcz4F-gfvCOXk2w@mail.gmail.com/
v4:
- Apply acquire/release semantics to arch_atomic operations. Thanks to Andrea.
v3:
- Apply acquire/release semantics to arch_xchg/arch_cmpxchg operations so as to ensure FENCE.TSO ordering between operations which precede the UNLOCK+LOCK sequence and operations which follow the sequence. Thanks to Andrea.
- Support hwprobe of Zalasr.
- Allow Zalasr extensions for Guest/VM.
v2:
- Adjust the order of Zalasr and Zalrsc in dt-bindings. Thanks to Conor.
Xu Lu (10):
riscv: Add ISA extension parsing for Zalasr
dt-bindings: riscv: Add Zalasr ISA extension description
riscv: hwprobe: Export Zalasr extension
riscv: Introduce Zalasr instructions
riscv: Apply Zalasr to smp_load_acquire/smp_store_release
riscv: Apply acquire/release semantics to arch_xchg/arch_cmpxchg
operations
riscv: Apply acquire/release semantics to arch_atomic operations
riscv: Remove arch specific __atomic_acquire/release_fence
RISC-V: KVM: Allow Zalasr extensions for Guest/VM
RISC-V: KVM: selftests: Add Zalasr extensions to get-reg-list test
Documentation/arch/riscv/hwprobe.rst | 5 +- .../devicetree/bindings/riscv/extensions.yaml | 5 + arch/riscv/include/asm/atomic.h | 70 ++++++++- arch/riscv/include/asm/barrier.h | 91 +++++++++-- arch/riscv/include/asm/cmpxchg.h | 144 +++++++++--------- arch/riscv/include/asm/fence.h | 4 - arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/include/asm/insn-def.h | 79 ++++++++++ arch/riscv/include/uapi/asm/hwprobe.h | 1 + arch/riscv/include/uapi/asm/kvm.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + arch/riscv/kernel/sys_hwprobe.c | 1 + arch/riscv/kvm/vcpu_onereg.c | 2 + .../selftests/kvm/riscv/get-reg-list.c | 4 + 14 files changed, 314 insertions(+), 95 deletions(-)
Signature · 1 line
2.20.1