From nobody Sun Feb 8 14:52:06 2026 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 084C1472006 for ; Thu, 8 Jan 2026 12:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875275; cv=none; b=JDP77fU9fKkiLLw+ohDYvUUD0M1FcsGqJuA9Mc/m6k270OL3LlanVvHdMVdVGBeZcHypKu4TxNUatcgFw/ktyCHieht/Ap2WmtNgPNN0SyBeT+8d7y2WiAGz+na7Vpth1PocLK0ZkAohFZS81WzkEZCuvnpXz00mkQnTnkOOQqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875275; c=relaxed/simple; bh=9i98spOttY2+pSY3C1YkNBPDmYrEvuZoRZJ/UHtvLAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JxFSY9YyXVLnZvXwB4pr3PgnqtWVEBdFNkrXOkZTy4gCEaxWPj8xxRqe8kyZ8zj0yb24HuCketgPJPUSP4v8NQFnECtITZKTda5k8X/vR8FNs49q71vdWZMIb4A1UBgeCnQbUJOAJfDGn7i9wFQJKO/vooAi/UVZFHZNdsmUW3M= 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.171 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-f171.google.com with SMTP id d2e1a72fcca58-81c5ff546f6so457131b3a.1 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=UORXPuT1mVVs0veLIrAAXpurKkjbWRftt54srI45dP7RlDjX4e2ihbh6/CYY1X5Udw oGy/Y6ssPyKNhyo2rMIkpXyorN6xhq6FtrHITQgK+3uckBdrsnhyec+ubcR1aXvn/jam xyX7krWyP/O/sIH7UbeWf5ps7YLOTLO7KWqiwVeuZnToloDw3gp28Bo2C65QtBTUxl9t QtkZbvgSBjC5+bTxlFfcXvEd9Yret6hPBipRUvuu2kd9OwFCuOsiD1hmIhWvvQHa4Gmt HeAOADoS44dG5fsgXlNmlzpdfCHIVZicmZ+eym5O1HYmGrBaStWw6Vnr7ks92uA7WIAp hA7w== X-Forwarded-Encrypted: i=1; AJvYcCXE5sNmtPM26+c86VVcn1WdVUXALWtyYyB2pIgsum1GvcBUJqwaPI1ocCzWPTUGaqL8iId7cn1UUmANxvQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwNSsv53QS3IgyUTIGmhvggvQlCz65zpJr9o3Wz326no27b+xVE OU9R3wWxbLyGO7rY3u9qNiX3iX+MhPtmcdBwu5RXWH0IFn0o0ImaFbkBpRl239UeOkE= X-Gm-Gg: AY/fxX4TnwTomZQyuYkqUSxasaC4BlRVSGYhO0L+dvbBQCUnCHhMX5CzW2AfI7iN6p7 MZuQV3LNAKgfxXW6HZv9rlZw/jK4O3EdFQLGjercYd0SG1GammoM6EzgNLDstR6nJFifjlklVWf 3tr4ZW7+IL+IpJPcX0E/Cw6LvzU3ahg8AEuXxZWoAPQ19IQkgMHIOa48updoOIaCYDxtA5EpK9r 5nWyW2xnAQVZYaGHaqvCOI3+saVsMhORikPuU5iDbnghQx7kUxBY0U02y/vZ2HPz6VkIALJv6Os dh5xNkTmc3QCYC7ilsTpigbto4BihFw+7PaeYB7nYEYN2dgOcIolYC7ouq4xPj8OvP7i1nFKdd7 sYFyEVdYhye5WLnCmeRl64oBRSLU+nUu9DLHBLAeQCebmV9TSfxu+rgkCuE+KKAa9roWmVWXazv pFvt0+hRjHA5C84Qc9JipoqnLSEKNBMgg= 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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/Docu= mentation/devicetree/bindings/riscv/extensions.yaml index 78b75ab0a473b60508f72fc30d4809a797a2c40a..839f48503f8246864495f7cda93= a572b01351b0c 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. =20 # 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 0273f3c921= b6 + ("rva23/rvb23 ratified"). + + Sha captures the full set of features that are mandated to be + supported along with the H extension. Sha comprises the follow= ing + extensions: H, Shcounterenw, Shgatpa, Shtvala, Shvsatpa, Shvst= vala, + Shvstvecd, and Ssstateen. + + - const: shcounterenw + description: | + The standard Shcounterenw extension for support writable enabl= es + 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 support= ed + 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 trans= lation + modes supported in satp, as ratified in RISC-V Profiles Versio= n 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 b1d806= 605f87 + ("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. =20 + - const: ssstateen + description: | + The standard Ssstateen extension for supervisor-mode view of t= he + 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 --=20 2.43.0