devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Add Zilsd/Zclsd support in hwprobe and KVM
@ 2025-08-26 16:29 Pincheng Wang
  2025-08-26 16:29 ` [PATCH v2 1/5] dt-bindings: riscv: add Zilsd and Zclsd extension descriptions Pincheng Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Pincheng Wang @ 2025-08-26 16:29 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, alex, robh, krzk+dt, conor+dt, anup,
	pbonzini, shuah, cyan.yang, cleger, charlie, cuiyunhui,
	samuel.holland, namcao, jesse, inochiama, yongxuan.wang, ajones,
	parri.andrea, mikisabate, yikming2222, thomas.weissschuh
  Cc: linux-riscv, linux-kernel, linux-doc, devicetree, kvm, kvm-riscv,
	linux-kselftest, pincheng.plct

Hi all,

This is v2 of a short series that adds kernel support for the ratified
Zilsd (Load/Store pair) and Zclsd (Compressed Load/Store pair) RISC-V
ISA extensions. The series enables kernel-side exposure so user-space
(for example glibc) can detect and use these extensions via hwprobe and
runtime checks.

Patches:
- Patch 1:Add device tree bindings documentation for Zilsd and Zclsd.
- Patch 2: Extend RISC-V ISA extension string parsing to recognize them.
- Patch 3: Export Zilsd and Zclsd via riscv_hwprobe.
- Patch 4: Allow KVM guests to use them.
- Patch 5: Add KVM selftests.

Changes in v2:
- Device-tree schema: simplified the rv64 validation for Zilsd by
  removing a redundant `contais: const: zilsd` in the `if` clause; the
  simpler `if (riscv, isa-base contains rv64i) then (riscv,
  isa-extension not contains zilsd)` form is used instead. Behaviour is
  unchanged, and the logic is cleaner.
- Device-tree schema: corrected Zclsd dependency to require both Zilsd
  and Zca (previous `anyOf` was incorrect; now both are enforced).
- Commit message typo fixed: "dt-bidings" -> "dt-bindings" in the Patch
  1 commit subject.

The v2 changes are documentation/schema corrections in extensions.yaml.
No functional changes were made to ISA parsing, hwprobe syscall, KVM
guest support or the selftests beyond ensuring the binding correctly
documents and validates the extension relationships.

Please review v2 and advise if futher changes are needed.

Thanks,
Pincheng Wang 

Pincheng Wang (5):
  dt-bindings: riscv: add Zilsd and Zclsd extension descriptions
  riscv: add ISA extension parsing for Zilsd and Zclsd
  riscv: hwprobe: export Zilsd and Zclsd ISA extensions
  riscv: KVM: allow Zilsd and Zclsd extensions for Guest/VM
  KVM: riscv: selftests: add Zilsd and Zclsd extension to get-reg-list
    test

 Documentation/arch/riscv/hwprobe.rst          |  8 +++++
 .../devicetree/bindings/riscv/extensions.yaml | 36 +++++++++++++++++++
 arch/riscv/include/asm/hwcap.h                |  2 ++
 arch/riscv/include/uapi/asm/hwprobe.h         |  2 ++
 arch/riscv/include/uapi/asm/kvm.h             |  2 ++
 arch/riscv/kernel/cpufeature.c                | 24 +++++++++++++
 arch/riscv/kernel/sys_hwprobe.c               |  2 ++
 arch/riscv/kvm/vcpu_onereg.c                  |  2 ++
 .../selftests/kvm/riscv/get-reg-list.c        |  6 ++++
 9 files changed, 84 insertions(+)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-09-01  8:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 16:29 [PATCH v2 0/5] Add Zilsd/Zclsd support in hwprobe and KVM Pincheng Wang
2025-08-26 16:29 ` [PATCH v2 1/5] dt-bindings: riscv: add Zilsd and Zclsd extension descriptions Pincheng Wang
2025-08-26 17:39   ` Conor Dooley
2025-09-01  8:46   ` Nutty.Liu
2025-08-26 16:29 ` [PATCH v2 2/5] riscv: add ISA extension parsing for Zilsd and Zclsd Pincheng Wang
2025-09-01  8:41   ` Nutty.Liu
2025-08-26 16:29 ` [PATCH v2 3/5] riscv: hwprobe: export Zilsd and Zclsd ISA extensions Pincheng Wang
2025-09-01  8:39   ` Nutty.Liu
2025-08-26 16:29 ` [PATCH v2 4/5] riscv: KVM: allow Zilsd and Zclsd extensions for Guest/VM Pincheng Wang
2025-09-01  8:37   ` Nutty.Liu
2025-08-26 16:29 ` [PATCH v2 5/5] KVM: riscv: selftests: add Zilsd and Zclsd extension to get-reg-list test Pincheng Wang
2025-09-01  8:37   ` Nutty.Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).