Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1438735
| From | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] arm64: dts: berlin4ct: Add L2 cache topology |
| Date | 2016-07-07 19:20 +0200 |
| Message-ID | <rSl7X-1t6-13@gated-at.bofh.it> (permalink) |
| References | <rKB9T-62Y-7@gated-at.bofh.it> <rRZ7s-3Lq-11@gated-at.bofh.it> <rSavT-2JR-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07.07.2016 07:48, Jisheng Zhang wrote:
> On Wed, 6 Jul 2016 19:49:01 +0200 Sebastian Hesselbarth wrote:
>> On 16.06.2016 10:40, Jisheng Zhang wrote:
>>> This patch adds the L2 cache topology for berlin4ct which has 1MB L2
>>> cache.
>>>
>>> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
>>> ---
>>> arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
>>> index 099ad93..c9e3a98 100644
>>> --- a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
>>> +++ b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
>> [...]
>>> @@ -92,9 +95,14 @@
>>> device_type = "cpu";
>>> reg = <0x3>;
>>> enable-method = "psci";
>>> + next-level-cache = <&L2_0>;
>>> cpu-idle-states = <&CPU_SLEEP_0>;
>>> };
>>>
>>> + L2_0: l2-cache0 {
>>
>> The node name should just have a generic name that reflects
>> the purpose of the unit it represents, i.e.
>> s/l2-cache0/cache/
>
> IMHO, "cache" is too generic, this is L2 cache topology, so in v2, I use
> "l2-cache" instead. what do you think?
>
> PS: I found other arm64 SoCs also use "l2-cache" as the node name.
Yeah, I realized that too. Anyway, the node name should be as generic
as possible. Moreover, the more specific compatible string below also
is "cache", too. So I see no reason why the node name should be more
specific than the compatible.
>>> + compatible = "cache";
>>> + };
If you want to have the cache-level represented in the node, I guess
you can use cache-level property. However, I cannot find any cache
related binding documentation other than for arm(32) and powerpc that
mentions cache-level property.
If you are fine with it, I can pick up the v2 you sent earlier, rename
the node to "cache" only, and add a cache-level = <2>; property while
applying.
Sebastian
>>> idle-states {
>>> entry-method = "psci";
>>> CPU_SLEEP_0: cpu-sleep-0 {
>>>
>>
>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] arm64: dts: berlin4ct: Add L2 cache topology Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> - 2016-07-06 19:50 +0200
Re: [PATCH] arm64: dts: berlin4ct: Add L2 cache topology Jisheng Zhang <jszhang@marvell.com> - 2016-07-07 08:00 +0200
Re: [PATCH] arm64: dts: berlin4ct: Add L2 cache topology Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> - 2016-07-07 19:20 +0200
Re: [PATCH] arm64: dts: berlin4ct: Add L2 cache topology Jisheng Zhang <jszhang@marvell.com> - 2016-07-08 08:20 +0200
csiph-web