From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/7] Tegra114: Add AVP (arm720t) files
Date: Tue, 22 Jan 2013 14:02:56 -0700 [thread overview]
Message-ID: <50FEFE80.4090704@wwwdotorg.org> (raw)
In-Reply-To: <CA+m5__+Bw5=a1XR0HqbwcMrX0qiGxU-S7NWRAjaDbXBQ1DLBYw@mail.gmail.com>
On 01/22/2013 01:46 PM, Tom Warren wrote:
> Stephen,
>
> On Fri, Jan 18, 2013 at 5:09 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 01/18/2013 05:01 PM, Stephen Warren wrote:
>>> On 01/18/2013 02:12 PM, Tom Warren wrote:
>>>> This provides SPL support for T114 boards - AVP early init, plus
>>>> CPU (A15) init/jump to main U-Boot.
>>>
>>>> +void powerup_cpus(void)
>>>> +{
>>>> + debug("powerup_cpus entry\n");
>>>> +
>>>> + /* Are we booting to the fast cluster? */
>>>> + if (get_cluster_id() == 0) {
>>>> + debug("powerup_cpus entry: G cluster\n");
>>>> + /* Power up the fast cluster rail partition */
>>>> + power_partition(CRAIL, CRAILID);
>>>> +
>>>> + /* Power up the fast cluster non-CPU partition */
>>>> + power_partition(C0NC, C0NCID);
>>>> +
>>>> + /* Power up the fast cluster CPU0 partition */
>>>> + power_partition(CE0, CE0ID);
>>>> + } else {
>>>> + debug("powerup_cpus entry: LP cluster\n");
>>>> + /* Power up the slow cluster non-CPU partition */
>>>> + power_partition(C1NC, C1NCID);
>>>> +
>>>> + /* Power up the slow cluster CPU partition */
>>>> + power_partition(CELP, CELPID);
>>>> + }
>>>> +}
>>>
>>> I strongly believe we should determine why that is needed rather than
>>> blindly upstreaming it.
>>
>> Thinking about this more, this makes even less sense. When Tegra boots,
>> code runs on the AVP. That code is U-Boot. U-Boot then boots the A15
>> cores, and hence U-Boot is what decides whether to boot the LP or G
>> cluster; it doesn't follow some decision by some other SW since there is
>> no other SW.
>>
>> The only possible exception to this might be resume from some low-power
>> state where you want to restart the same A15 cluster as was running
>> prior to entering sleep. But that would require the flow controller
>> register read by get_cluster_id() to be in an always-on power domain.
>> I'm not sure if that's true or not. (If it isnt', presumably the
>> power-on state would always be static, hence there would be no need to
>> read the register).
>
> I agree with your analysis. How about if I remove get_cluster_id(),
> and just set the power partitions for the fast cluster?
I think that makes sense, yes.
next prev parent reply other threads:[~2013-01-22 21:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 21:12 [U-Boot] [PATCH v2 0/7] Add support for NVIDIA Tegra114 SoC Tom Warren
2013-01-18 21:12 ` [U-Boot] [PATCH v2 1/7] Tegra114: Add arch-tegra114 include files Tom Warren
2013-01-18 23:54 ` Stephen Warren
2013-01-22 20:44 ` Tom Warren
2013-01-22 21:02 ` Stephen Warren
2013-01-18 21:12 ` [U-Boot] [PATCH v2 2/7] Tegra114: Add AVP (arm720t) files Tom Warren
2013-01-19 0:01 ` Stephen Warren
2013-01-19 0:09 ` Stephen Warren
2013-01-22 20:46 ` Tom Warren
2013-01-22 21:02 ` Stephen Warren [this message]
2013-01-18 21:12 ` [U-Boot] [PATCH v2 3/7] Tegra114: Add CPU (armv7) files Tom Warren
2013-01-22 20:06 ` Simon Glass
2013-01-18 21:12 ` [U-Boot] [PATCH v2 4/7] Tegra114: Add common CPU (shared) files Tom Warren
2013-01-22 20:54 ` Simon Glass
2013-01-22 21:37 ` Tom Warren
2013-01-22 21:45 ` Simon Glass
2013-01-22 21:49 ` Tom Warren
2013-01-22 21:53 ` Simon Glass
2013-01-18 21:12 ` [U-Boot] [PATCH v2 5/7] Tegra114: Dalmore: Add DT files Tom Warren
2013-01-18 21:12 ` [U-Boot] [PATCH v2 6/7] Tegra114: Add generic Tegra114 build support Tom Warren
2013-01-18 21:12 ` [U-Boot] [PATCH v2 7/7] Tegra114: Add/enable Dalmore build (T114 reference board) Tom Warren
2013-01-19 0:03 ` Stephen Warren
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=50FEFE80.4090704@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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