From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD58B36F435; Wed, 28 Jan 2026 20:10:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769631033; cv=none; b=M5iXrl1T/ev0erzwA7liYCdWP7TgGOI+krMD8WcYsCRLSworIjHPkRtS1LErKBFDA5M9/MyT3B2wluJ/bsYikDrtbpvhdTHh32V52HXqfNzXIIChWfaE/zyeFWq6Nkjhlah2A2ZFNnCRonjqk1RelpeuG8RHvLvOosUYBHhU9eQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769631033; c=relaxed/simple; bh=cbUTU7UNDP0PcQPrkgEPxOaWJaIp7t5a4TDdNENC9sQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N3r9t2wQVnvi+bG1Mo5ylhYfk+nv4Lvd5ivtQGdGPbPifA1Fs4EkvSHjmmX58otqpXlqbW0CU7Du1DKagl4BTxvLPUWsKiMNapv/VUu3oFLEP/Z/H5PvF4H0qZMuaB5wy4+oMcePJ8nr9trAe/Q35X/t3JPzseW+2OfSIh7RmsE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RyHHTAlK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RyHHTAlK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 278F7C4CEF1; Wed, 28 Jan 2026 20:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769631033; bh=cbUTU7UNDP0PcQPrkgEPxOaWJaIp7t5a4TDdNENC9sQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RyHHTAlKb5eS4BFX+Ch9ajyVf8ZIjISXgZhpX65ZmewBuzaGEjODnpepq0cOhxXk+ W9UaEu3RJk+MAqDZ3u9jGCKTdLdT3toK6JV7DrCPovZkLjRxpUi8Qcn9txEPHy9Y+1 KrLShf3iCnzBS8+GW/3JnqVlaId+Xq0SmY8+3LGVboM1vmvI7SCh9PHzP44d4301OE mcdeHvsYe/MHNgvuNf1CQj8Smc1ZXZVDt42NChEyssMcY0BbdimGVWmUWqOoKZoyOP NKbAg8iGCxIs8bymtpsQ19QZfpg9uKtAK9CRTvMX7VXmUp2NvcjXXqKpRSFPAUDSpT wwpo2DdbEvCag== Date: Wed, 28 Jan 2026 20:10:28 +0000 From: Conor Dooley To: Guodong Xu Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Samuel Holland , Heinrich Schuchardt , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Evan Green , Andrew Jones , Conor Dooley , Paul Walmsley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: riscv: Add Supm extension description Message-ID: <20260128-steering-luckless-565bb14495a1@spud> References: <20260125-supm-ext-id-v2-0-1e3b9714c860@riscstar.com> <20260125-supm-ext-id-v2-1-1e3b9714c860@riscstar.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qxguFY5XCRtrbMWp" Content-Disposition: inline In-Reply-To: <20260125-supm-ext-id-v2-1-1e3b9714c860@riscstar.com> --qxguFY5XCRtrbMWp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 25, 2026 at 09:36:06AM +0800, Guodong Xu wrote: > Add description for the Supm extension. Supm indicates support for pointer > masking in user mode. Supm is mandatory for RVA23S64. >=20 > Add dependency check that Supm requires either Smnpm or Ssnpm. >=20 > The Supm extension is ratified in commit d70011dde6c2 ("Update to ratified > state") of riscv-j-extension. >=20 > Signed-off-by: Guodong Xu FWIW, this is missing my 6.20/7.0 (whichever it ends up being) PR cos I'd like some other folks to look at the series. If Paul/Palmer are happy with it though, Acked-by: Conor Dooley Cheers, Conor. > --- > v2: Add dependency check for Sump. > Put the check blok after single-letters and before Z*. > --- > .../devicetree/bindings/riscv/extensions.yaml | 27 ++++++++++++++++= ++++++ > 1 file changed, 27 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Do= cumentation/devicetree/bindings/riscv/extensions.yaml > index c6ec9290fe07..2b0a8a93bb21 100644 > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml > @@ -262,6 +262,23 @@ properties: > ratified in RISC-V Profiles Version 1.0, with commit b1d8066= 05f87 > ("Updated to ratified state.") > =20 > + - const: supm > + description: | > + The standard Supm extension for pointer masking support in u= ser > + mode (U-mode) as ratified at commit d70011dde6c2 ("Update to > + ratified state") of riscv-j-extension. > + > + Supm represents a combination of underlying hardware capabil= ity > + (Smnpm or Ssnpm), U-mode consumer privilege level, and M/S-m= ode > + software configuration that enables pointer masking for U-mo= de. > + > + DO NOT include this property in device trees targeting privi= leged > + system software (S-mode or M-mode). > + > + This property is only appropriate in device trees provided to > + U-mode software where the next-higher-privilege-mode supports > + Smnpm or Ssnpm and enables it for U-mode. > + > - const: svade > description: | > The standard Svade supervisor-level extension for SW-managed= PTE A/D > @@ -907,6 +924,16 @@ properties: > then: > contains: > const: b > + # Supm depends on Smnpm or Ssnpm > + - if: > + contains: > + const: supm > + then: > + oneOf: > + - contains: > + const: smnpm > + - contains: > + const: ssnpm > # Za64rs and Ziccrse depend on Zalrsc or A > - if: > contains: >=20 > --=20 > 2.43.0 >=20 --qxguFY5XCRtrbMWp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaXptMwAKCRB4tDGHoIJi 0i/IAPwIYQeMxvZnB3qX0r5k2G4LWuHgJmduU+vhmMmN4Dp59gD/S6sCI+hDlciv V3PF2CQwUvIJFEDbW9Mt1wkk+BIUggk= =TPgz -----END PGP SIGNATURE----- --qxguFY5XCRtrbMWp--