[PATCH v5 7/7] dt-bindings: riscv: add Sxctr ISA extension description

Conor Dooley conor at kernel.org
Thu Nov 19 08:23:51 PST 2026


On Wed, Nov 18, 2026 at 03:20:53PM +0530, Vikram Singh wrote:
> Add the S[m|s]ctr ISA extension description.
> 
> Co-developed-by: Rajnesh Kanwal <rajnesh.kanwal49 at gmail.com>
> Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal49 at gmail.com>
> Signed-off-by: Vikram Singh <vikram.singh3 at oss.qualcomm.com>
> Link: https://lore.kernel.org/r/20261106173942.3175069-8-vikram.singh3@oss.qualcomm.com
> Signed-off-by: Anup Patel <anup at brainfault.org>

With this stuff sorted out as Anup mentioned
Acked-by: Conor Dooley <conor.dooley at microchip.com>
pw-bot: changes-requested

Thanks,
Conor.

> ---
>  .../devicetree/bindings/riscv/extensions.yaml | 29 +++++++++++++++++++
>  1 file changed, 29 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
> index 79491ef8f86a..dde2f28cfda5 100644
> --- a/Documentation/devicetree/bindings/riscv/extensions.yaml
> +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
> @@ -202,6 +202,13 @@ properties:
>              mechanism in M-mode as ratified in the 20240326 version of the
>              privileged ISA specification.
>  
> +        - const: smctr
> +          description: |
> +            The standard Smctr supervisor-level extension for the machine mode
> +            to enable recording limited branch history in a register-accessible
> +            internal core storage as ratified at commit 9c87013 ("Merge pull
> +            request #44 from riscv/issue-42-fix") of riscv-control-transfer-records.
> +
>          - const: smmpm
>            description: |
>              The standard Smmpm extension for M-mode pointer masking as
> @@ -263,6 +270,13 @@ properties:
>              mechanism in S-mode as ratified in the 20240326 version of the
>              privileged ISA specification.
>  
> +        - const: ssctr
> +          description: |
> +            The standard Ssctr supervisor-level extension for recording limited
> +            branch history in a register-accessible internal core storage as
> +            ratified at commit 9c87013 ("Merge pull request #44 from
> +            riscv/issue-42-fix") of riscv-control-transfer-records.
> +
>          - const: ssnpm
>            description: |
>              The standard Ssnpm extension for next-mode pointer masking as
> @@ -1189,6 +1203,21 @@ properties:
>              - contains:
>                  const: zicntr
>  
> +      # Smctr depends on Sscsrind
> +      - if:
> +          contains:
> +            const: smctr
> +        then:
> +          contains:
> +            const: sscsrind
> +      # Ssctr depends on Sscsrind
> +      - if:
> +          contains:
> +            const: ssctr
> +        then:
> +          contains:
> +            const: sscsrind
> +
>  allOf:
>    # Zcf extension does not exist on rv64
>    - if:
> -- 
> 2.43.0
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20261119/d11ccabe/attachment.sig>


More information about the linux-riscv mailing list