Skip to content

Commit 89febd6

Browse files
docularxuConchuOD
authored andcommitted
dt-bindings: riscv: Add Sha and its comprised extensions
Add descriptions for the Sha extension and the seven extensions it comprises: Shcounterenw, Shgatpa, Shtvala, Shvsatpa, Shvstvala, Shvstvecd, and Ssstateen. Sha is ratified in the RVA23 Profiles Version 1.0 (commit 0273f3c921b6 "rva23/rvb23 ratified") as a new profile-defined extension that captures the full set of features that are mandated to be supported along with the H extension. Extensions Shcounterenw, Shgatpa, Shtvala, Shvsatpa, Shvstvala, Shvstvecd, and Ssstateen are ratified in the RISC-V Profiles Version 1.0 (commit b1d806605f87 "Updated to ratified state"). The requirement status for Sha and its comprised extension in RISC-V Profiles are: - Sha: Mandatory in RVA23S64 - H: Optional in RVA22S64; Mandatory in RVA23S64 - Shcounterenw: Optional in RVA22S64; Mandatory in RVA23S64 - Shgatpa: Optional in RVA22S64; Mandatory in RVA23S64 - Shtvala: Optional in RVA22S64; Mandatory in RVA23S64 - Shvsatpa: Optional in RVA22S64; Mandatory in RVA23S64 - Shvstvala: Optional in RVA22S64; Mandatory in RVA23S64 - Shvstvecd: Optional in RVA22S64; Mandatory in RVA23S64 - Ssstateen: Optional in RVA22S64; Mandatory in RVA23S64 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 c712413 commit 89febd6

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Documentation/devicetree/bindings/riscv/extensions.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,57 @@ properties:
129129
Document Version 20211203.
130130

131131
# multi-letter extensions, sorted alphanumerically
132+
- const: sha
133+
description: |
134+
The standard Sha extension for augmented hypervisor extension as
135+
ratified in RVA23 Profiles Version 1.0, with commit 0273f3c921b6
136+
("rva23/rvb23 ratified").
137+
138+
Sha captures the full set of features that are mandated to be
139+
supported along with the H extension. Sha comprises the following
140+
extensions: H, Shcounterenw, Shgatpa, Shtvala, Shvsatpa, Shvstvala,
141+
Shvstvecd, and Ssstateen.
142+
143+
- const: shcounterenw
144+
description: |
145+
The standard Shcounterenw extension for support writable enables
146+
in hcounteren for any supported counter, as ratified in RISC-V
147+
Profiles Version 1.0, with commit b1d806605f87 ("Updated to
148+
ratified state.")
149+
150+
- const: shgatpa
151+
description: |
152+
The standard Shgatpa extension indicates that for each supported
153+
virtual memory scheme SvNN supported in satp, the corresponding
154+
hgatp SvNNx4 mode must be supported. The hgatp mode Bare must
155+
also be supported. It is ratified in RISC-V Profiles Version 1.0,
156+
with commit b1d806605f87 ("Updated to ratified state.")
157+
158+
- const: shtvala
159+
description: |
160+
The standard Shtvala extension for htval be written with the
161+
faulting guest physical address in all circumstances permitted by
162+
the ISA. It is ratified in RISC-V Profiles Version 1.0, with
163+
commit b1d806605f87 ("Updated to ratified state.")
164+
165+
- const: shvsatpa
166+
description: |
167+
The standard Shvsatpa extension for vsatp supporting all translation
168+
modes supported in satp, as ratified in RISC-V Profiles Version 1.0,
169+
with commit b1d806605f87 ("Updated to ratified state.")
170+
171+
- const: shvstvala
172+
description: |
173+
The standard Shvstvala extension for vstval provides all needed
174+
values as ratified in RISC-V Profiles Version 1.0, with commit
175+
b1d806605f87 ("Updated to ratified state.")
176+
177+
- const: shvstvecd
178+
description: |
179+
The standard Shvstvecd extension for vstvec supporting Direct mode,
180+
as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87
181+
("Updated to ratified state.")
182+
132183
- const: smaia
133184
description: |
134185
The standard Smaia supervisor-level extension for the advanced
@@ -187,6 +238,12 @@ properties:
187238
ratified at commit d70011dde6c2 ("Update to ratified state")
188239
of riscv-j-extension.
189240
241+
- const: ssstateen
242+
description: |
243+
The standard Ssstateen extension for supervisor-mode view of the
244+
state-enable extension, as ratified in RISC-V Profiles Version 1.0,
245+
with commit b1d806605f87 ("Updated to ratified state.")
246+
190247
- const: sstc
191248
description: |
192249
The standard Sstc supervisor-level extension for time compare as

0 commit comments

Comments
 (0)