From nobody Sun Feb 8 15:07:47 2026 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 C48DA3385B5 for ; Fri, 16 Jan 2026 02:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768529460; cv=none; b=Oe/C5TZPYWdl6yDXh0duam/BWaCU4k5OZ/c49klCz0C7oNDB7gyEoeRqfuJp2iwZK7n/8rL0EuBT5hWUZZGb11u+e8jrBJm0sjw2somsr5KnVCVnlv70Avnx9yivXaprO5VhUtO+Jiyk5Qk380U9GzoG+bborcSZA2ixE8jk+YE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768529460; c=relaxed/simple; bh=N8syuPJHM/RDgseVkBo3sE15yFV/OMCXP+RAlXifSjU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZjBFSr33gjvwHB+6Ex9ws5CjBI6f2wEqGO2of77xY5HtGQ6asPEw32gnjvsQhCtX9R9Bfcbt90/FnA7mzOoCSCX52ANuzm59vIkUXTOq4oq8CEwuGXNB5Wu+2NZdRX6v+WM1rmrk5w/JlYV+c6kfvoSz1V6wcB55GXyMaqBMpoE= 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=mNIXGAlb; arc=none smtp.client-ip=209.85.216.53 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="mNIXGAlb" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-34c7d0c5ddaso905787a91.0 for ; Thu, 15 Jan 2026 18:10:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1768529457; x=1769134257; 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=3qBoetBmeJm3JJ7+522wExgCek3WhGfFdkGVZeCPvt8=; b=mNIXGAlbWn6ek9ZItxk1eNHXQ6AhLoiQKWV3bSEKMqG5njQqFnbRrSHHjiq5uubehq E6/UNBuF6YyUk/gShSa/Zt5g0XVD6XjYC9ZKEDXxE0y/72WglTdGd4iUZa8ak+h9LaSD M4sL2gV2bD8iG7SHRx4AQDBXNTbN7r/yqmaEJqfZ7l/JLV05mChw//YnwD+MXyxcQF0Q fVC38N5i9pzJzwfWz3rYcK9/QM3wcnvYb9isOT8ovZF+igeMJoKPH19SeaQiCgdvi5fG CzvR2QE9aqhMAGwjFG09DhO7wfIkHECtOZyPZYGpakWGPSgR3ZgXPWxA0Xh10Jjg2+yS hvNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768529457; x=1769134257; 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=3qBoetBmeJm3JJ7+522wExgCek3WhGfFdkGVZeCPvt8=; b=qzJhEN3GjxJq1uZUsFaY8GQkXGj2v+/UAZ0fhrWlWJbGN6tX9pKS89A6BqiEnHba/N OSMHrROr4HesPbRnVKoAZ5YkMVGem2CyvTtjfzE/ixtUP1UB9yqdmYY365qAXwlAXw7U 99dgEk8OVbYFB1Gl+F+isaXEIQYZKAJG7z2A8yb2MdRZBRtQwKtmvdf4i4srOtRWqGr2 chtFK/LmWs09CcP7g9zGARSSX+SeIOmn3Xbic1FhZvmI89Ynb6i/6S3tEJQNpEm7gnxB xfwvK7L4tQnTAnZc+3Uxzr6XLRYEOD40fTprnkXKxgXUU/tUKQaM2FBucrz2tksDVZ0G n80g== X-Forwarded-Encrypted: i=1; AJvYcCWWm0lMUV1PUyX0zVPHcs6hXtZOcC3KFCwdAGNOUgCpP6KlfTRRDRyaBwRKhliNASwrQYiRgAJaTfKJVtQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxqYK/BtskTLgdc8/ZzibD+9wAIQ1/EfSsgnFsk8bLwhitvcSVD N7quQGsOM0CdI96ht2WzImOw08WzX0hWQAGE52JYYblWz/GJ3qrxiHAeYvpL+7AnBCA= X-Gm-Gg: AY/fxX5M5nQpPnq07jA49aYTwcBRhK6VhShN4Gbxx1L1l0/ciWhrEYIcR90qu2whD7x Q8ka/y0npm9jxCpXFOUh2HIQsFjz4FHkUWg9p8n9loJYS39iJWzvlU4w4QtHGOLCXsWRjYI1ECt eLr8flkO573fBkS4s6GRj4oDi6NKcchfmgLOD7+hYOhVU7cQ9QudjJBtDmdlDVs6K2LR1FQXVON hnn2mTT8wHxRaNraaXxeLESFHun/BlPF8v5IOIqm88CJKaM61BCDFpp1sVFit9Lk5EOKpJZUPxN DZae6qcjlfUtkSKS6ah+0MzRYZzMSU/DWzyelm+j+leNUbFJarf4CVzu79DLMjJk0XL6EJPwG2x q3Ai2XuNX18RsJhtvX1Kloo4+VIva7izoM2bqf3EviQWgV1XZUtYCAg0p6SwAbllGn+JteUbLhr AZwH8EnZn/ySJ4UOcTsLYyIif8AFRpB/f9gEjpBMwQ43ZqW6aM/pQsFA== X-Received: by 2002:a17:90b:58ec:b0:340:8d99:49d4 with SMTP id 98e67ed59e1d1-352677ed61bmr4296095a91.1.1768529457188; Thu, 15 Jan 2026 18:10:57 -0800 (PST) Received: from [127.0.1.1] ([45.8.220.151]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35273298968sm364317a91.0.2026.01.15.18.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:10:56 -0800 (PST) From: Guodong Xu Date: Fri, 16 Jan 2026 10:10:31 +0800 Subject: [PATCH 1/3] dt-bindings: riscv: Add Supm extension description 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: <20260116-supm-ext-id-v1-1-5fcf778ba4a6@riscstar.com> References: <20260116-supm-ext-id-v1-0-5fcf778ba4a6@riscstar.com> In-Reply-To: <20260116-supm-ext-id-v1-0-5fcf778ba4a6@riscstar.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Samuel Holland , Heinrich Schuchardt , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Evan Green , Andrew Jones Cc: Paul Walmsley , Conor Dooley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu X-Mailer: b4 0.14.3 Add description for the Supm extension. Supm indicates support for pointer masking in user mode. Supm is mandatory for RVA23S64. The Supm extension is ratified in commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/riscv/extensions.yaml | 17 +++++++++++++= ++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Docu= mentation/devicetree/bindings/riscv/extensions.yaml index 4ffd61926505..1922dff03787 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 b1d806605= f87 ("Updated to ratified state.") =20 + - const: supm + description: | + The standard Supm extension for pointer masking support in user + mode (U-mode) as ratified at commit d70011dde6c2 ("Update to + ratified state") of riscv-j-extension. + + Supm represents a combination of underlying hardware capability + (Smnpm or Ssnpm), U-mode consumer privilege level, and M/S-mode + software configuration that enables pointer masking for U-mode. + + DO NOT include this property in device trees targeting privile= ged + 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 P= TE A/D --=20 2.43.0 From nobody Sun Feb 8 15:07:47 2026 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) (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 734EA339B43 for ; Fri, 16 Jan 2026 02:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768529465; cv=none; b=BOWhN5xFQ9I9gNUAJuQLJa7CAlcWRDNyYRmpFa++GnuMjfEtZNhr4Dr5kPsTAp0+h1MVsS2r8CTUOVFNntAwwsvpokuuGRPfPpEwvZeGN/7BwZDllEVwEu0IjIs/lgMzo7FzvIWsOxRbATwXqBr8HGJdILfXQUT29kVLl126W+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768529465; c=relaxed/simple; bh=ong0g8BWW13j2+imyHoB4E24TMNHE1kNgiYLhqR3Y00=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GvddscrNBaW1Es/lKw4plU0X9Jpp6M3t1wl5gRwvTZFBiiOq7YkQPA/C6P8pP7/57ZkxX5pSurZSB5FJZhBUA3bIq3hnjDu/ohhgu1R9BVKeCH094oXkkFk6FZl5Sja64+kO6QGIzLwr1Td22HBsP2Gba6QiCLHgItDFtw8BK5I= 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=T2tNuTft; arc=none smtp.client-ip=209.85.216.68 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="T2tNuTft" Received: by mail-pj1-f68.google.com with SMTP id 98e67ed59e1d1-34c2f52585fso804588a91.1 for ; Thu, 15 Jan 2026 18:11:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1768529463; x=1769134263; 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=BXny++fuaUYh/9d0tAiw1EejR1b07lFNBxlkkPwo9D4=; b=T2tNuTftipbCkg3h+/OPUAHRxCb8UvzeS6VI5kffLByItNAnlMr2xKsPqP4ItHavp7 i6ld5jv9V8c2gKqcV5f3vRWm1gMZxTUHAAiw+Wp60FoO4tPSj3ICsQ1wV2RobkTt2f3j I1xU48xhmVAZphhqUkT1oheBVK2mPfjseqadloey2dwQgeAnglvrzXkl6rJOBPHy25VK VA4PGp9ml6i/AbTaOkRggTcYhlm03bnmrnzzuTP+BPt3WvHM0dFw90viBGzeZX9ZuzN6 NxXByEFrcubWFBjg0z2MObCLUv+xBNb8BD3DUihRA9PZyM84xrIyLECZqPY90MJOMEWE nxbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768529463; x=1769134263; 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=BXny++fuaUYh/9d0tAiw1EejR1b07lFNBxlkkPwo9D4=; b=o45j9stZ4lUCZFmebVvTEyT4NH6SNDaONzHRdPhMe+H+MOVOwKuBW3V8scFfmpbExN +Zwm8S+ANlJUqtQDq5o/WWL4Dx/SnlJ+2mS8Wbf8WstPlw8rkx1ebyzbyjAgu88iLwaH 7Eydq8LKUfkfIN7YC22PQoqvUIko2RgZ1VTAigLJ/vEv/GXh2UWvYYraAV8OkyerjQk+ VT2SNzV9a+sWNDynzJMKkIQuqVAbOQB7lDujcBS8xivpa8vtI1TolFYBkPwCyvdnSSh7 PqOIDn6/ito58cFbSj4LPCvtqULprpyYTIfloSO/c4exWWA56n/NlrDj4FExddHa0KPI Y9cg== X-Forwarded-Encrypted: i=1; AJvYcCVFnEaR0sYzw+ROsLZ8/mtwJLSYfO3i/1EGYR2phPTpoLqn7rNqrL4Arbp3yWsEESVypyKfxH31iM9sHvw=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+nRr0fdkn3RgQwSWaoZFkoI96xQ6YNynfTE5SoEgQygg4lA05 pTCn1NDlOiBzzn7kLmCkbKhBpdfo7blw8Zm0ftApidtD5M4yQBz4me9DKxFx4rWqrjI= X-Gm-Gg: AY/fxX7gepjoLrgVWmWWe43taDT8E2QdbHnHShnA1mUVNsAG6ddfZoN7i6OmKBs1mJl xaPG4n4S6h93/cSoQJprVo0Kr3ad7dlLCp0lHeXiB4SUAL7CAVB+xMAmMmBe0nCA2a4S9KMOP9P xnu1go7L9KvGdzN34kgD9DDHHNQAi/XtBEQmAqGAZv05BVdBCqmDLA2Hc0nKLrk+Nb2Ojz5MTu2 ubYKihMn+P4lC9MizG7orvFkTjAxUAMyIqhwxsU10hWLCq7K2jzoALvHrIBNecKCAUZhidu+f4b rI/ET4N3gB6atl9A1KMD7I5Mnd749QFNpZDsMn2e580jeGGOQoe2G1CVAzzakPxyMcE6fMroaBE uhsnX1PkQo9R8HfN+iWxUGzsrUmEDgFDFHrKPLE5v/nObx2dmSsHa6icggZc8YNNLM/+FobF5Kp 0ZSK2qePaE0VI/0Bd/tu6pNrDD9p4FV0kaLyMUqVBphwfos1XHAqDHTA== X-Received: by 2002:a17:90b:1e0b:b0:34c:f5b5:c1b6 with SMTP id 98e67ed59e1d1-35272f028a0mr1410360a91.12.1768529462750; Thu, 15 Jan 2026 18:11:02 -0800 (PST) Received: from [127.0.1.1] ([45.8.220.151]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35273298968sm364317a91.0.2026.01.15.18.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:11:02 -0800 (PST) From: Guodong Xu Date: Fri, 16 Jan 2026 10:10:32 +0800 Subject: [PATCH 2/3] riscv: cpufeature: Add ISA extension parsing for Supm 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: <20260116-supm-ext-id-v1-2-5fcf778ba4a6@riscstar.com> References: <20260116-supm-ext-id-v1-0-5fcf778ba4a6@riscstar.com> In-Reply-To: <20260116-supm-ext-id-v1-0-5fcf778ba4a6@riscstar.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Samuel Holland , Heinrich Schuchardt , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Evan Green , Andrew Jones Cc: Paul Walmsley , Conor Dooley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu X-Mailer: b4 0.14.3 Supm has been ratified in the RISC-V Pointer Masking specification (Version 1.0, 10/2024) and is mandated in RVA23 Profiles (Version 1.0, 2024-10-17) for RVA23U64. Supm indicates userspace pointer masking support. Remove the previous macro aliasing of Supm to Ssnpm/Smnpm in hwcap.h, treating Supm as a distinct RISC-V ISA extension ID. Add ISA parsing logic for Supm, and implement a validator to ensure that Supm is only reported as available if Kconfig allows it and the underlying Ssnpm (for supervisor mode) or Smnpm (for machine mode) extension is present. Supm relies on Ssnpm or Smnpm to provide the underlying hardware implementation. With this change, "supm" will be reported (when available) in /proc/cpuinfo as part of the "isa" and "hart isa" string. Link: https://lore.kernel.org/lkml/20260101-legume-engraved-0fae8282cfbe@sp= ud/#r [1] Link: https://lore.kernel.org/all/4ebbe14b-2579-4ba6-808d-d50c24641d04@sifi= ve.com/#r [2] Signed-off-by: Guodong Xu Reviewed-by: Conor Dooley --- arch/riscv/include/asm/hwcap.h | 3 +-- arch/riscv/kernel/cpufeature.c | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index 4369a2338541..7653e5cff9ae 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -110,6 +110,7 @@ #define RISCV_ISA_EXT_ZALASR 101 #define RISCV_ISA_EXT_ZILSD 102 #define RISCV_ISA_EXT_ZCLSD 103 +#define RISCV_ISA_EXT_SUPM 104 =20 #define RISCV_ISA_EXT_XLINUXENVCFG 127 =20 @@ -118,10 +119,8 @@ =20 #ifdef CONFIG_RISCV_M_MODE #define RISCV_ISA_EXT_SxAIA RISCV_ISA_EXT_SMAIA -#define RISCV_ISA_EXT_SUPM RISCV_ISA_EXT_SMNPM #else #define RISCV_ISA_EXT_SxAIA RISCV_ISA_EXT_SSAIA -#define RISCV_ISA_EXT_SUPM RISCV_ISA_EXT_SSNPM #endif =20 #endif /* _ASM_RISCV_HWCAP_H */ diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index fa591aff9d33..39680280f858 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -296,6 +296,27 @@ static int riscv_ext_svadu_validate(const struct riscv= _isa_ext_data *data, return 0; } =20 +static int riscv_ext_supm_validate(const struct riscv_isa_ext_data *data, + const unsigned long *isa_bitmap) +{ + if (!IS_ENABLED(CONFIG_RISCV_ISA_SUPM)) + return -EINVAL; + + /* + * Supm requires Ssnpm for S-mode or Smnpm for M-mode to provide + * pointer masking for the U-mode execution environment. + */ + if (IS_ENABLED(CONFIG_RISCV_M_MODE)) { + if (__riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_SMNPM)) + return 0; + } else { + if (__riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_SSNPM)) + return 0; + } + + return -EPROBE_DEFER; +} + static const unsigned int riscv_a_exts[] =3D { RISCV_ISA_EXT_ZAAMO, RISCV_ISA_EXT_ZALRSC, @@ -429,6 +450,15 @@ static const unsigned int riscv_c_exts[] =3D { RISCV_ISA_EXT_ZCD, }; =20 +/* + * Smnpm and Ssnpm provide pointer masking for the next lower privilege mo= de + * (U-mode), thus enabling Supm. Both extensions imply the same subset. + */ +static const unsigned int riscv_supm_exts[] =3D { + RISCV_ISA_EXT_XLINUXENVCFG, + RISCV_ISA_EXT_SUPM +}; + /* * The canonical order of ISA extension names in the ISA string is defined= in * chapter 27 of the unprivileged specification. @@ -552,12 +582,13 @@ const struct riscv_isa_ext_data riscv_isa_ext[] =3D { __RISCV_ISA_EXT_DATA_VALIDATE(zvkt, RISCV_ISA_EXT_ZVKT, riscv_ext_vector_= crypto_validate), __RISCV_ISA_EXT_DATA(smaia, RISCV_ISA_EXT_SMAIA), __RISCV_ISA_EXT_DATA(smmpm, RISCV_ISA_EXT_SMMPM), - __RISCV_ISA_EXT_SUPERSET(smnpm, RISCV_ISA_EXT_SMNPM, riscv_xlinuxenvcfg_e= xts), + __RISCV_ISA_EXT_SUPERSET(smnpm, RISCV_ISA_EXT_SMNPM, riscv_supm_exts), __RISCV_ISA_EXT_DATA(smstateen, RISCV_ISA_EXT_SMSTATEEN), __RISCV_ISA_EXT_DATA(ssaia, RISCV_ISA_EXT_SSAIA), __RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF), - __RISCV_ISA_EXT_SUPERSET(ssnpm, RISCV_ISA_EXT_SSNPM, riscv_xlinuxenvcfg_e= xts), + __RISCV_ISA_EXT_SUPERSET(ssnpm, RISCV_ISA_EXT_SSNPM, riscv_supm_exts), __RISCV_ISA_EXT_DATA(sstc, RISCV_ISA_EXT_SSTC), + __RISCV_ISA_EXT_DATA_VALIDATE(supm, RISCV_ISA_EXT_SUPM, riscv_ext_supm_va= lidate), __RISCV_ISA_EXT_DATA(svade, RISCV_ISA_EXT_SVADE), __RISCV_ISA_EXT_DATA_VALIDATE(svadu, RISCV_ISA_EXT_SVADU, riscv_ext_svadu= _validate), __RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL), --=20 2.43.0 From nobody Sun Feb 8 15:07:47 2026 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) (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 6DB0E3385AB for ; Fri, 16 Jan 2026 02:11:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768529469; cv=none; b=O48BiBwgDVtrADbjRbG/FR3E5JjbvmopAhV+sgd+Q9TdM3RNlCfDipcBLbVBO2enQzbtgjOJVa8vQXis0Gqub+xws6a61opEPKtiWgPGhWS2kDT1V7e+bf/PMbZRyciZmsh++Kdd7PMApjGnEALj3BaHGdlz2oJerD9a16/8fHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768529469; c=relaxed/simple; bh=mKysT8KHFLSQa82JbMTMgsFtGY4HtAheNrYCiZp6zik=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sxVWWmpmg7PGBMofRM3ukFyQtSmFFcVWUlIRjYYl/qFIL2EM7rz82qAy4R0mHksM3yGPq3QOylYpK0BSrWeQ/v3jdfE3hdSwRxtTsBBAPnqKPX9Nsw8qgj08FY0h2oI05/WaqFC8vGfIg80w30MFW64pLxs0cDpcvcrJ+dHDGKQ= 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=RQCiCy2Z; arc=none smtp.client-ip=209.85.216.66 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="RQCiCy2Z" Received: by mail-pj1-f66.google.com with SMTP id 98e67ed59e1d1-34c21417781so771198a91.3 for ; Thu, 15 Jan 2026 18:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1768529468; x=1769134268; 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=pwFSLskB5z1f9GmQNZjd3nH+m9L8SGHLoRABIaKF0a8=; b=RQCiCy2ZW/d54KZcP7nLFQeJ5e1juEKheOtQdNVSRQQKLUeSnwbPRsutE4HvGmOaT8 sdVqm0LHwbANEQjKIMkiObRQEcN1TjifTv4h5/AzRD/WfgyPc9OmHRRJh3dNWQCkLBdM kxtG15hph9YKMb0NzjBchHYIpwEBLfIJ2eXWHakn9q28HUAGYmchY7zB/e/Z9T62SiUp jdXD8adR6B/WPC7XikLL1il4pk8J6SjBXfRabJGLuSzFkzMMxZrcHTwLHaQcTuLreDNb gcxF6OEsZa9eIXNPKAZPC9W6BxUN54vmn8v7/oNy657eGz+EP7Dmjb+vFgrlh6zDxAKt 2C9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768529468; x=1769134268; 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=pwFSLskB5z1f9GmQNZjd3nH+m9L8SGHLoRABIaKF0a8=; b=jWmNb+phwblS17UW8WtvT3MwBHonGRXlPy69X8K37rbf7KsTM4e0c2PMXlG4yBV3Mj HL3qabu5yf9xPcjK4Rc40thC2dduLojldzP67QQ/z0A7y3jC4wwoK25nkOEenD2SXDLq SddbiqNVwgVRn5ELVVQywY10AY9AuLqg+tROQdr27yuBTTot4ZC2WJ1MNqc4UuVTuDNC /qUu8Ir3wL7KdBTIzaI48++0gS/p/+XDk9eFA92G5Hr3RH+q++Q6U/riT3QEwhrlFrvD X+x5MISigt3onphdl98uJDqd/24vZU+Il8w2NbVCNWfAxRx8L5vjWX3YHa+nYVJVIL/0 o/KQ== X-Forwarded-Encrypted: i=1; AJvYcCW93pm7nS9KVLfHJFOTDsRcpqG1sPrCz4JCiOVL0hwFiaPvN2Vj3if0yQ7Sc1kVMOcqckALW1bOY5Og/e8=@vger.kernel.org X-Gm-Message-State: AOJu0Yzjnp9uMgfxr9Oz9WnALKIELP8IQZB/FRqCxSDun9ybBVzljK4h Q8ULZ6i99+zG3OEiV0MOl1RD1g5vdQ2mdkc2oqkZjGz49YxAS6/2PYgbojl+r1E1AnOsA+RUk1M f6RUGkPz/wg== X-Gm-Gg: AY/fxX7PSWCYSZArlqxKlC2aBaBB0d6OKRzsHpb5o8bJrCYhIH58+OriS3u2Sk6APm6 HJI73EzalWR5SO1kaH5ndoQb8DT7dRtcHdkkzXA/oYqcBgg1KAAYDR31PpH35Bhap765u9M+4Jx NU/djJjJpt2EX98a0PUoV5sHE3t7vC0I8ZiMao6M4tVD9xp7ggHCzC+hWMKeeQwKnw2862YHx6Y aS7SbgpbFW9WnvB8dvcjaRzIvPLKaaCJZX/vJ+R61B1KztRQj27IjLBj8uLZ6hTXC+NdsGZKs4U RNYp9YNOp4ON3CxdSZ0AQvxS0mDSh6D4Hz5Lv68M8KNbxOvpqPNqIPcuWhp2+4/mhCcnU8efFJO lst1WiAiS/XZKN4lQPg/4TdnEtXT3A4hyNuafKPIrD1woVqc6+VhqA9YGpIuqkSPxWUbn778RIe oUNVHDMX4xXf1PmpHRR3ogbqNAS8tQGrwZ0p7r062P1fROEj0d73/QMg== X-Received: by 2002:a17:90b:3d92:b0:34a:b4a2:f0bf with SMTP id 98e67ed59e1d1-35272f1a894mr1404668a91.16.1768529467866; Thu, 15 Jan 2026 18:11:07 -0800 (PST) Received: from [127.0.1.1] ([45.8.220.151]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35273298968sm364317a91.0.2026.01.15.18.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:11:07 -0800 (PST) From: Guodong Xu Date: Fri, 16 Jan 2026 10:10:33 +0800 Subject: [PATCH 3/3] riscv: cpufeature: Clarify ISA spec version for canonical order 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: <20260116-supm-ext-id-v1-3-5fcf778ba4a6@riscstar.com> References: <20260116-supm-ext-id-v1-0-5fcf778ba4a6@riscstar.com> In-Reply-To: <20260116-supm-ext-id-v1-0-5fcf778ba4a6@riscstar.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Samuel Holland , Heinrich Schuchardt , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Evan Green , Andrew Jones Cc: Paul Walmsley , Conor Dooley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu X-Mailer: b4 0.14.3 Specify that chapter 27 refers to version 20191213 of the RISC-V ISA Unprivileged Architecture. The chapter numbering differs across specification versions - for example, in version 20250508, the ISA Extension Naming Conventions is chapter 36, not chapter 27. Historical versions of the RISC-V specification can be found via Link [1]. Link: https://riscv.org/specifications/ratified/ [1] Fixes: 8135ade32c0db ("RISC-V: shunt isa_ext_arr to cpufeature.c") Signed-off-by: Guodong Xu Acked-by: Conor Dooley --- arch/riscv/kernel/cpufeature.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 39680280f858..629984df1e7b 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -461,7 +461,8 @@ static const unsigned int riscv_supm_exts[] =3D { =20 /* * The canonical order of ISA extension names in the ISA string is defined= in - * chapter 27 of the unprivileged specification. + * Chapter 27 of the RISC-V Instruction Set Manual Volume I Unprivileged I= SA + * (Document Version 20191213). * * Ordinarily, for in-kernel data structures, this order is unimportant but * isa_ext_arr defines the order of the ISA string in /proc/cpuinfo. --=20 2.43.0