From: Sudeep Holla <sudeep.holla@arm.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Rob Herring <robh+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 2/3] arm64: dts: r8a7796: Add CA53 L2 cache-controller node
Date: Mon, 20 Feb 2017 10:18:48 +0000 [thread overview]
Message-ID: <36fbfe05-5e17-c520-d024-6ae0cbb2e833@arm.com> (raw)
In-Reply-To: <CAMuHMdV1JqRV6AqQDbMQNrkcDpzfUq7DU4NXVvTeCiSeW1-NYw@mail.gmail.com>
On 17/02/17 20:40, Geert Uytterhoeven wrote:
> On Fri, Feb 17, 2017 at 8:07 PM, Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
>> On Fri, Feb 17, 2017 at 6:51 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:
>>> On 17/02/17 15:30, Geert Uytterhoeven wrote:
>>>> Add a device node for the Cortex-A53 L2 cache-controller.
>>>>
>>>> The L2 cache for the Cortex-A53 CPU cores is 512 KiB large (organized as
>>>> 32 KiB x 16 ways).
>>>>
>>>> Extracted from a patch by Takeshi Kihara in the BSP.
>>>>
>>>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>>>> ---
>>>> arch/arm64/boot/dts/renesas/r8a7796.dtsi | 8 ++++++++
>>>> 1 file changed, 8 insertions(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
>>>> index 6c0a65abf9fd09eb..d848e94d7282e5aa 100644
>>>> --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
>>>> +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
>>>> @@ -62,6 +62,14 @@
>>>> cache-unified;
>>>> cache-level = <2>;
>>>> };
>>>> +
>>>> + L2_CA53: cache-controller@100 {
>>>> + compatible = "cache";
>>>> + reg = <0x100>;
>>>
>>> Is this not integrated L2 cache ? IIUC reg is MPIDR of the cpu and
>>> representing it as cache controller with some reg value doesn't sound
>>> correct IMO.
>>
>> So this should be cache-controller-1, without a reg property?
>
> BTW, that means the advice from https://lkml.org/lkml/2016/3/8/80:
>
> | Just add a reg property. The values should probably match the MPIDR in
> | some way (e.g. 0 and 100).
>
> was wrong, and we should fix all cache-controller nodes that got "fixed"?
>
OK. IMO it's cpu peripheral which has no mmio similar to architected
timers that are accessed via system registers. So representing them with
reg = mpidr sounds not correct. If DT maintainers are OK with such
representation, it should be fine but better to document it.
> Having better DT documentation for caches on ARM would be nice...
> There's only a (too) minimalist example in
> Documentation/devicetree/bindings/arm/cpu-capacity.txt
>
Agreed as I mentioned above.
--
Regards,
Sudeep
next prev parent reply other threads:[~2017-02-20 10:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-17 15:30 [PATCH 0/3] arm64: dts: r8a7796: Add Secondary CPU Cores Geert Uytterhoeven
2017-02-17 15:30 ` [PATCH 1/3] arm64: dts: r8a7796: Add Cortex-A57 CPU cores Geert Uytterhoeven
2017-02-17 15:30 ` [PATCH 2/3] arm64: dts: r8a7796: Add CA53 L2 cache-controller node Geert Uytterhoeven
2017-02-17 17:51 ` Sudeep Holla
2017-02-17 19:07 ` Geert Uytterhoeven
2017-02-17 20:40 ` Geert Uytterhoeven
2017-02-20 10:18 ` Sudeep Holla [this message]
2017-02-17 15:30 ` [PATCH 3/3] arm64: dts: r8a7796: Add Cortex-A53 CPU cores Geert Uytterhoeven
2017-03-02 14:46 ` [PATCH 0/3] arm64: dts: r8a7796: Add Secondary CPU Cores Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36fbfe05-5e17-c520-d024-6ae0cbb2e833@arm.com \
--to=sudeep.holla@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox