Cleanup mpic nodes in .dts
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property
In reply to Kumar GalaQuoted 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
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
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
Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property
In reply to Segher BoessenkoolQuoted 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
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
Re: [PATCH] [POWERPC] 85xx: Add next-level-cache property
In reply to Kumar GalaQuoted 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
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.
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
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