Skip to content

Commit b8d4816

Browse files
yong-xuanavpatel
authored andcommitted
dt-bindings: riscv: Add Svade and Svadu Entries
Add entries for the Svade and Svadu extensions to the riscv,isa-extensions property. Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Link: https://lore.kernel.org/r/20240726084931.28924-3-yongxuan.wang@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent 94a7734 commit b8d4816

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/devicetree/bindings/riscv/extensions.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,34 @@ properties:
153153
ratified at commit 3f9ed34 ("Add ability to manually trigger
154154
workflow. (#2)") of riscv-time-compare.
155155
156+
- const: svade
157+
description: |
158+
The standard Svade supervisor-level extension for SW-managed PTE A/D
159+
bit updates as ratified in the 20240213 version of the privileged
160+
ISA specification.
161+
162+
Both Svade and Svadu extensions control the hardware behavior when
163+
the PTE A/D bits need to be set. The default behavior for the four
164+
possible combinations of these extensions in the device tree are:
165+
1) Neither Svade nor Svadu present in DT => It is technically
166+
unknown whether the platform uses Svade or Svadu. Supervisor
167+
software should be prepared to handle either hardware updating
168+
of the PTE A/D bits or page faults when they need updated.
169+
2) Only Svade present in DT => Supervisor must assume Svade to be
170+
always enabled.
171+
3) Only Svadu present in DT => Supervisor must assume Svadu to be
172+
always enabled.
173+
4) Both Svade and Svadu present in DT => Supervisor must assume
174+
Svadu turned-off at boot time. To use Svadu, supervisor must
175+
explicitly enable it using the SBI FWFT extension.
176+
177+
- const: svadu
178+
description: |
179+
The standard Svadu supervisor-level extension for hardware updating
180+
of PTE A/D bits as ratified in the 20240528 version of the
181+
privileged ISA specification. Please refer to Svade dt-binding
182+
description for more details.
183+
156184
- const: svinval
157185
description:
158186
The standard Svinval supervisor-level extension for fine-grained

0 commit comments

Comments
 (0)