From: santosh shilimkar <santosh.shilimkar@oracle.com>
To: "Kwok, WingMan" <w-kwok2@ti.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"pawel.moll@arm.com" <pawel.moll@arm.com>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
"galak@codeaurora.org" <galak@codeaurora.org>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"ssantosh@kernel.org" <ssantosh@kernel.org>
Cc: "Karicheri, Muralidharan" <m-karicheri2@ti.com>
Subject: Re: [PATCH] ARM: dts: keystone: use one to one address translations under netcp
Date: Wed, 2 Sep 2015 08:50:11 -0700 [thread overview]
Message-ID: <55E71AB3.7070406@oracle.com> (raw)
In-Reply-To: <230CBA6E4B6B6B418E8730AC28E6FC7E04221776@DFLE11.ent.ti.com>
On 9/2/2015 8:31 AM, Kwok, WingMan wrote:
>
>
>> -----Original Message-----
>> From: santosh.shilimkar@oracle.com [mailto:santosh.shilimkar@oracle.com]
>> Sent: Tuesday, September 01, 2015 5:19 PM
>> To: Kwok, WingMan; robh+dt@kernel.org; pawel.moll@arm.com;
>> mark.rutland@arm.com; ijc+devicetree@hellion.org.uk; galak@codeaurora.org;
>> linux@arm.linux.org.uk; devicetree@vger.kernel.org; linux-arm-
>> kernel@lists.infradead.org; linux-kernel@vger.kernel.org; ssantosh@kernel.org
>> Cc: Karicheri, Muralidharan
>> Subject: Re: [PATCH] ARM: dts: keystone: use one to one address translations
>> under netcp
>>
>> On 9/1/15 1:28 PM, WingMan Kwok wrote:
>>> Network subsystem NetCP in Keystone-2 devices includes some HW blocks
>>> that are memory mapped to ranges outside that of the NetCP itself.
>>> Thus address space of a child node of the NetCP node needs to be
>>> mapped 1:1 onto the parent address space. Hence empty ranges
>>> should be used under the NetCP node.
>>>
>>> Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
>>> ---
>>> arch/arm/boot/dts/k2e-netcp.dtsi | 8 +++-----
>>> arch/arm/boot/dts/k2hk-netcp.dtsi | 14 ++++++--------
>>> arch/arm/boot/dts/k2l-netcp.dtsi | 8 +++-----
>>> 3 files changed, 12 insertions(+), 18 deletions(-)
>>>
>>> diff --git a/arch/arm/boot/dts/k2e-netcp.dtsi b/arch/arm/boot/dts/k2e-
>> netcp.dtsi
>>> index b13b3c9..e103ed9 100644
>>> --- a/arch/arm/boot/dts/k2e-netcp.dtsi
>>> +++ b/arch/arm/boot/dts/k2e-netcp.dtsi
>>> @@ -111,9 +111,7 @@ netcp: netcp@24000000 {
>>> compatible = "ti,netcp-1.0";
>>> #address-cells = <1>;
>>> #size-cells = <1>;
>>> -
>>> - /* NetCP address range */
>>> - ranges = <0 0x24000000 0x1000000>;
>>> + ranges;
>>>
>> What blocks are we talking here. We need to increase the
>> range if the current range isn't covering entire NETCP
>> address space. Removing range isn't a solution.
>>
>
> The Serdes. It is a HW block inside the NetCP but its address
> space starts from 0x0232a000. We can change the base in the
> ranges property to include the serdes. But then offsets of
> other HW blocks that are within the NetCP address range will be
> relative to this new base and are not as documented in the HW
> user guides.
>
I suspected the same. I know back then we started with SERDES code
with NETCP but as you already know, its a separate block which
is needed for NIC card to work. Its more of phy and hence its
having different address space is not surprising.
IIRC, there was a plan to consolidate the serdes code together
since the PCIE also needs it. Irrespective of that, I suggest
you model the serdes address space in another node and fetch
it from there if that works for you. Please also add DTS
documentation if you are going ahead with that approach.
Regards,
Santosh
next prev parent reply other threads:[~2015-09-02 15:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-01 20:28 [PATCH] ARM: dts: keystone: use one to one address translations under netcp WingMan Kwok
[not found] ` <1441139324-29296-1-git-send-email-w-kwok2-l0cyMroinI0@public.gmane.org>
2015-09-01 21:19 ` santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA
[not found] ` <55E61658.9010207-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-09-02 15:31 ` Kwok, WingMan
2015-09-02 15:50 ` santosh shilimkar [this message]
[not found] ` <55E71AB3.7070406-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-09-02 16:35 ` Murali Karicheri
2015-09-02 17:24 ` santosh shilimkar
[not found] ` <55E730D4.6040102-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-09-02 17:58 ` Murali Karicheri
[not found] ` <55E738AE.9000207-l0cyMroinI0@public.gmane.org>
2015-09-02 18:25 ` santosh shilimkar
2015-09-02 18:42 ` Murali Karicheri
2015-09-03 14:26 ` Tony Lindgren
2015-09-03 14:48 ` santosh.shilimkar
[not found] ` <20150903142645.GS4215-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2015-09-03 19:18 ` Murali Karicheri
[not found] ` <55E89CF8.4050700-l0cyMroinI0@public.gmane.org>
2015-09-08 15:13 ` Tony Lindgren
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=55E71AB3.7070406@oracle.com \
--to=santosh.shilimkar@oracle.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=m-karicheri2@ti.com \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=ssantosh@kernel.org \
--cc=w-kwok2@ti.com \
/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;
as well as URLs for NNTP newsgroup(s).