[RFC PATCH v1 1/5] dt-bindings: riscv: Add Smpdis and Sspdis ISA extensions

From: Zhanpeng Zhang

Date: Wed Nov 18 2026 - 03:13:57 EST


Describe the machine and supervisor PDIS extensions using the pinned
sampling draft. Machine support alone does not grant supervisor access.
These are draft bindings, not ratified extension or CSR allocations.

Signed-off-by: Zhanpeng Zhang <zhangzhanpeng.jasper@xxxxxxxxxxxxx>
---
.../devicetree/bindings/riscv/extensions.yaml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
index 79491ef8f86a..afda76b9c7c4 100644
--- a/Documentation/devicetree/bindings/riscv/extensions.yaml
+++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
@@ -214,6 +214,15 @@ properties:
ratified at commit d70011dde6c2 ("Update to ratified state")
of riscv-j-extension.

+ - const: smpdis
+ description: |
+ The draft Smpdis machine-level extension for Precise Decoded
+ Instruction Sampling, as described at commit
+ 2de60e18118ce78e2da82ec33296345c94d8560c of the
+ riscv-performance-event-sampling specification. It defines
+ instruction selection, filtering and sample collection across
+ privilege levels. This does not imply supervisor access to PDIS.
+
- const: smstateen
description: |
The standard Smstateen extension for controlling access to CSRs
@@ -269,6 +278,16 @@ properties:
ratified at commit d70011dde6c2 ("Update to ratified state")
of riscv-j-extension.

+ - const: sspdis
+ description: |
+ The draft Sspdis supervisor-level extension for Precise Decoded
+ Instruction Sampling, as described at commit
+ 2de60e18118ce78e2da82ec33296345c94d8560c of the
+ riscv-performance-event-sampling specification. It provides the
+ supervisor-visible PDIS registers and behavior, excluding the
+ machine-only state. Firmware must make this state accessible to
+ supervisor software before reporting this extension.
+
- const: ssqosid
description: |
The standard Ssqosid extension for Quality of Service ID is
--
2.50.1 (Apple Git-155)