Skip to content

Commit feb5dba

Browse files
docularxuConchuOD
authored andcommitted
dt-bindings: riscv: Add Supm extension description
Add description for the Supm extension. Supm indicates support for pointer masking in user mode. Supm is mandatory for RVA23S64. Add dependency check that Supm requires either Smnpm or Ssnpm. The Supm extension is ratified in commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension. Signed-off-by: Guodong Xu <guodong@riscstar.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent 0aa1924 commit feb5dba

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Documentation/devicetree/bindings/riscv/extensions.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,23 @@ properties:
262262
ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87
263263
("Updated to ratified state.")
264264
265+
- const: supm
266+
description: |
267+
The standard Supm extension for pointer masking support in user
268+
mode (U-mode) as ratified at commit d70011dde6c2 ("Update to
269+
ratified state") of riscv-j-extension.
270+
271+
Supm represents a combination of underlying hardware capability
272+
(Smnpm or Ssnpm), U-mode consumer privilege level, and M/S-mode
273+
software configuration that enables pointer masking for U-mode.
274+
275+
DO NOT include this property in device trees targeting privileged
276+
system software (S-mode or M-mode).
277+
278+
This property is only appropriate in device trees provided to
279+
U-mode software where the next-higher-privilege-mode supports
280+
Smnpm or Ssnpm and enables it for U-mode.
281+
265282
- const: svade
266283
description: |
267284
The standard Svade supervisor-level extension for SW-managed PTE A/D
@@ -907,6 +924,16 @@ properties:
907924
then:
908925
contains:
909926
const: b
927+
# Supm depends on Smnpm or Ssnpm
928+
- if:
929+
contains:
930+
const: supm
931+
then:
932+
oneOf:
933+
- contains:
934+
const: smnpm
935+
- contains:
936+
const: ssnpm
910937
# Za64rs and Ziccrse depend on Zalrsc or A
911938
- if:
912939
contains:

0 commit comments

Comments
 (0)