mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Clément Léger" <cleger@rivosinc.com>
To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Cc: "Clément Léger" <cleger@rivosinc.com>,
	"Palmer Dabbelt" <palmer@rivosinc.com>,
	"Paul Walmsley" <paul.walmsley@sifive.com>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	"Albert Ou" <aou@eecs.berkeley.edu>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Andrew Jones" <ajones@ventanamicro.com>,
	"Evan Green" <evan@rivosinc.com>,
	"Conor Dooley" <conor@kernel.org>,
	"Samuel Ortiz" <sameo@rivosinc.com>
Subject: [PATCH v3 12/20] riscv: add ISA extension parsing for Zihintntl
Date: Tue,  7 Nov 2023 11:55:48 +0100	[thread overview]
Message-ID: <20231107105556.517187-13-cleger@rivosinc.com> (raw)
In-Reply-To: <20231107105556.517187-1-cleger@rivosinc.com>

Add parsing for Zihintntl ISA extension[1] that was ratified in commit
0dc91f5 ("Zihintntl is ratified") of riscv-isa-manual[2].

Link: https://drive.google.com/file/d/13_wsN8YmRfH8YWysFyTX-DjTkCnBd9hj/view [1]
Link: https://github.com/riscv/riscv-isa-manual/commit/0dc91f505e6d [2]
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Evan Green <evan@rivosinc.com>
---
 arch/riscv/include/asm/hwcap.h | 1 +
 arch/riscv/kernel/cpufeature.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h
index 10ebd36f67e0..5b57b24db60c 100644
--- a/arch/riscv/include/asm/hwcap.h
+++ b/arch/riscv/include/asm/hwcap.h
@@ -83,6 +83,7 @@
 #define RISCV_ISA_EXT_ZVKT		65
 #define RISCV_ISA_EXT_ZFH		66
 #define RISCV_ISA_EXT_ZFHMIN		67
+#define RISCV_ISA_EXT_ZIHINTNTL		68
 
 #define RISCV_ISA_EXT_MAX		128
 #define RISCV_ISA_EXT_INVALID		U32_MAX
diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c
index 7c04c03e435f..baa8edfb0e6a 100644
--- a/arch/riscv/kernel/cpufeature.c
+++ b/arch/riscv/kernel/cpufeature.c
@@ -258,6 +258,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = {
 	__RISCV_ISA_EXT_DATA(zicond, RISCV_ISA_EXT_ZICOND),
 	__RISCV_ISA_EXT_DATA(zicsr, RISCV_ISA_EXT_ZICSR),
 	__RISCV_ISA_EXT_DATA(zifencei, RISCV_ISA_EXT_ZIFENCEI),
+	__RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL),
 	__RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE),
 	__RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM),
 	__RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH),
-- 
2.42.0


  parent reply	other threads:[~2023-11-07 10:56 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 10:55 [PATCH v3 00/20] riscv: report more ISA extensions through hwprobe Clément Léger
2023-11-07 10:55 ` [PATCH v3 01/20] riscv: hwprobe: factorize hwprobe ISA extension reporting Clément Léger
2023-11-07 10:55 ` [PATCH v3 02/20] riscv: hwprobe: export missing Zbc ISA extension Clément Léger
2023-11-07 10:55 ` [PATCH v3 03/20] riscv: add ISA extension parsing for scalar crypto Clément Léger
2023-11-08 15:17   ` Conor Dooley
2023-11-08 17:24   ` Evan Green
2023-11-07 10:55 ` [PATCH v3 04/20] riscv: hwprobe: add support for scalar crypto ISA extensions Clément Léger
2023-11-07 10:55 ` [PATCH v3 05/20] dt-bindings: riscv: add scalar crypto ISA extensions description Clément Léger
2023-11-08 14:57   ` Conor Dooley
2023-11-08 15:11     ` Clément Léger
2023-11-07 10:55 ` [PATCH v3 06/20] riscv: add ISA extension parsing for vector crypto Clément Léger
2023-11-09  2:58   ` Jerry Shih
2023-11-09  7:44     ` Conor Dooley
2023-11-09  7:54       ` Conor Dooley
2023-11-09  9:45         ` Jerry Shih
2023-11-09 10:39           ` Clément Léger
2023-11-07 10:55 ` [PATCH v3 07/20] riscv: hwprobe: export vector crypto ISA extensions Clément Léger
2023-11-07 10:55 ` [PATCH v3 08/20] dt-bindings: riscv: add vector crypto ISA extensions description Clément Léger
2023-11-07 10:55 ` [PATCH v3 09/20] riscv: add ISA extension parsing for Zfh/Zfh[min] Clément Léger
2023-11-07 10:55 ` [PATCH v3 10/20] riscv: hwprobe: export Zfh[min] ISA extensions Clément Léger
2023-11-07 10:55 ` [PATCH v3 11/20] dt-bindings: riscv: add Zfh[min] ISA extensions description Clément Léger
2023-11-07 10:55 ` Clément Léger [this message]
2023-11-07 10:55 ` [PATCH v3 13/20] riscv: hwprobe: export Zhintntl ISA extension Clément Léger
2023-11-07 10:55 ` [PATCH v3 14/20] dt-bindings: riscv: add Zihintntl ISA extension description Clément Léger
2023-11-07 10:55 ` [PATCH v3 15/20] riscv: add ISA extension parsing for Zvfh[min] Clément Léger
2023-11-07 10:55 ` [PATCH v3 16/20] riscv: hwprobe: export Zvfh[min] ISA extensions Clément Léger
2023-11-07 10:55 ` [PATCH v3 17/20] dt-bindings: riscv: add Zvfh[min] ISA extension description Clément Léger
2023-11-07 10:55 ` [PATCH v3 18/20] riscv: add ISA extension parsing for Zfa Clément Léger
2023-11-07 10:55 ` [PATCH v3 19/20] riscv: hwprobe: export Zfa ISA extension Clément Léger
2023-11-07 10:55 ` [PATCH v3 20/20] dt-bindings: riscv: add Zfa ISA extension description Clément Léger
2023-11-08 14:59   ` Conor Dooley
2023-11-09 10:42     ` Clément Léger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231107105556.517187-13-cleger@rivosinc.com \
    --to=cleger@rivosinc.com \
    --cc=ajones@ventanamicro.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=evan@rivosinc.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@rivosinc.com \
    --cc=paul.walmsley@sifive.com \
    --cc=robh+dt@kernel.org \
    --cc=sameo@rivosinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®