From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Alexandre Courbot
<gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] ARM: tegra: Remove 0, prefix from unit-addresses
Date: Tue, 12 Apr 2016 10:39:55 -0600 [thread overview]
Message-ID: <570D24DB.3030405@wwwdotorg.org> (raw)
In-Reply-To: <20160412143946.GB25160-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
On 04/12/2016 08:39 AM, Thierry Reding wrote:
> On Mon, Apr 11, 2016 at 12:47:23PM -0600, Stephen Warren wrote:
>> On 04/11/2016 12:32 PM, Rob Herring wrote:
>>> On Mon, Apr 11, 2016 at 11:05 AM, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote:
>>>> On 04/11/2016 08:01 AM, Thierry Reding wrote:
>>>>>
>>>>> From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>>>>
>>>>> When Tegra124 support was first merged the unit-addresses of all devices
>>>>> were listed with a "0," prefix to encode the reg property's second cell.
>>>>> It turns out that this notation is not correct, and the "," separator is
>>>>> only used to separate fields in the unit address (such as the device and
>>>>> function number in PCI devices), not individual cells for addresses with
>>>>> more than one cell.
>>>>
>>>>
>>>>> diff --git a/arch/arm/boot/dts/tegra124-jetson-tk1.dts
>>>>> b/arch/arm/boot/dts/tegra124-jetson-tk1.dts
>>>>
>>>>
>>>>> - gpu@0,57000000 {
>>>>> + gpu@57000000 {
>>>>> /*
>>>>> * Node left disabled on purpose - the bootloader will
>>>>> enable
>>>>> * it after having set the VPR up
>>>>
>>>>
>>>> So the bootloader doesn't actually do that for the new node name at present.
>>>> I have written a patch to make it do so, but haven't sent it yet since I
>>>> wrote it in the middle of a large cleanup of U-Boot. I expect I can shuffle
>>>> it to the front of the series and send it soon though. Without a new
>>>> bootloader that contains this change, IIUC all graphics will be
>>>> non-operative if this change is applied.
>>>
>>> Then you should leave this one alone for a while.
>>>
>>> I also found this looking at u-boot:
>>>
>>> arch/arm/dts/tegra124.dtsi: gpu@57000000 {
>>
>> FWIW, that's because the U-Boot DTs use #address-cells=<1> on this chip so
>> there was no question of using commas in the unit address or not. That may
>> have been because U-Boot imported the DTs (or parts of them) from Linux
>> before Linux switched to #address-cells=<2> on this chip.
>
> I thought the reason had been that U-Boot didn't support any more than
> 32-bits for addresses on 32-bit ARM anyway, hence we never bothered to
> sync with the kernel DTS files regarding #address-cells.
Ah, that has also been historically true. It isn't true any more
(excepting any latent bugs, which do keep cropping up).
> Technically it would be possible for someone to write a DTS file with a
> GPU node with yet another name (the binding after all doesn't specify
> what the node name should be) so I think better matching would be safer
> in any case.
Yes, that does seem better. I'll try and get that one patch out today,
assuming I can rebase it to the bottom of the stack easily. FYI, U-Boot
is now on a 2-month release cycle, so the next scheduled release is
v2016.05 on May 9, and the merge window just closed for that release.
It's arguable this is a bug fix though...
next prev parent reply other threads:[~2016-04-12 16:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-11 14:01 [PATCH] ARM: tegra: Remove 0, prefix from unit-addresses Thierry Reding
[not found] ` <1460383271-27306-2-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-11 16:05 ` Stephen Warren
[not found] ` <570BCB41.2030504-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-04-11 18:32 ` Rob Herring
[not found] ` <CAL_JsqLASP+cytYA7rWn-Ox2W47rkf3t+n3KwBexvBQNc4J_RQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-11 18:47 ` Stephen Warren
[not found] ` <570BF13B.4060108-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-04-12 14:39 ` Thierry Reding
[not found] ` <20160412143946.GB25160-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-04-12 16:18 ` Rob Herring
2016-04-12 16:39 ` Stephen Warren [this message]
2016-04-12 14:34 ` Thierry Reding
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=570D24DB.3030405@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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;
as well as URLs for NNTP newsgroup(s).