From: Alex Elder <elder@riscstar.com>
To: Guodong Xu <guodong@riscstar.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>, Yixun Lan <dlan@gentoo.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Samuel Holland <samuel.holland@sifive.com>,
Anup Patel <anup@brainfault.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
Lubomir Rintel <lkundrak@v3.sk>, Yangyu Chen <cyy@cyyself.name>,
Paul Walmsley <paul.walmsley@sifive.com>,
Conor Dooley <conor@kernel.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Kevin Meng Zhang <zhangmeng.kevin@linux.spacemit.com>,
Andrew Jones <ajones@ventanamicro.com>,
devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org, spacemit@lists.linux.dev,
linux-serial@vger.kernel.org
Subject: Re: [PATCH v2 09/13] dt-bindings: riscv: Add Ssccptr, Sscounterenw, Sstvala, Sstvecd, Ssu64xl
Date: Sun, 28 Dec 2025 17:50:25 -0600 [thread overview]
Message-ID: <b3d015aa-01bd-4974-881a-0af297655c55@riscstar.com> (raw)
In-Reply-To: <CAH1PCMauCHQ==Fyb1pHzWtkNOCnpRoJ_8KE0zJBC4B6X8TzweA@mail.gmail.com>
On 12/28/25 6:31 AM, Guodong Xu wrote:
> Hi, Alex
>
> On Sat, Dec 27, 2025 at 5:28 AM Alex Elder <elder@riscstar.com> wrote:
>>
>> On 12/22/25 7:04 AM, Guodong Xu wrote:
>>> Add descriptions for five new extensions: Ssccptr, Sscounterenw, Sstvala,
>>> Sstvecd, and Ssu64xl. These extensions are ratified in RISC-V Profiles
>>> Version 1.0 (commit b1d806605f87 "Updated to ratified state.").
>>>
>>> They are introduced as new extension names for existing features and
>>> regulate implementation details for RISC-V Profile compliance. According
>>> to RISC-V Profiles Version 1.0 and RVA23 Profiles Version 1.0, their
>>> requirement status are:
>>>
>>> - Ssccptr: Mandatory in RVA20S64, RVA22S64, RVA23S64
>>> - Sscounterenw: Mandatory in RVA22S64, RVA23S64
>>> - Sstvala: Mandatory in RVA20S64, RVA22S64, RVA23S64
>>> - Sstvecd: Mandatory in RVA20S64, RVA22S64, RVA23S64
>>> - Ssu64xl: Optional in RVA20S64, RVA22S64; Mandatory in RVA23S64
>>
>> Again, I did not verify your statements about where these are
>> optional and mandatory, but I assume they're correct.
>
> Thanks for the review.
>
> As mentioned in my response to patch 8, the requirement status for these
> extensions is clearly defined in the RISC-V Profiles specification(s) which
> I mentioned above.
>
> I have verified these details against the official document to ensure
> accuracy.
Right, my comment here was just to be transparent that *I* did
not check this, and am trusting that what you said is right.
Thanks for confirming.
-Alex
> The extension descriptions are included in the commit message to provide
> necessary background information.
>
>>
>>> Signed-off-by: Guodong Xu <guodong@riscstar.com>
>>> ---
>>> v2: New patch.
>>> ---
>>> .../devicetree/bindings/riscv/extensions.yaml | 32 ++++++++++++++++++++++
>>> 1 file changed, 32 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
>>> index a6b9d7e3edf86ecfb117ba72e295ef097bdc9831..ed7a88c0ab3b7dc7ad4a4d2fd300d6fb33ef050c 100644
>>> --- a/Documentation/devicetree/bindings/riscv/extensions.yaml
>>> +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
>>> @@ -160,12 +160,26 @@ properties:
>>> behavioural changes to interrupts as frozen at commit ccbddab
>>> ("Merge pull request #42 from riscv/jhauser-2023-RC4") of riscv-aia.
>>>
>>> + - const: ssccptr
>>> + description: |
>>> + The standard Ssccptr extension for main memory (cacheability and
>>> + coherence) hardware page-table reads, as ratified in RISC-V
>>> + Profiles Version 1.0, with commit b1d806605f87 ("Updated to
>>> + ratified state.")
>>> +
>>> - const: sscofpmf
>>> description: |
>>> The standard Sscofpmf supervisor-level extension for count overflow
>>> and mode-based filtering as ratified at commit 01d1df0 ("Add ability
>>> to manually trigger workflow. (#2)") of riscv-count-overflow.
>>>
>>> + - const: sscounterenw
>>> + description: |
>>> + The standard Sscounterenw extension for support writable enables
>>> + in scounteren for any supported counter, as ratified in RISC-V
>
> Here, I used the abbreviated version. See below.
>
>>> + Profiles Version 1.0, with commit b1d806605f87 ("Updated to
>>> + ratified state.")
>>
>> Maybe you should just copy the text from the RVA23 specification
>> for all of these. So something like:
>>
>> For any hpmcounter that is not read-only zero, the corresponding
>> bit in scounteren must be writable. This was ratified in the
>> RISC-V Profiles specification version 1.0, with commit ...
>>
>
> As you noticed, the RVA23 Profile v1.0 provides two versions of explanation
> for Sscounterenw:
> "Sscounterenw: For any hpmcounter that is not read-only zero, the corresponding
> bit in scounteren must be writable"
> "Sscounterenw: Support writeable enables for any supported counter"
>
> BR,
> Guodong Xu
>
>>> +
>>> - const: ssnpm
>>> description: |
>>> The standard Ssnpm extension for next-mode pointer masking as
>>> @@ -178,6 +192,24 @@ properties:
>>> ratified at commit 3f9ed34 ("Add ability to manually trigger
>>> workflow. (#2)") of riscv-time-compare.
>>>
>>> + - const: sstvala
>>> + description: |
>>> + The standard Sstvala extension for stval provides all needed values
>>> + as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87
>>> + ("Updated to ratified state.")
>>
>> Or alternative to the full text in the spec, you could copy over
>> the abbreviated description listed in the glossary at the end
>> instead. Something like:
>>
>> stval provides all needed values. This was ratified in...
>>
>> -Alex
>>
>>> +
>>> + - const: sstvecd
>>> + description: |
>>> + The standard Sstvecd extension for stvec supports Direct mode as
>>> + ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87
>>> + ("Updated to ratified state.")
>>> +
>>> + - const: ssu64xl
>>> + description: |
>>> + The standard Ssu64xl extension for UXLEN=64 must be supported, as
>>> + ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87
>>> + ("Updated to ratified state.")
>>> +
>>> - const: svade
>>> description: |
>>> The standard Svade supervisor-level extension for SW-managed PTE A/D
>>>
>>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-12-28 23:50 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-22 13:04 [PATCH v2 00/13] riscv: spacemit: Add SpacemiT K3 SoC and K3 Pico-ITX board Guodong Xu
2025-12-22 13:04 ` [PATCH v2 01/13] dt-bindings: riscv: add SpacemiT X100 CPU compatible Guodong Xu
2025-12-23 13:48 ` Krzysztof Kozlowski
2025-12-22 13:04 ` [PATCH v2 02/13] dt-bindings: timer: add SpacemiT K3 CLINT Guodong Xu
2025-12-22 13:04 ` [PATCH v2 03/13] dt-bindings: interrupt-controller: add SpacemiT K3 APLIC Guodong Xu
2025-12-22 13:04 ` [PATCH v2 04/13] dt-bindings: interrupt-controller: add SpacemiT K3 IMSIC Guodong Xu
2025-12-23 13:47 ` Krzysztof Kozlowski
2025-12-22 13:04 ` [PATCH v2 05/13] dt-bindings: serial: 8250: add SpacemiT K3 UART compatible Guodong Xu
2025-12-22 13:04 ` [PATCH v2 06/13] dt-bindings: riscv: spacemit: add K3 and Pico-ITX board bindings Guodong Xu
2025-12-22 13:04 ` [PATCH v2 07/13] dt-bindings: riscv: Add B ISA extension description Guodong Xu
2025-12-22 21:17 ` Conor Dooley
2025-12-23 6:51 ` Guodong Xu
2025-12-24 23:53 ` Conor Dooley
2025-12-26 21:28 ` Alex Elder
2025-12-28 2:51 ` Guodong Xu
2025-12-28 23:50 ` Alex Elder
2025-12-29 1:08 ` Guodong Xu
2025-12-29 1:26 ` Alex Elder
2025-12-30 17:09 ` Conor Dooley
2025-12-30 17:29 ` Alex Elder
2025-12-30 17:46 ` Conor Dooley
2025-12-30 18:06 ` Alex Elder
2025-12-30 19:21 ` Conor Dooley
2025-12-22 13:04 ` [PATCH v2 08/13] dt-bindings: riscv: Add descriptions for Za64rs, Ziccamoa, Ziccif, and Zicclsm Guodong Xu
2025-12-26 21:28 ` Alex Elder
2025-12-28 4:10 ` Guodong Xu
2025-12-28 23:50 ` Alex Elder
2025-12-30 0:56 ` Guodong Xu
2025-12-22 13:04 ` [PATCH v2 09/13] dt-bindings: riscv: Add Ssccptr, Sscounterenw, Sstvala, Sstvecd, Ssu64xl Guodong Xu
2025-12-26 21:28 ` Alex Elder
2025-12-28 12:31 ` Guodong Xu
2025-12-28 23:50 ` Alex Elder [this message]
2025-12-22 13:04 ` [PATCH v2 10/13] dt-bindings: riscv: Add Sha and its comprised extensions Guodong Xu
2025-12-26 21:28 ` Alex Elder
2025-12-28 12:43 ` Guodong Xu
2025-12-28 23:50 ` Alex Elder
2025-12-22 13:04 ` [PATCH v2 11/13] dt-bindings: riscv: Add Supm extension description Guodong Xu
2025-12-22 20:57 ` Conor Dooley
2025-12-26 21:28 ` Alex Elder
2025-12-30 2:13 ` Rob Herring
2025-12-30 3:14 ` Alex Elder
2025-12-30 15:21 ` Rob Herring
2025-12-30 17:37 ` Conor Dooley
2025-12-30 20:41 ` Heinrich Schuchardt
2026-01-01 0:08 ` Conor Dooley
2026-01-08 19:45 ` Samuel Holland
2025-12-30 18:01 ` Alex Elder
2025-12-30 17:22 ` Conor Dooley
2025-12-30 18:06 ` Alex Elder
2025-12-22 13:04 ` [PATCH v2 12/13] riscv: dts: spacemit: add initial device tree of SpacemiT K3 SoC Guodong Xu
2025-12-22 13:04 ` [PATCH v2 13/13] riscv: dts: spacemit: add SpacemiT K3 Pico-ITX board device tree Guodong Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3d015aa-01bd-4974-881a-0af297655c55@riscstar.com \
--to=elder@riscstar.com \
--cc=ajones@ventanamicro.com \
--cc=alex@ghiti.fr \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=cyy@cyyself.name \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=gregkh@linuxfoundation.org \
--cc=guodong@riscstar.com \
--cc=jirislaby@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=lkundrak@v3.sk \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=samuel.holland@sifive.com \
--cc=spacemit@lists.linux.dev \
--cc=tglx@linutronix.de \
--cc=xypron.glpk@gmx.de \
--cc=zhangmeng.kevin@linux.spacemit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox