Skip to contentSkip to conversation

arm: vexpress: Remove obsolete RTSM DCSCB support

PATCH Applied Rob Herring (Arm) 4 participants 7 messages May 10, 2024 – Jun 3, 2024

Subsystems (5)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/2 arm: vexpress: Remove obsolete RTSM DCSCB support

The Arm Versatile DCSCB support is unused as the compatible "arm,rtsm,dcscb" is unused in any .dts file. It was only ever implemented on a s/w model (RTSM).

---
 arch/arm/configs/vexpress_defconfig   |   1 -
 arch/arm/mach-versatile/Kconfig       |   9 --
 arch/arm/mach-versatile/Makefile      |   3 -
 arch/arm/mach-versatile/dcscb.c       | 173 --------------------------
 arch/arm/mach-versatile/dcscb_setup.S |  33 -----
 5 files changed, 219 deletions(-)
 delete mode 100644 arch/arm/mach-versatile/dcscb.c
 delete mode 100644 arch/arm/mach-versatile/dcscb_setup.S
arch/arm/configs/vexpress_defconfig +0 -1
index 96ad442089bd..cdb6065e04fd 100644
@@ -14,7 +14,6 @@ CONFIG_CPUSETS=y
 CONFIG_BLK_DEV_INITRD=y
 CONFIG_PROFILING=y
 CONFIG_ARCH_VEXPRESS=y
-CONFIG_ARCH_VEXPRESS_DCSCB=y
 CONFIG_ARCH_VEXPRESS_TC2_PM=y
 CONFIG_SMP=y
 CONFIG_HAVE_ARM_ARCH_TIMER=y
arch/arm/mach-versatile/Kconfig +0 -9
index e029270c2687..513618078440 100644
@@ -278,15 +278,6 @@ config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA
 	  build a working kernel, you must also enable relevant core
 	  tile support or Flattened Device Tree based support options.
 
-config ARCH_VEXPRESS_DCSCB
-	bool "Dual Cluster System Control Block (DCSCB) support"
-	depends on MCPM
-	select ARM_CCI400_PORT_CTRL
-	help
-	  Support for the Dual Cluster System Configuration Block (DCSCB).
-	  This is needed to provide CPU and cluster power management
-	  on RTSM implementing big.LITTLE.
-
 config ARCH_VEXPRESS_SPC
 	bool "Versatile Express Serial Power Controller (SPC)"
 	select PM_OPP
arch/arm/mach-versatile/Makefile +0 -3
index 27d712bcf1af..d819fb2fc450 100644
@@ -16,9 +16,6 @@ obj-$(CONFIG_ARCH_REALVIEW)		+= realview.o
 
 # vexpress
 obj-$(CONFIG_ARCH_VEXPRESS)		:= v2m.o
-obj-$(CONFIG_ARCH_VEXPRESS_DCSCB)	+= dcscb.o	dcscb_setup.o
-CFLAGS_dcscb.o				+= -march=armv7-a
-CFLAGS_REMOVE_dcscb.o			= -pg
 obj-$(CONFIG_ARCH_VEXPRESS_SPC)		+= spc.o
 CFLAGS_REMOVE_spc.o			= -pg
 obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM)	+= tc2_pm.o
arch/arm/mach-versatile/dcscb.c deleted +0 -173

173 lines not on this page · raw message

arch/arm/mach-versatile/dcscb_setup.S deleted +0 -33
deleted file mode 100644
index 92d1fd9d7f6a..000000000000
@@ -1,33 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * Created by:  Dave Martin, 2012-06-22
- * Copyright:   (C) 2012-2013  Linaro Limited
- */
-
-#include <linux/linkage.h>
-
-
-ENTRY(dcscb_power_up_setup)
-
-	cmp	r0, #0			@ check affinity level
-	beq	2f
-
-/*
- * Enable cluster-level coherency, in preparation for turning on the MMU.
- * The ACTLR SMP bit does not need to be set here, because cpu_resume()
- * already restores that.
- *
- * A15/A7 may not require explicit L2 invalidation on reset, dependent
- * on hardware integration decisions.
- * For now, this code assumes that L2 is either already invalidated,
- * or invalidation is not required.
- */
-
-	b	cci_enable_port_for_self
-
-2:	@ Implementation-specific local CPU setup operations should go here,
-	@ if any.  In this case, there is nothing to do.
-
-	bx	lr
-
-ENDPROC(dcscb_power_up_setup)
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH 2/2 dt-bindings: arm: Remove obsolete RTSM DCSCB binding

The Arm VExpress DCSCB binding is unused and was only ever used on a s/w model over 10 years ago. Remove it.

---
 .../devicetree/bindings/arm/rtsm-dcscb.txt    | 19 -------------------
 1 file changed, 19 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/rtsm-dcscb.txt
Documentation/devicetree/bindings/arm/rtsm-dcscb.txt deleted +0 -19
deleted file mode 100644
index 3b8fbf3c00c5..000000000000
@@ -1,19 +0,0 @@
-ARM Dual Cluster System Configuration Block
--------------------------------------------
-
-The Dual Cluster System Configuration Block (DCSCB) provides basic
-functionality for controlling clocks, resets and configuration pins in
-the Dual Cluster System implemented by the Real-Time System Model (RTSM).
-
-Required properties:
-
-- compatible : should be "arm,rtsm,dcscb"
-
-- reg : physical base address and the size of the registers window
-
-Example:
-
-	dcscb@60000000 {
-		compatible = "arm,rtsm,dcscb";
-		reg = <0x60000000 0x1000>;
-	};
Signature · 1 line
2.43.0
Applied
#5 lore raw
In reply to Rob Herring (Arm)
Quoted 4 lines · Rob Herring (Arm)

The Arm Versatile DCSCB support is unused as the compatible "arm,rtsm,dcscb" is unused in any .dts file. It was only ever implemented on a s/w model (RTSM).

Applied to sudeep.holla/linux (for-next/vexpress/updates), thanks!

[1/2] arm: vexpress: Remove obsolete RTSM DCSCB support

      https://git.kernel.org/sudeep.holla/c/41fcb32dbca4
[2/2] dt-bindings: arm: Remove obsolete RTSM DCSCB binding
      https://git.kernel.org/sudeep.holla/c/5c47d9a27403

--
Regards,
Sudeep

#6 lore raw
Quoted 8 lines · Sudeep Holla
Quoted 4 lines · Rob Herring (Arm)

The Arm Versatile DCSCB support is unused as the compatible "arm,rtsm,dcscb" is unused in any .dts file. It was only ever implemented on a s/w model (RTSM).

Applied to sudeep.holla/linux (for-next/vexpress/updates), thanks!

I have now rebased as it couldn't make it to v6.10-rc1 just for simplicity (could have merged v6.10-rc1 though)

[1/2] arm: vexpress: Remove obsolete RTSM DCSCB support

      https://git.kernel.org/sudeep.holla/c/eb3f614ae482
[2/2] dt-bindings: arm: Remove obsolete RTSM DCSCB binding
      https://git.kernel.org/sudeep.holla/c/32b0cf0379b6

--
Regards,
Sudeep