Skip to contentSkip to conversation

riscv,isa-extensions additions

PATCH Applied Conor Dooley 6 participants 16 messages Oct 9, 2023 – Nov 12, 2023

Subsystems (9)
lore
Share & tools
lore

Conor Dooley

author maintainer
#0 lore raw

v3 cover riscv,isa-extensions additions

Now with the RFC tag dropped. There are no changes here from "RFC v2", other than the addition of tags that were provided along the way. I have not added "Zfh" to the T-Head based stuff, as I can't actually read the documentation that would show that they're encoding-for-encoding compatible with the standard extension, since it is apparently only in Chinese.

The canaan stuff is absent here, mostly because I don't actually know what to do with it. They don't actually implement the same versions of the F stuff as everyone else (Stefan O'Rear pointed that out to me somewhere recently).

Cheers,
Conor.

CC Rob Herring <[email protected]>
CC Krzysztof Kozlowski <[email protected]>
CC Conor Dooley <[email protected]>
CC Paul Walmsley <[email protected]>
CC Palmer Dabbelt <[email protected]>
CC Albert Ou <[email protected]>
CC Chen-Yu Tsai <[email protected]>
CC Jernej Skrabec <[email protected]>
CC Samuel Holland <[email protected]>
CC Daire McNamara <[email protected]>
CC Geert Uytterhoeven <[email protected]>
CC Magnus Damm <[email protected]>
CC Emil Renner Berthing <[email protected]>
CC Jisheng Zhang <[email protected]>
CC Guo Ren <[email protected]>
CC Fu Wei <[email protected]>
CC Chen Wang <[email protected]>

Conor Dooley (6):
riscv: dts: microchip: convert isa detection to new properties
riscv: dts: sifive: convert isa detection to new properties
riscv: dts: starfive: convert isa detection to new properties
riscv: dts: renesas: convert isa detection to new properties
riscv: dts: allwinner: convert isa detection to new properties
riscv: dts: thead: convert isa detection to new properties

 arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi |  3 +++
 arch/riscv/boot/dts/microchip/mpfs.dtsi       | 15 +++++++++++++++
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi   |  3 +++
 arch/riscv/boot/dts/sifive/fu540-c000.dtsi    | 15 +++++++++++++++
 arch/riscv/boot/dts/sifive/fu740-c000.dtsi    | 15 +++++++++++++++
 arch/riscv/boot/dts/starfive/jh7100.dtsi      |  6 ++++++
 arch/riscv/boot/dts/starfive/jh7110.dtsi      | 15 +++++++++++++++
 arch/riscv/boot/dts/thead/th1520.dtsi         | 12 ++++++++++++
 8 files changed, 84 insertions(+)
Signature · 1 line
2.40.1
author maintainer
#1 lore raw

PATCH v3 1/6 riscv: dts: microchip: convert isa detection to new properties

Convert the PolarFire SoC devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/microchip/mpfs.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/riscv/boot/dts/microchip/mpfs.dtsi +15 -0
index 104504352e99..a6faf24f1dba 100644
@@ -22,6 +22,9 @@ cpu0: cpu@0 {
 			i-cache-size = <16384>;
 			reg = <0>;
 			riscv,isa = "rv64imac";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "c", "zicntr", "zicsr", "zifencei",
+					       "zihpm";
 			clocks = <&clkcfg CLK_CPU>;
 			status = "disabled";
 
@@ -48,6 +51,9 @@ cpu1: cpu@1 {
 			mmu-type = "riscv,sv39";
 			reg = <1>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			clocks = <&clkcfg CLK_CPU>;
 			tlb-split;
 			next-level-cache = <&cctrllr>;
@@ -76,6 +82,9 @@ cpu2: cpu@2 {
 			mmu-type = "riscv,sv39";
 			reg = <2>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			clocks = <&clkcfg CLK_CPU>;
 			tlb-split;
 			next-level-cache = <&cctrllr>;
@@ -104,6 +113,9 @@ cpu3: cpu@3 {
 			mmu-type = "riscv,sv39";
 			reg = <3>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			clocks = <&clkcfg CLK_CPU>;
 			tlb-split;
 			next-level-cache = <&cctrllr>;
@@ -132,6 +144,9 @@ cpu4: cpu@4 {
 			mmu-type = "riscv,sv39";
 			reg = <4>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			clocks = <&clkcfg CLK_CPU>;
 			tlb-split;
 			next-level-cache = <&cctrllr>;
Signature · 1 line
2.40.1
author maintainer
#2 lore raw

PATCH v3 2/6 riscv: dts: sifive: convert isa detection to new properties

In reply to Conor Dooley

Convert the fu540 and fu740 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 15 +++++++++++++++
 arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/riscv/boot/dts/sifive/fu540-c000.dtsi +15 -0
index 24bba83bec77..156330a9bbf3 100644
@@ -30,6 +30,9 @@ cpu0: cpu@0 {
 			i-cache-size = <16384>;
 			reg = <0>;
 			riscv,isa = "rv64imac";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "c", "zicntr", "zicsr", "zifencei",
+					       "zihpm";
 			status = "disabled";
 			cpu0_intc: interrupt-controller {
 				#interrupt-cells = <1>;
@@ -53,6 +56,9 @@ cpu1: cpu@1 {
 			mmu-type = "riscv,sv39";
 			reg = <1>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			next-level-cache = <&l2cache>;
 			cpu1_intc: interrupt-controller {
@@ -77,6 +83,9 @@ cpu2: cpu@2 {
 			mmu-type = "riscv,sv39";
 			reg = <2>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			next-level-cache = <&l2cache>;
 			cpu2_intc: interrupt-controller {
@@ -101,6 +110,9 @@ cpu3: cpu@3 {
 			mmu-type = "riscv,sv39";
 			reg = <3>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			next-level-cache = <&l2cache>;
 			cpu3_intc: interrupt-controller {
@@ -125,6 +137,9 @@ cpu4: cpu@4 {
 			mmu-type = "riscv,sv39";
 			reg = <4>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			next-level-cache = <&l2cache>;
 			cpu4_intc: interrupt-controller {
arch/riscv/boot/dts/sifive/fu740-c000.dtsi +15 -0
index 5235fd1c9cb6..6150f3397bff 100644
@@ -31,6 +31,9 @@ cpu0: cpu@0 {
 			next-level-cache = <&ccache>;
 			reg = <0x0>;
 			riscv,isa = "rv64imac";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "c", "zicntr", "zicsr", "zifencei",
+					       "zihpm";
 			status = "disabled";
 			cpu0_intc: interrupt-controller {
 				#interrupt-cells = <1>;
@@ -55,6 +58,9 @@ cpu1: cpu@1 {
 			next-level-cache = <&ccache>;
 			reg = <0x1>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			cpu1_intc: interrupt-controller {
 				#interrupt-cells = <1>;
@@ -79,6 +85,9 @@ cpu2: cpu@2 {
 			next-level-cache = <&ccache>;
 			reg = <0x2>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			cpu2_intc: interrupt-controller {
 				#interrupt-cells = <1>;
@@ -103,6 +112,9 @@ cpu3: cpu@3 {
 			next-level-cache = <&ccache>;
 			reg = <0x3>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			cpu3_intc: interrupt-controller {
 				#interrupt-cells = <1>;
@@ -127,6 +139,9 @@ cpu4: cpu@4 {
 			next-level-cache = <&ccache>;
 			reg = <0x4>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 			cpu4_intc: interrupt-controller {
 				#interrupt-cells = <1>;
Signature · 1 line
2.40.1
author maintainer
#3 lore raw

PATCH v3 3/6 riscv: dts: starfive: convert isa detection to new properties

In reply to Conor Dooley

Convert the jh7100 and jh7110 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/starfive/jh7100.dtsi |  6 ++++++
 arch/riscv/boot/dts/starfive/jh7110.dtsi | 15 +++++++++++++++
 2 files changed, 21 insertions(+)
arch/riscv/boot/dts/starfive/jh7100.dtsi +6 -0
index 35ab54fb235f..e68cafe7545f 100644
@@ -33,6 +33,9 @@ U74_0: cpu@0 {
 			i-tlb-size = <32>;
 			mmu-type = "riscv,sv39";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 
 			cpu0_intc: interrupt-controller {
@@ -58,6 +61,9 @@ U74_1: cpu@1 {
 			i-tlb-size = <32>;
 			mmu-type = "riscv,sv39";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			tlb-split;
 
 			cpu1_intc: interrupt-controller {
arch/riscv/boot/dts/starfive/jh7110.dtsi +15 -0
index 9f31dec57c0d..45213cdf50dc 100644
@@ -28,6 +28,9 @@ S7_0: cpu@0 {
 			i-cache-size = <16384>;
 			next-level-cache = <&ccache>;
 			riscv,isa = "rv64imac_zba_zbb";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "c", "zba", "zbb", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			status = "disabled";
 
 			cpu0_intc: interrupt-controller {
@@ -54,6 +57,9 @@ U74_1: cpu@1 {
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&ccache>;
 			riscv,isa = "rv64imafdc_zba_zbb";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zba", "zbb", "zicntr",
+					       "zicsr", "zifencei", "zihpm";
 			tlb-split;
 			operating-points-v2 = <&cpu_opp>;
 			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
@@ -84,6 +90,9 @@ U74_2: cpu@2 {
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&ccache>;
 			riscv,isa = "rv64imafdc_zba_zbb";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zba", "zbb", "zicntr",
+					       "zicsr", "zifencei", "zihpm";
 			tlb-split;
 			operating-points-v2 = <&cpu_opp>;
 			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
@@ -114,6 +123,9 @@ U74_3: cpu@3 {
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&ccache>;
 			riscv,isa = "rv64imafdc_zba_zbb";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zba", "zbb", "zicntr",
+					       "zicsr", "zifencei", "zihpm";
 			tlb-split;
 			operating-points-v2 = <&cpu_opp>;
 			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
@@ -144,6 +156,9 @@ U74_4: cpu@4 {
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&ccache>;
 			riscv,isa = "rv64imafdc_zba_zbb";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zba", "zbb", "zicntr",
+					       "zicsr", "zifencei", "zihpm";
 			tlb-split;
 			operating-points-v2 = <&cpu_opp>;
 			clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>;
Signature · 1 line
2.40.1
author maintainer
#4 lore raw

PATCH v3 4/6 riscv: dts: renesas: convert isa detection to new properties

In reply to Conor Dooley

Convert the RZ/Five devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +3 -0
index b0796015e36b..eb301d8eb2b0 100644
@@ -24,6 +24,9 @@ cpu0: cpu@0 {
 			reg = <0x0>;
 			status = "okay";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			mmu-type = "riscv,sv39";
 			i-cache-size = <0x8000>;
 			i-cache-line-size = <0x40>;
Signature · 1 line
2.40.1
Reviewed-by on v3 4/6
#5 lore raw

Re: [PATCH v3 4/6] riscv: dts: renesas: convert isa detection to new properties

Hi Conor,

Quoted 5 lines · Conor Dooley

Convert the RZ/Five devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

Thanks for your patch!

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 29

Quoted 9 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +3 -0
@@ -24,6 +24,9 @@ cpu0: cpu@0 {
                        reg = <0x0>;
                        status = "okay";
                        riscv,isa = "rv64imafdc";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                              "zifencei", "zihpm";

LGMT, so

I could not review the "zi*" parts, as the documentation that I have does not mention these.

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 32

Quoted 3 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +0 -0
                        mmu-type = "riscv,sv39";
                        i-cache-size = <0x8000>;
                        i-cache-line-size = <0x40>;

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
maintainer
#6 lore raw

Re: [PATCH v3 4/6] riscv: dts: renesas: convert isa detection to new properties

Quoted 22 lines · Geert Uytterhoeven

Hi Conor,

Quoted 5 lines · Conor Dooley

Convert the RZ/Five devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

Thanks for your patch!

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 29

Quoted 9 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +3 -0
@@ -24,6 +24,9 @@ cpu0: cpu@0 {
                        reg = <0x0>;
                        status = "okay";
                        riscv,isa = "rv64imafdc";
+                       riscv,isa-base = "rv64i";
+                       riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                              "zifencei", "zihpm";

LGMT, so

Quoted 4 lines

I could not review the "zi*" parts, as the documentation that I have does not mention these.

These are effectively the assumptions that the kernel already makes, for things that used to be part of the base isa (or were assumed to be) that are now extensions in their own right.

The Zihpm it'd be good if someone from the Renesas or Andes sides could confirm though.

Cheers,
Conor.

Quoted 15 lines

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 32

Quoted 4 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +0 -0
                        mmu-type = "riscv,sv39";
                        i-cache-size = <0x8000>;
                        i-cache-line-size = <0x40>;

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#7 lore raw

Re: [PATCH v3 4/6] riscv: dts: renesas: convert isa detection to new properties

In reply to Conor Dooley
Quoted 15 lines · Conor Dooley

Convert the RZ/Five devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +0 -0
index b0796015e36b..eb301d8eb2b0 100644

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 29

Quoted 6 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +3 -0
@@ -24,6 +24,9 @@ cpu0: cpu@0 {
 			reg = <0x0>;
 			status = "okay";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";

We do have zihpm, and OpenSBI can also probe its existence.

Boot HART ISA Extensions : zihpm
Boot HART MHPM Info : 4 (0x00000078)

By the way, we will append "xandespmu" here.
I hope this is an appropriate way to add a new custom extension.

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 32

Quoted 3 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +0 -0
 			mmu-type = "riscv,sv39";
 			i-cache-size = <0x8000>;
 			i-cache-line-size = <0x40>;

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#8 lore raw

Re: [PATCH v3 4/6] riscv: dts: renesas: convert isa detection to new properties

Hi Yu-Chien,

Quoted 25 lines · Yu-Chien Peter Lin
Quoted 15 lines · Conor Dooley

Convert the RZ/Five devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +0 -0
index b0796015e36b..eb301d8eb2b0 100644

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi cpu0: cpu@0 { · line 29

Quoted 6 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +3 -0
@@ -24,6 +24,9 @@ cpu0: cpu@0 {
                      reg = <0x0>;
                      status = "okay";
                      riscv,isa = "rv64imafdc";
+                     riscv,isa-base = "rv64i";
+                     riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+                                            "zifencei", "zihpm";

We do have zihpm, and OpenSBI can also probe its existence.

Quoted 2 lines

Boot HART ISA Extensions : zihpm
Boot HART MHPM Info : 4 (0x00000078)

Thank you, I hadn't digested the full output from OpenSBI yet, and I can confirm this is present in that output.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
author maintainer
#9 lore raw

PATCH v3 5/6 riscv: dts: allwinner: convert isa detection to new properties

In reply to Conor Dooley

Convert the D1 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi +3 -0
index 0856f18dc3cf..64c3c2e6cbe0 100644
@@ -25,6 +25,9 @@ cpu0: cpu@0 {
 			mmu-type = "riscv,sv39";
 			operating-points-v2 = <&opp_table_cpu>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			#cooling-cells = <2>;
 
 			cpu0_intc: interrupt-controller {
Signature · 1 line
2.40.1
maintainer Applied
#10 lore raw

Re: [PATCH v3 5/6] riscv: dts: allwinner: convert isa detection to new properties

Dne ponedeljek, 09. oktober 2023 ob 11:37:49 CEST je Conor Dooley napisal(a):

Quoted 6 lines

Convert the D1 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

Applied, thanks!

Best regards,
Jernej

Quoted 19 lines
---
 arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi +3 -0
index 0856f18dc3cf..64c3c2e6cbe0 100644
@@ -25,6 +25,9 @@ cpu0: cpu@0 {
 			mmu-type = "riscv,sv39";
 			operating-points-v2 = <&opp_table_cpu>;
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			#cooling-cells = <2>;
 
 			cpu0_intc: interrupt-controller {
author maintainer
#11 lore raw

PATCH v3 6/6 riscv: dts: thead: convert isa detection to new properties

In reply to Conor Dooley

Convert the th1520 devicetrees to use the new properties "riscv,isa-base" & "riscv,isa-extensions".
For compatibility with other projects, "riscv,isa" remains.

---
 arch/riscv/boot/dts/thead/th1520.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/riscv/boot/dts/thead/th1520.dtsi +12 -0
index ce708183b6f6..723f65487246 100644
@@ -20,6 +20,9 @@ c910_0: cpu@0 {
 			compatible = "thead,c910", "riscv";
 			device_type = "cpu";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			reg = <0>;
 			i-cache-block-size = <64>;
 			i-cache-size = <65536>;
@@ -41,6 +44,9 @@ c910_1: cpu@1 {
 			compatible = "thead,c910", "riscv";
 			device_type = "cpu";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			reg = <1>;
 			i-cache-block-size = <64>;
 			i-cache-size = <65536>;
@@ -62,6 +68,9 @@ c910_2: cpu@2 {
 			compatible = "thead,c910", "riscv";
 			device_type = "cpu";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			reg = <2>;
 			i-cache-block-size = <64>;
 			i-cache-size = <65536>;
@@ -83,6 +92,9 @@ c910_3: cpu@3 {
 			compatible = "thead,c910", "riscv";
 			device_type = "cpu";
 			riscv,isa = "rv64imafdc";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
+					       "zifencei", "zihpm";
 			reg = <3>;
 			i-cache-block-size = <64>;
 			i-cache-size = <65536>;
Signature · 1 line
2.40.1
maintainer
#12 lore raw

Re: (subset) [PATCH v3 0/6] riscv,isa-extensions additions

In reply to Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 8 lines · Conor Dooley

Now with the RFC tag dropped. There are no changes here from "RFC v2", other than the addition of tags that were provided along the way. I have not added "Zfh" to the T-Head based stuff, as I can't actually read the documentation that would show that they're encoding-for-encoding compatible with the standard extension, since it is apparently only in Chinese.

[...]

The first 3 applied to riscv-dt-for-next, I expect the rest to go via their respective platform maintainers.

[1/6] riscv: dts: microchip: convert isa detection to new properties

      https://git.kernel.org/conor/c/561add0da6d3
[2/6] riscv: dts: sifive: convert isa detection to new properties
      https://git.kernel.org/conor/c/a54f42722e49
[3/6] riscv: dts: starfive: convert isa detection to new properties
      https://git.kernel.org/conor/c/81b5948cf1a7

Thanks,
Conor.

#13 lore raw

Re: (subset) [PATCH v3 0/6] riscv,isa-extensions additions

Hi Conor,

Quoted 10 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 7 lines · Conor Dooley

Now with the RFC tag dropped. There are no changes here from "RFC v2", other than the addition of tags that were provided along the way. I have not added "Zfh" to the T-Head based stuff, as I can't actually read the documentation that would show that they're encoding-for-encoding compatible with the standard extension, since it is apparently only in Chinese.

Quoted 4 lines
Quoted 1 line

[...]

The first 3 applied to riscv-dt-for-next, I expect the rest to go via their respective platform maintainers.

I sent my last soc PR for v6.7 last Friday, as per the soc deadline. Feel free to take "[PATCH v3 4/6] riscv: dts: renesas: convert isa detection to new properties" into your tree for v6, if that is still possible (I have just provided my Acked-by). Otherwise, I can queue it in renesas-devel for v6.8.

Thanks!

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
author maintainer
#14 lore raw

Re: (subset) [PATCH v3 0/6] riscv,isa-extensions additions

Quoted 6 lines · Geert Uytterhoeven
Quoted 2 lines · Conor Dooley

The first 3 applied to riscv-dt-for-next, I expect the rest to go via their respective platform maintainers.

I sent my last soc PR for v6.7 last Friday, as per the soc deadline.

I was going to send mine this afternoon :)

Quoted 4 lines

Feel free to take "[PATCH v3 4/6] riscv: dts: renesas: convert isa detection to new properties" into your tree for v6, if that is still possible (I have just provided my Acked-by). Otherwise, I can queue it in renesas-devel for v6.8.

I was expecting them to end up in v6.8 since it's pretty late & I don't really want to send a PR with stuff that hasn't been in linux-next. Queuing it renesas-devel sounds good to me, thanks!

#15 lore raw
In reply to Conor Dooley
This series was applied to riscv/linux.git (fixes) by Arnd Bergmann <[email protected]>:

Hello:

This series was applied to riscv/linux.git (fixes) by Arnd Bergmann <[email protected]>:

Quoted 8 lines · On Mon, 9 Oct 2023 10:37:44 +0100 you wrote:

Now with the RFC tag dropped. There are no changes here from "RFC v2", other than the addition of tags that were provided along the way. I have not added "Zfh" to the T-Head based stuff, as I can't actually read the documentation that would show that they're encoding-for-encoding compatible with the standard extension, since it is apparently only in Chinese.

[...]

Here is the summary with links:
- [v3,1/6] riscv: dts: microchip: convert isa detection to new properties (no matching commit)
- [v3,2/6] riscv: dts: sifive: convert isa detection to new properties (no matching commit)
- [v3,3/6] riscv: dts: starfive: convert isa detection to new properties (no matching commit)
- [v3,4/6] riscv: dts: renesas: convert isa detection to new properties (no matching commit)
- [v3,5/6] riscv: dts: allwinner: convert isa detection to new properties

    https://git.kernel.org/riscv/c/c3f7c14856eb
  - [v3,6/6] riscv: dts: thead: convert isa detection to new properties
    https://git.kernel.org/riscv/c/0804f3bec9e9

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html