Skip to contentSkip to conversation

Cleanup mpic nodes in .dts

PATCH Superseded Kumar Gala 3 participants 12 messages May 30, 2008 – Jun 2, 2008

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 Cleanup mpic nodes in .dts

Removed clock-frequency and big-endian props as they aren't specified anywhere.

---

In my powerpc-next branch.

 Documentation/powerpc/booting-without-of.txt |    6 ------
 arch/powerpc/boot/dts/mpc7448hpc2.dts        |    2 --
 arch/powerpc/boot/dts/mpc8540ads.dts         |    2 --
 arch/powerpc/boot/dts/mpc8541cds.dts         |    2 --
 arch/powerpc/boot/dts/mpc8544ds.dts          |    2 --
 arch/powerpc/boot/dts/mpc8548cds.dts         |    2 --
 arch/powerpc/boot/dts/mpc8555cds.dts         |    2 --
 arch/powerpc/boot/dts/mpc8560ads.dts         |    1 +
 arch/powerpc/boot/dts/mpc8568mds.dts         |    2 --
 arch/powerpc/boot/dts/mpc8572ds.dts          |    2 --
 arch/powerpc/boot/dts/mpc8610_hpcd.dts       |    2 --
 arch/powerpc/boot/dts/mpc8641_hpcn.dts       |    2 --
 arch/powerpc/boot/dts/sbc8548.dts            |    2 --
 arch/powerpc/boot/dts/sbc8560.dts            |    2 +-
 arch/powerpc/boot/dts/storcenter.dts         |    1 +
 arch/powerpc/boot/dts/stx_gp3_8560.dts       |    1 +
 arch/powerpc/boot/dts/tqm8540.dts            |    1 +
 arch/powerpc/boot/dts/tqm8541.dts            |    1 +
 arch/powerpc/boot/dts/tqm8555.dts            |    1 +
 arch/powerpc/boot/dts/tqm8560.dts            |    1 +
 20 files changed, 8 insertions(+), 29 deletions(-)
Documentation/powerpc/booting-without-of.txt +0 -6
index c67d2f5..948f641 100644
@@ -1363,14 +1363,11 @@ platforms are moved over to use the flattened-device-tree model.
 
 	pic@40000 {
 		linux,phandle = <40000>;
-		clock-frequency = <0>;
 		interrupt-controller;
 		#address-cells = <0>;
 		reg = <40000 40000>;
-		built-in;
 		compatible = "chrp,open-pic";
 		device_type = "open-pic";
-		big-endian;
 	};
 
 
@@ -3663,14 +3660,11 @@ not necessary as they are usually the same as the root node.
 
 		pic@40000 {
 			linux,phandle = <40000>;
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			reg = <40000 40000>;
-			built-in;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                        big-endian;
 		};
 
 		i2c@3000 {
arch/powerpc/boot/dts/mpc7448hpc2.dts +0 -2
index 4936349..705c23c 100644
@@ -124,14 +124,12 @@
 		};
 
 	  	mpic: pic@7400 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x7400 0x400>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                       	big-endian;
 		};
 		pci@1000 {
 			compatible = "tsi108-pci";
arch/powerpc/boot/dts/mpc8540ads.dts +0 -2
index 18033ed..58e165e 100644
@@ -165,14 +165,12 @@
 			interrupt-parent = <&mpic>;
 		};
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-			big-endian;
 		};
 	};
 
arch/powerpc/boot/dts/mpc8541cds.dts +0 -2
index 663c7c5..21ebe7c 100644
@@ -148,14 +148,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                        big-endian;
 		};
 
 		cpm@919c0 {
arch/powerpc/boot/dts/mpc8544ds.dts +0 -2
index 1cfd970..921f9f6 100644
@@ -210,14 +210,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-			big-endian;
 		};
 
 		msi@41600 {
arch/powerpc/boot/dts/mpc8548cds.dts +0 -2
index fa298a8..213c88e 100644
@@ -208,14 +208,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                        big-endian;
 		};
 	};
 
arch/powerpc/boot/dts/mpc8555cds.dts +0 -2
index b025c56..400f6db 100644
@@ -148,14 +148,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                        big-endian;
 		};
 
 		cpm@919c0 {
arch/powerpc/boot/dts/mpc8560ads.dts +1 -0
index 0cc16ab..f0b1f98 100644
@@ -134,6 +134,7 @@
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
+			compatible = "chrp,open-pic";
 			device_type = "open-pic";
 		};
 
arch/powerpc/boot/dts/mpc8568mds.dts +0 -2
index a025a8e..d9064ee 100644
@@ -202,14 +202,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                        big-endian;
 		};
 
 		par_io@e0100 {
arch/powerpc/boot/dts/mpc8572ds.dts +0 -2
index 174d51a..3ca8cae 100644
@@ -238,14 +238,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-			big-endian;
 		};
 	};
 
arch/powerpc/boot/dts/mpc8610_hpcd.dts +0 -2
index fa9c297..186f102 100644
@@ -172,14 +172,12 @@
 		};
 
 		mpic: interrupt-controller@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-			big-endian;
 		};
 
 		msi@41600 {
arch/powerpc/boot/dts/mpc8641_hpcn.dts +0 -2
index 1e4bfe9..14f718d 100644
@@ -239,14 +239,12 @@
 		};
 
 		mpic: pic@40000 {
-			clock-frequency = <0>;
 			interrupt-controller;
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-			big-endian;
 		};
 
 		global-utilities@e0000 {
arch/powerpc/boot/dts/sbc8548.dts +0 -2
index 22d9671..ce496fb 100644
@@ -265,12 +265,10 @@
 		mpic: pic@40000 {
 			interrupt-controller;
 			#address-cells = <0>;
-			#size-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			compatible = "chrp,open-pic";
 			device_type = "open-pic";
-                        big-endian;
 		};
 	};
 
arch/powerpc/boot/dts/sbc8560.dts +1 -1
index 0476802..2663501 100644
@@ -155,8 +155,8 @@
 		mpic: pic@40000 {
 			interrupt-controller;
 			#address-cells = <0>;
-			#size-cells = <0>;
 			#interrupt-cells = <2>;
+			compatible = "chrp,open-pic";
 			reg = <0x40000 0x40000>;
 			device_type = "open-pic";
 		};
arch/powerpc/boot/dts/storcenter.dts +1 -0
index 5893816..eab680c 100644
@@ -95,6 +95,7 @@
 
 		mpic: interrupt-controller@40000 {
 			#interrupt-cells = <2>;
+			#address-cells = <0>;
 			device_type = "open-pic";
 			compatible = "chrp,open-pic";
 			interrupt-controller;
arch/powerpc/boot/dts/stx_gp3_8560.dts +1 -0
index f81fd7f..096277b 100644
@@ -131,6 +131,7 @@
 			#address-cells = <0>;
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
+			compatible = "chrp,open-pic";
 			device_type = "open-pic";
 		};
 
arch/powerpc/boot/dts/tqm8540.dts +1 -0
index 1addb3a..8ee4664 100644
@@ -177,6 +177,7 @@
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			device_type = "open-pic";
+			compatible = "chrp,open-pic";
 		};
 	};
 
arch/powerpc/boot/dts/tqm8541.dts +1 -0
index 9e01093..cadbebf 100644
@@ -164,6 +164,7 @@
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			device_type = "open-pic";
+			compatible = "chrp,open-pic";
 		};
 
 		cpm@919c0 {
arch/powerpc/boot/dts/tqm8555.dts +1 -0
index a20eb06..9d6dc04 100644
@@ -164,6 +164,7 @@
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			device_type = "open-pic";
+			compatible = "chrp,open-pic";
 		};
 
 		cpm@919c0 {
arch/powerpc/boot/dts/tqm8560.dts +1 -0
index b9ac6c9..358cbd7 100644
@@ -145,6 +145,7 @@
 			#interrupt-cells = <2>;
 			reg = <0x40000 0x40000>;
 			device_type = "open-pic";
+			compatible = "chrp,open-pic";
 		};
 
 		cpm@919c0 {
Signature · 1 line
1.5.4.5
author
#1 lore raw

PATCH 1/1 85xx: Add next-level-cache property

Added next-level-cache to the L1 and a reference to the new L2 label.

---
In my powerpc-next branch.

 arch/powerpc/boot/dts/ksi8560.dts      |    3 ++-
 arch/powerpc/boot/dts/mpc8540ads.dts   |    3 ++-
 arch/powerpc/boot/dts/mpc8541cds.dts   |    3 ++-
 arch/powerpc/boot/dts/mpc8544ds.dts    |    3 ++-
 arch/powerpc/boot/dts/mpc8548cds.dts   |    3 ++-
 arch/powerpc/boot/dts/mpc8555cds.dts   |    3 ++-
 arch/powerpc/boot/dts/mpc8560ads.dts   |    2 +-
 arch/powerpc/boot/dts/mpc8568mds.dts   |    3 ++-
 arch/powerpc/boot/dts/mpc8572ds.dts    |    4 +++-
 arch/powerpc/boot/dts/sbc8548.dts      |    3 ++-
 arch/powerpc/boot/dts/sbc8560.dts      |    3 ++-
 arch/powerpc/boot/dts/stx_gp3_8560.dts |    3 ++-
 arch/powerpc/boot/dts/tqm8540.dts      |    3 ++-
 arch/powerpc/boot/dts/tqm8541.dts      |    3 ++-
 arch/powerpc/boot/dts/tqm8555.dts      |    3 ++-
 arch/powerpc/boot/dts/tqm8560.dts      |    3 ++-
 16 files changed, 32 insertions(+), 16 deletions(-)
arch/powerpc/boot/dts/ksi8560.dts +2 -1
index f869ce3..6eb7c77 100644
@@ -40,6 +40,7 @@
 			timebase-frequency = <0>;		/* From U-boot */
 			bus-frequency = <0>;			/* From U-boot */
 			clock-frequency = <0>;			/* From U-boot */
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -62,7 +63,7 @@
 			interrupts = <0x12 0x2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <0x20>;		/* 32 bytes */
arch/powerpc/boot/dts/mpc8540ads.dts +2 -1
index 58e165e..79881a1 100644
@@ -40,6 +40,7 @@
 			timebase-frequency = <0>;	//  33 MHz, from uboot
 			bus-frequency = <0>;	// 166 MHz
 			clock-frequency = <0>;	// 825 MHz, from uboot
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -63,7 +64,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8541cds.dts +2 -1
index 21ebe7c..66192aa 100644
@@ -40,6 +40,7 @@
 			timebase-frequency = <0>;	//  33 MHz, from uboot
 			bus-frequency = <0>;	// 166 MHz
 			clock-frequency = <0>;	// 825 MHz, from uboot
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -63,7 +64,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8541-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8544ds.dts +2 -1
index 921f9f6..6cf533f 100644
@@ -41,6 +41,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -65,7 +66,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8544-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8548cds.dts +2 -1
index 213c88e..205598d 100644
@@ -45,6 +45,7 @@
 			timebase-frequency = <0>;	//  33 MHz, from uboot
 			bus-frequency = <0>;	// 166 MHz
 			clock-frequency = <0>;	// 825 MHz, from uboot
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -68,7 +69,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8548-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8555cds.dts +2 -1
index 400f6db..7c9d0b1 100644
@@ -40,6 +40,7 @@
 			timebase-frequency = <0>;	//  33 MHz, from uboot
 			bus-frequency = <0>;	// 166 MHz
 			clock-frequency = <0>;	// 825 MHz, from uboot
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -63,7 +64,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8555-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8560ads.dts +1 -1
index f0b1f98..5d9f3c4 100644
@@ -64,7 +64,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8568mds.dts +2 -1
index d9064ee..d7af8db 100644
@@ -42,6 +42,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -70,7 +71,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8568-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/mpc8572ds.dts +3 -1
index 3ca8cae..a444e6a 100644
@@ -42,6 +42,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 
 		PowerPC,8572@1 {
@@ -54,6 +55,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -84,7 +86,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,mpc8572-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;	// 32 bytes
arch/powerpc/boot/dts/sbc8548.dts +2 -1
index ce496fb..d252e38 100644
@@ -44,6 +44,7 @@
 			timebase-frequency = <0>;	// From uboot
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -161,7 +162,7 @@
 			interrupts = <0x12 0x2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8548-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <0x20>;	// 32 bytes
arch/powerpc/boot/dts/sbc8560.dts +2 -1
index 2663501..e556c5a 100644
@@ -43,6 +43,7 @@
 			timebase-frequency = <0>;	// From uboot
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -66,7 +67,7 @@
 			interrupts = <0x12 0x2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8560-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <0x20>;	// 32 bytes
arch/powerpc/boot/dts/stx_gp3_8560.dts +2 -1
index 096277b..1e61283 100644
@@ -38,6 +38,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -62,7 +63,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;
arch/powerpc/boot/dts/tqm8540.dts +2 -1
index 8ee4664..7b653a5 100644
@@ -40,6 +40,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -64,7 +65,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;
arch/powerpc/boot/dts/tqm8541.dts +2 -1
index cadbebf..8fe73ef 100644
@@ -39,6 +39,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -63,7 +64,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;
arch/powerpc/boot/dts/tqm8555.dts +2 -1
index 9d6dc04..0a53bb9 100644
@@ -39,6 +39,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -63,7 +64,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;
arch/powerpc/boot/dts/tqm8560.dts +2 -1
index 358cbd7..a4ee596 100644
@@ -40,6 +40,7 @@
 			timebase-frequency = <0>;
 			bus-frequency = <0>;
 			clock-frequency = <0>;
+			next-level-cache = <&L2>;
 		};
 	};
 
@@ -64,7 +65,7 @@
 			interrupts = <18 2>;
 		};
 
-		l2-cache-controller@20000 {
+		L2: l2-cache-controller@20000 {
 			compatible = "fsl,8540-l2-cache-controller";
 			reg = <0x20000 0x1000>;
 			cache-line-size = <32>;
Signature · 1 line
1.5.4.5
#2 lore raw

Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property

Quoted 1 line

Added next-level-cache to the L1 and a reference to the new L2 label.

Where is this property defined? I can't find it.

The PowerPC binding defines an "l2-cache" property for this (it points from CPU node to L2 cache node, from L2 cache node to L3 cache node, from L3 cache node to L4 cache node, etc.)

Segher

author
#3 lore raw

Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property

Quoted 3 lines · Segher Boessenkool
Quoted 1 line

Added next-level-cache to the L1 and a reference to the new L2 label.

Where is this property defined? I can't find it.

its in ePAPR.

Quoted 3 lines

The PowerPC binding defines an "l2-cache" property for this (it points from CPU node to L2 cache node, from L2 cache node to L3 cache node, from L3 cache node to L4 cache node, etc.)

ok, will go look.

- k

author
#4 lore raw

Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property

In reply to Segher Boessenkool
Quoted 7 lines · Segher Boessenkool
Quoted 1 line

Added next-level-cache to the L1 and a reference to the new L2 label.

Where is this property defined? I can't find it.

The PowerPC binding defines an "l2-cache" property for this (it points from CPU node to L2 cache node, from L2 cache node to L3 cache node, from L3 cache node to L4 cache node, etc.)

So looking at the PPC binding its not terrible clear about "l3-cache" being a valid property. I believe the discussion w/ePAPR was to create something a bit more generic and clarify/update the PPC binding.

I'm going to stick with the new binding as we don't use this linking currently.

- k

#5 lore raw

Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property

Quoted 9 lines
Quoted 7 lines
Quoted 1 line

Added next-level-cache to the L1 and a reference to the new L2 label.

Where is this property defined? I can't find it.

The PowerPC binding defines an "l2-cache" property for this (it points from CPU node to L2 cache node, from L2 cache node to L3 cache node, from L3 cache node to L4 cache node, etc.)

So looking at the PPC binding its not terrible clear about "l3-cache" being a valid property.

It isn't. The property is called "l2-cache" at every level.

Quoted 1 line

I believe the discussion w/ePAPR was to create something a bit more generic and clarify/update the PPC binding.

Nasty. Sure, "l2-cache" isn't the nicest name to point to deeper cache levels, but introducing a new property with (substantially) the same semantics is worse.

There really shouldn't be a new property name until new functionality is introduced. For example, it could allow to describe more than one cache at each level (the current binding already allows more than one parent for each cache, but only one child; and cache hierarchies like that actually exist).

Quoted 1 line

I'm going to stick with the new binding as we don't use this linking currently.

Dunno what's the best thing to do here. If you don't need the functionality yet, it might be best to postpone putting either property in there. Sigh, what a mess.

Segher

#6 lore raw

Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property

Quoted 8 lines · Segher Boessenkool
Quoted 7 lines
Quoted 4 lines

The PowerPC binding defines an "l2-cache" property for this (it points from CPU node to L2 cache node, from L2 cache node to L3 cache node, from L3 cache node to L4 cache node, etc.)

So looking at the PPC binding its not terrible clear about "l3-cache" being a valid property.

Quoted 8 lines

It isn't. The property is called "l2-cache" at every level.

Quoted 2 lines

I believe the discussion w/ePAPR was to create something a bit more generic and clarify/update the PPC binding.

Nasty. Sure, "l2-cache" isn't the nicest name to point to deeper cache levels, but introducing a new property with (substantially) the same semantics is worse.

The semantics appear to be identical, even.

Quoted 6 lines

There really shouldn't be a new property name until new functionality is introduced. For example, it could allow to describe more than one cache at each level (the current binding already allows more than one parent for each cache, but only one child; and cache hierarchies like that actually exist).

Quoted 6 lines
Quoted 2 lines

I'm going to stick with the new binding as we don't use this linking currently.

Dunno what's the best thing to do here. If you don't need the functionality yet, it might be best to postpone putting either property in there. Sigh, what a mess.

Does existing practice count for anything? IBM pseries firmware uses the l2-cache property as described in the PowerPC binding.

author
#7 lore raw

Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property

Quoted 30 lines · Nathan Lynch
Quoted 8 lines · Segher Boessenkool
Quoted 7 lines
Quoted 4 lines

The PowerPC binding defines an "l2-cache" property for this (it points from CPU node to L2 cache node, from L2 cache node to L3 cache node, from L3 cache node to L4 cache node, etc.)

So looking at the PPC binding its not terrible clear about "l3-cache" being a valid property.

Quoted 8 lines

It isn't. The property is called "l2-cache" at every level.

Quoted 2 lines

I believe the discussion w/ePAPR was to create something a bit more generic and clarify/update the PPC binding.

Nasty. Sure, "l2-cache" isn't the nicest name to point to deeper cache levels, but introducing a new property with (substantially) the same semantics is worse.

The semantics appear to be identical, even.

Quoted 9 lines

There really shouldn't be a new property name until new functionality is introduced. For example, it could allow to describe more than one cache at each level (the current binding already allows more than one parent for each cache, but only one child; and cache hierarchies like that actually exist).

Quoted 2 lines

I'm going to stick with the new binding as we don't use this linking currently.

Quoted 6 lines
Quoted 3 lines

Dunno what's the best thing to do here. If you don't need the functionality yet, it might be best to postpone putting either property in there. Sigh, what a mess.

Does existing practice count for anything? IBM pseries firmware uses the l2-cache property as described in the PowerPC binding.

The ePAPR does suggest to implement l2-cache for SW compat. If there is strong enough feeling we can support both but I'm sticking w/what's in ePAPR for 85xx as its just slightly more sane.

- k

#8 lore raw
In reply to Kumar Gala
Quoted 2 lines

Removed clock-frequency and big-endian props as they aren't specified anywhere.

If you remove "big-endian", you'll have to provide some other way to get that information (like, some new "compatible" value).

Dunno if we need "clock-frequency".

This patch also removes "built-in" properties. I'm all for that, but the patch description didn't say it does.

Segher

author
#9 lore raw
Quoted 5 lines · Segher Boessenkool
Quoted 2 lines

Removed clock-frequency and big-endian props as they aren't specified anywhere.

If you remove "big-endian", you'll have to provide some other way to get that information (like, some new "compatible" value).

I'm all for "big-endian" but we don't spec this anywhere and aren't using it right now. So until we have an real need to start an extended mpic definition I'm getting rid of it.

Quoted 1 line

Dunno if we need "clock-frequency".

Not used today.

Quoted 3 lines

This patch also removes "built-in" properties. I'm all for that, but the patch description didn't say it does.

will add that to the commit message.

- k

#10 lore raw
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Removed clock-frequency and big-endian props as they aren't specified anywhere.

If you remove "big-endian", you'll have to provide some other way to get that information (like, some new "compatible" value).

I'm all for "big-endian" but we don't spec this anywhere and aren't using it right now. So until we have an real need to start an extended mpic definition I'm getting rid of it.

If we would remove everything insufficiently documented, not much would be left. This doesn't seem very productive to me. Could you instead just add some TODO somewhere?

Quoted 3 lines
Quoted 1 line

Dunno if we need "clock-frequency".

Not used today.

Sure, the kernel might not use it today, but that's no reason to remove stuff from the device tree.

I'm not against removing "clock-frequency" though, it's not well-defined, and what would it be useful for anyway?

Quoted 4 lines
Quoted 3 lines

This patch also removes "built-in" properties. I'm all for that, but the patch description didn't say it does.

will add that to the commit message.

Thanks.

Segher

author
#11 lore raw
Quoted 11 lines · Segher Boessenkool
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Removed clock-frequency and big-endian props as they aren't specified anywhere.

If you remove "big-endian", you'll have to provide some other way to get that information (like, some new "compatible" value).

I'm all for "big-endian" but we don't spec this anywhere and aren't using it right now. So until we have an real need to start an extended mpic definition I'm getting rid of it.

If we would remove everything insufficiently documented, not much would be left. This doesn't seem very productive to me. Could you instead just add some TODO somewhere?

we were already inconsistent here so I've made all things equal and baselined.

Quoted 9 lines
Quoted 3 lines
Quoted 1 line

Dunno if we need "clock-frequency".

Not used today.

Sure, the kernel might not use it today, but that's no reason to remove stuff from the device tree.

I'm not against removing "clock-frequency" though, it's not well-defined, and what would it be useful for anyway?

As Scott pointed it it could be used for the frequency of the timers that exist in OpenPIC.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

This patch also removes "built-in" properties. I'm all for that, but the patch description didn't say it does.

will add that to the commit message.

Thanks.

I'm sticking to removing the cruft and if/when we need it some can add it properly.

- k