From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08558472026 for ; Thu, 8 Jan 2026 12:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875273; cv=none; b=IE4PxsXZ9m/W68z3vhCPZw0uToI9oj86vSjDif50tA5e6gWE9M2ilIolwPXFubXvFFJT5EzVYWFpH40T3ME0Fu1FEsrQMXCtXHuwdeUFBHlJQiEtlYpRFZT3v5dZW9lgq7OqiV2xlHhCdWMJ7jVXxx8RjEXWJVjQp+DY4G4KczU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875273; c=relaxed/simple; bh=9i98spOttY2+pSY3C1YkNBPDmYrEvuZoRZJ/UHtvLAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=avFStTeTscPt9gCaDUbllomFJsJxgzR4W4KeMew0OvmcjyDqx1YUvqG9VwPPz6s0tYwOxAFVrV0mz2uLKVFeql3SLa+EmmHQQcSBupLV0DgPieZvjZMXEYNql9xn6/suY8Ezco1hFz2E22ivvi87qudraklDLGXzTG5oStQly6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=uDTslnA+; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="uDTslnA+" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-803474aaa8bso1049419b3a.0 for ; Thu, 08 Jan 2026 04:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1767875271; x=1768480071; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VF+6XfhiDaME4QgjDZFKmUqe8YthR175qEWdqlfUTBs=; b=uDTslnA+6c3uSjtluhYzpZ2WpF8ZcX4X7FM1MGejQ/6INCzvhMOJBqLTJ+haPOJlHk 7kt0vkok39eF/SaPr0vVutMw0WMqWE3v9m20SFYs2ipfStjIPVG6HQzbEiQlr9h59vjX dSF230qkBqgk4vGmEv+QOQnIVDpuiB4pdAKmIr9I9HWsP1UmozXPyaBupJThyqRIIHgJ T3g+52CmkRa0sbdLu56j0RRyVBWaWJSkE+KkD5OmVRWE3x9TLfSzjAT85A1axnjSnvww 5rrwkNjLTSooqph08gF8tEIz2IySG/N1LACDVroIBQD2N6B1zLgVZMkkkJT1sXMkhjuy c3fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767875271; x=1768480071; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=VF+6XfhiDaME4QgjDZFKmUqe8YthR175qEWdqlfUTBs=; b=NUmS5shHEnFfOjRq25q/B93sjInGPrzdU4NWa/ahHFa+hhsyufKWOgqfXt5LpDNbkp JYo8Vileauldzvhi2JSW8GGwAA6omzEGjdKIK4k+3YLnJfbxvoaUihS4enlEDZEVg20U J/SykWMWkNVJ4tDB1UhHrcMZrhGohnb5jgsVxNMS1vBXseVwJLOH/29Gnx+zXqiQ2vPv coQJTe4I3AWS7PB+pgZmNRu0M4q3RtdaA/wFGs5hLf9LRbkYcFPMuyod47/JRnaaP6JC yrUk5BDx3ZbKVzEFMNQZgqvLBp0EdpfOWuBX+2bXl6bHtC9CfnQzk3xneCQiYDnyel6Z G0HQ== X-Forwarded-Encrypted: i=1; AJvYcCXVfqOf+cT6Om9poZGLcfn2kOZ++NEWDxp8DWZFu6N8fuCVnhV2ltBDcLWIAHE5/97A7uHteCQOwe2YjRo=@vger.kernel.org X-Gm-Message-State: AOJu0YxzbiswGX0SYm1jckwPoXiKZbNvx9+zk7AhkRszjnoimtW/s0EF 5jAf7FFbWzHY/kl1XGngevdxnU2nlJ7CrMkeqbh4SDjwDgAW6+AMJDEJBUI3giTtnag= X-Gm-Gg: AY/fxX7SLOYE+lgvDvqWj1mcbYjWy8JeQB4Y+m0BYpmN2RCz2HMSFPegMiu4kC42cav s8xEqqxqsv3VuVF6EYyXPuXoQUkleNpJA3pBjwGjD9CCaxxDoDfllPe9nSXWSlXLaKCLwTjErpQ Tx931bupjRnD1JUoX113KA10/psIi9iMKorPPpjgLBmlFAdQ1ie6R6PjqB6g6FF9AQ7yo7qRq1B yOQQK6wx1fOtL1+JHQWlj+zN5EDfzX0fgjZp+v23sSJFKovtay7d1531NF3NisTAMVGKqNbm0mV C66NU+aqkOUf4vW3OSH9Se83MdJBbyh8L8haCEUONrByngqGzK+CFPLLLqvy9El6o2eSMBA/Ngt SoBIgvDcqM0uNNTZO4NZKHwDdxnxUgo2USUgjWg7sb5ZbpeF4gw5YsdevqAcHWy8ouTfEBLTZMa UQFGBLFI7TxNGDprdgzmbgzDr37rpQ2vY= X-Google-Smtp-Source: AGHT+IEuqH9MIiC9H2NSi1ChnIIwHhuGoo28mnGGHSS2rHnq50vXKYnFjmfUIo4idAzSS1orpBUuTw== X-Received: by 2002:a05:6a00:35ce:b0:7a2:7058:ab89 with SMTP id d2e1a72fcca58-81b76274120mr5237100b3a.7.1767875271304; Thu, 08 Jan 2026 04:27:51 -0800 (PST) Received: from [127.0.1.1] ([2a12:a305:4::40df]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819bafe991dsm7656401b3a.16.2026.01.08.04.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 04:27:50 -0800 (PST) From: Guodong Xu Date: Thu, 08 Jan 2026 20:26:00 +0800 Subject: [PATCH v3 09/11] dt-bindings: riscv: Add Sha and its comprised extensions Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260108-k3-basic-dt-v3-9-ed99eb4c3ad3@riscstar.com> References: <20260108-k3-basic-dt-v3-0-ed99eb4c3ad3@riscstar.com> In-Reply-To: <20260108-k3-basic-dt-v3-0-ed99eb4c3ad3@riscstar.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel , Yangyu Chen Cc: Paul Walmsley , Conor Dooley , Heinrich Schuchardt , Kevin Meng Zhang , Anup Patel , Andrew Jones , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, spacemit@lists.linux.dev, linux-serial@vger.kernel.org, Guodong Xu X-Mailer: b4 0.14.2 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 --- v3: Drop dependency check for Sha. Both Sha and the extensions it implies are allowed to co-exist in DT. v2: New patch. --- .../devicetree/bindings/riscv/extensions.yaml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 78b75ab0a473b60508f72fc30d4809a797a2c40a..839f48503f8246864495f7cda93a572b01351b0c 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -128,6 +128,57 @@ properties: version of the privileged ISA specification. # multi-letter extensions, sorted alphanumerically + - const: sha + description: | + The standard Sha extension for augmented hypervisor extension as + ratified in RVA23 Profiles Version 1.0, with commit 0273f3c921b6 + ("rva23/rvb23 ratified"). + + Sha captures the full set of features that are mandated to be + supported along with the H extension. Sha comprises the following + extensions: H, Shcounterenw, Shgatpa, Shtvala, Shvsatpa, Shvstvala, + Shvstvecd, and Ssstateen. + + - const: shcounterenw + description: | + The standard Shcounterenw extension for support writable enables + in hcounteren for any supported counter, as ratified in RISC-V + Profiles Version 1.0, with commit b1d806605f87 ("Updated to + ratified state.") + + - const: shgatpa + description: | + The standard Shgatpa extension indicates that for each supported + virtual memory scheme SvNN supported in satp, the corresponding + hgatp SvNNx4 mode must be supported. The hgatp mode Bare must + also be supported. It is ratified in RISC-V Profiles Version 1.0, + with commit b1d806605f87 ("Updated to ratified state.") + + - const: shtvala + description: | + The standard Shtvala extension for htval be written with the + faulting guest physical address in all circumstances permitted by + the ISA. It is ratified in RISC-V Profiles Version 1.0, with + commit b1d806605f87 ("Updated to ratified state.") + + - const: shvsatpa + description: | + The standard Shvsatpa extension for vsatp supporting all translation + modes supported in satp, as ratified in RISC-V Profiles Version 1.0, + with commit b1d806605f87 ("Updated to ratified state.") + + - const: shvstvala + description: | + The standard Shvstvala extension for vstval provides all needed + values as ratified in RISC-V Profiles Version 1.0, with commit + b1d806605f87 ("Updated to ratified state.") + + - const: shvstvecd + description: | + The standard Shvstvecd extension for vstvec supporting Direct mode, + as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 + ("Updated to ratified state.") + - const: smaia description: | The standard Smaia supervisor-level extension for the advanced @@ -186,6 +237,12 @@ properties: ratified at commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension. + - const: ssstateen + description: | + The standard Ssstateen extension for supervisor-mode view of the + state-enable extension, as ratified in RISC-V Profiles Version 1.0, + with commit b1d806605f87 ("Updated to ratified state.") + - const: sstc description: | The standard Sstc supervisor-level extension for time compare as -- 2.43.0