Skip to contentSkip to conversation

RISC-V: drop SOC_SIFIVE for ARCH_SIFIVE

PATCH Applied Conor Dooley 3 participants 6 messages Mar 5, 2024 – Apr 10, 2024

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 RISC-V: drop SOC_SIFIVE for ARCH_SIFIVE

From: Conor Dooley <[email protected]>

All the users in the kernel are gone and generated .config files from previous LTS kernels will contain ARCH_SIFIVE. Drop SOC_SIFIVE and update the defconfig.

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/riscv/Kconfig.socs      | 3 ---
 arch/riscv/configs/defconfig | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
arch/riscv/Kconfig.socs +0 -3
index e08e91c49abe..e85ffb63c48d 100644
@@ -14,9 +14,6 @@ config ARCH_RENESAS
 	  This enables support for the RISC-V based Renesas SoCs.
 
 config ARCH_SIFIVE
-	def_bool SOC_SIFIVE
-
-config SOC_SIFIVE
 	bool "SiFive SoCs"
 	select ERRATA_SIFIVE if !XIP_KERNEL
 	help
arch/riscv/configs/defconfig +1 -1
index 89a009a580fe..ab3bab313d56 100644
@@ -27,7 +27,7 @@ CONFIG_EXPERT=y
 CONFIG_PROFILING=y
 CONFIG_SOC_MICROCHIP_POLARFIRE=y
 CONFIG_ARCH_RENESAS=y
-CONFIG_SOC_SIFIVE=y
+CONFIG_ARCH_SIFIVE=y
 CONFIG_ARCH_SOPHGO=y
 CONFIG_SOC_STARFIVE=y
 CONFIG_ARCH_SUNXI=y
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 RISC-V: drop SOC_VIRT for ARCH_VIRT

From: Conor Dooley <[email protected]>

The ARCH_ and SOC_ versions of this symbol have persisted for quite a while now in parallel. Generated .config files from previous LTS kernels should have both. Finally remove SOC_VIRT and update all config files using it.

---
I had a 1.5 year old ack from Jason that I dropped due to the passage of time.

---
 arch/riscv/Kconfig.socs                                    | 3 ---
 arch/riscv/configs/defconfig                               | 2 +-
 arch/riscv/configs/nommu_virt_defconfig                    | 2 +-
 tools/testing/kunit/qemu_configs/riscv.py                  | 2 +-
 tools/testing/selftests/wireguard/qemu/arch/riscv32.config | 2 +-
 tools/testing/selftests/wireguard/qemu/arch/riscv64.config | 2 +-
 6 files changed, 5 insertions(+), 8 deletions(-)
arch/riscv/Kconfig.socs +0 -3
index e85ffb63c48d..dcbfb659839c 100644
@@ -52,9 +52,6 @@ config ARCH_THEAD
 	  This enables support for the RISC-V based T-HEAD SoCs.
 
 config ARCH_VIRT
-	def_bool SOC_VIRT
-
-config SOC_VIRT
 	bool "QEMU Virt Machine"
 	select CLINT_TIMER if RISCV_M_MODE
 	select POWER_RESET
arch/riscv/configs/defconfig +1 -1
index ab3bab313d56..8d46a9137b1e 100644
@@ -32,7 +32,7 @@ CONFIG_ARCH_SOPHGO=y
 CONFIG_SOC_STARFIVE=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_ARCH_THEAD=y
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SMP=y
 CONFIG_HOTPLUG_CPU=y
 CONFIG_PM=y
arch/riscv/configs/nommu_virt_defconfig +1 -1
index b794e2f8144e..de8143d1f738 100644
@@ -24,7 +24,7 @@ CONFIG_EXPERT=y
 CONFIG_SLUB=y
 CONFIG_SLUB_TINY=y
 # CONFIG_MMU is not set
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_NONPORTABLE=y
 CONFIG_SMP=y
 CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0"
tools/testing/kunit/qemu_configs/riscv.py +1 -1
index 12a1d525978a..c87758030ff7 100644
@@ -13,7 +13,7 @@ if not os.path.isfile(OPENSBI_PATH):
 
 QEMU_ARCH = QemuArchParams(linux_arch='riscv',
 			   kconfig='''
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
tools/testing/selftests/wireguard/qemu/arch/riscv32.config +1 -1
index 2fc36efb166d..2500eaa9b469 100644
@@ -2,7 +2,7 @@ CONFIG_NONPORTABLE=y
 CONFIG_ARCH_RV32I=y
 CONFIG_MMU=y
 CONFIG_FPU=y
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
tools/testing/selftests/wireguard/qemu/arch/riscv64.config +1 -1
index dc266f3b1915..29a67ac67766 100644
@@ -1,7 +1,7 @@
 CONFIG_ARCH_RV64I=y
 CONFIG_MMU=y
 CONFIG_FPU=y
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
Signature · 1 line
2.43.0
Reviewed-by on v1 1/2
#3 lore raw
In reply to Conor Dooley
Quoted 13 lines · Conor Dooley

From: Conor Dooley <[email protected]>

All the users in the kernel are gone and generated .config files from previous LTS kernels will contain ARCH_SIFIVE. Drop SOC_SIFIVE and update the defconfig.

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: [email protected]
CC: [email protected]

Quoted 4 lines
---
 arch/riscv/Kconfig.socs      | 3 ---
 arch/riscv/configs/defconfig | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
maintainer Acked-by on v1 1/2
#4 lore raw
In reply to Conor Dooley
Quoted 37 lines · Conor Dooley

From: Conor Dooley <[email protected]>

All the users in the kernel are gone and generated .config files from previous LTS kernels will contain ARCH_SIFIVE. Drop SOC_SIFIVE and update the defconfig.

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/riscv/Kconfig.socs      | 3 ---
 arch/riscv/configs/defconfig | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
arch/riscv/Kconfig.socs +0 -3
index e08e91c49abe..e85ffb63c48d 100644
@@ -14,9 +14,6 @@ config ARCH_RENESAS
 	  This enables support for the RISC-V based Renesas SoCs.
 
 config ARCH_SIFIVE
-	def_bool SOC_SIFIVE
-
-config SOC_SIFIVE
 	bool "SiFive SoCs"
 	select ERRATA_SIFIVE if !XIP_KERNEL
 	help
arch/riscv/configs/defconfig +0 -0
index 89a009a580fe..ab3bab313d56 100644

arch/riscv/configs/defconfig CONFIG_EXPERT=y · line 33

Quoted 8 lines
arch/riscv/configs/defconfig +1 -1
@@ -27,7 +27,7 @@ CONFIG_EXPERT=y
 CONFIG_PROFILING=y
 CONFIG_SOC_MICROCHIP_POLARFIRE=y
 CONFIG_ARCH_RENESAS=y
-CONFIG_SOC_SIFIVE=y
+CONFIG_ARCH_SIFIVE=y
 CONFIG_ARCH_SOPHGO=y
 CONFIG_SOC_STARFIVE=y
 CONFIG_ARCH_SUNXI=y
maintainer Acked-by on v1 2/2
#2 lore raw

Re: [PATCH v1 2/2] RISC-V: drop SOC_VIRT for ARCH_VIRT

In reply to Conor Dooley
Quoted 106 lines · Conor Dooley

From: Conor Dooley <[email protected]>

The ARCH_ and SOC_ versions of this symbol have persisted for quite a while now in parallel. Generated .config files from previous LTS kernels should have both. Finally remove SOC_VIRT and update all config files using it.

---
I had a 1.5 year old ack from Jason that I dropped due to the passage of time.

---
 arch/riscv/Kconfig.socs                                    | 3 ---
 arch/riscv/configs/defconfig                               | 2 +-
 arch/riscv/configs/nommu_virt_defconfig                    | 2 +-
 tools/testing/kunit/qemu_configs/riscv.py                  | 2 +-
 tools/testing/selftests/wireguard/qemu/arch/riscv32.config | 2 +-
 tools/testing/selftests/wireguard/qemu/arch/riscv64.config | 2 +-
 6 files changed, 5 insertions(+), 8 deletions(-)
arch/riscv/Kconfig.socs +0 -3
index e85ffb63c48d..dcbfb659839c 100644
@@ -52,9 +52,6 @@ config ARCH_THEAD
 	  This enables support for the RISC-V based T-HEAD SoCs.
 
 config ARCH_VIRT
-	def_bool SOC_VIRT
-
-config SOC_VIRT
 	bool "QEMU Virt Machine"
 	select CLINT_TIMER if RISCV_M_MODE
 	select POWER_RESET
arch/riscv/configs/defconfig +1 -1
index ab3bab313d56..8d46a9137b1e 100644
@@ -32,7 +32,7 @@ CONFIG_ARCH_SOPHGO=y
 CONFIG_SOC_STARFIVE=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_ARCH_THEAD=y
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SMP=y
 CONFIG_HOTPLUG_CPU=y
 CONFIG_PM=y
arch/riscv/configs/nommu_virt_defconfig +1 -1
index b794e2f8144e..de8143d1f738 100644
@@ -24,7 +24,7 @@ CONFIG_EXPERT=y
 CONFIG_SLUB=y
 CONFIG_SLUB_TINY=y
 # CONFIG_MMU is not set
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_NONPORTABLE=y
 CONFIG_SMP=y
 CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0"
tools/testing/kunit/qemu_configs/riscv.py +1 -1
index 12a1d525978a..c87758030ff7 100644
@@ -13,7 +13,7 @@ if not os.path.isfile(OPENSBI_PATH):
 
 QEMU_ARCH = QemuArchParams(linux_arch='riscv',
 			   kconfig='''
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
tools/testing/selftests/wireguard/qemu/arch/riscv32.config +1 -1
index 2fc36efb166d..2500eaa9b469 100644
@@ -2,7 +2,7 @@ CONFIG_NONPORTABLE=y
 CONFIG_ARCH_RV32I=y
 CONFIG_MMU=y
 CONFIG_FPU=y
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
tools/testing/selftests/wireguard/qemu/arch/riscv64.config +0 -0
index dc266f3b1915..29a67ac67766 100644

tools/testing/selftests/wireguard/qemu/arch/riscv64.config line 7

Quoted 8 lines
tools/testing/selftests/wireguard/qemu/arch/riscv64.config +1 -1
@@ -1,7 +1,7 @@
 CONFIG_ARCH_RV64I=y
 CONFIG_MMU=y
 CONFIG_FPU=y
-CONFIG_SOC_VIRT=y
+CONFIG_ARCH_VIRT=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
author Applied
#5 lore raw
In reply to Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 5 lines · Conor Dooley

All the users in the kernel are gone and generated .config files from previous LTS kernels will contain ARCH_SIFIVE. Drop SOC_SIFIVE and update the defconfig.

Applied to riscv-soc-for-next, thanks!

[1/2] RISC-V: drop SOC_SIFIVE for ARCH_SIFIVE

      https://git.kernel.org/conor/c/d2a351e63779
[2/2] RISC-V: drop SOC_VIRT for ARCH_VIRT
      https://git.kernel.org/conor/c/1553a1c48281

Thanks,
Conor.