All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yen Lin <yelin@nvidia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 09/14] tegra: Add warmboot implementation
Date: Fri, 13 Jan 2012 14:04:38 -0800	[thread overview]
Message-ID: <1326492278.16046.98.camel@yelin-desktop> (raw)
In-Reply-To: <CAPnjgZ1KArHqY7Wf5vybY01XdV--Ap6BV9A+e403=F54yD7YHA@mail.gmail.com>

Hi Simon,

On Fri, 2012-01-13 at 11:34 -0800, Simon Glass wrote:
> Hi Stephen,
> 
> [Yen please can you read this also?]
> 
> On Tue, Jan 10, 2012 at 10:30 AM, Stephen Warren <swarren@nvidia.com> wrote:
> > On 12/26/2011 12:33 PM, Simon Glass wrote:
> >> From: Yen Lin <yelin@nvidia.com>
> >>
> >> Add code to set up the warm boot area in the Tegra CPU ready for a
> >> resume after suspend.
> >>
> >> Signed-off-by: Simon Glass <sjg@chromium.org>
> >
> > How come Yen's S-o-b line is missing here?
> >
> > As a general comment on this patch, it contains a lot of structure
> > definitions and defines that should really be part of the clock module's
> > headers and similar; why not just included the clock headers and place
> > all the definitions in those headers if they aren't already there?
> 
> Yes this bit of it got a pretty light review at the time and I was
> reluctant to press on the bitfields when that side of things was still
> up in the air. No functions exist to access these things and using the
> clk_rst.h header adds a mountain of ugly reg & OSC_FREQ_MASK) >>
> OSC_FREQ_SHIFT to the code. I am still uncomfortable with how this
> sort of thing is done in U-Boot.
> 
> Also the AVP code cannot call functions in clock.c (they are in SDRAM
> which isn't on yet), so we need the structures or some sort of access
> there anyway.
> 
> I will tidy up some low-hanging fruit in warmboot.c but don't know
> that I can do much with warmboot_avp.c. At least it isn't assembler
> anymore!
> 
> But there a few questions here. Firstly it seems that it saves some
> memory speed info to scratch2 but never restores it. Then it restores
> CPU speed from scratch3 but I can't see where it saves it. Does Yen
> have any comments on that? Apparently it works because we have been
> using it, but... If it is saving things that are never restored I
> could dump that and reduce the code size.
> 

U-boot code saves sdram parameters to scratch2, scratch4, and scratch 24
registers, so when system resumes, bootrom can restore sdram parameters
from these registers.

The scratch3 register content was saved by kernel before suspend, and is
used by the warmboot code to restore PLLX settings.


Regards,

Yen


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

  reply	other threads:[~2012-01-13 22:04 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-26 19:32 [U-Boot] [PATCH 0/14] tegra: warmboot (suspend / resume) support Simon Glass
2011-12-26 19:32 ` [U-Boot] [PATCH 01/14] Add AES crypto library Simon Glass
2012-01-08  5:49   ` Mike Frysinger
2012-01-08  8:57     ` Marek Vasut
2012-01-08  9:09       ` Mike Frysinger
2012-01-08 10:40         ` Marek Vasut
2012-01-08 16:35           ` Simon Glass
2011-12-26 19:32 ` [U-Boot] [PATCH 02/14] tegra: Move ap20.h header into arch location Simon Glass
2011-12-26 19:32 ` [U-Boot] [PATCH 03/14] tegra: Add crypto library for warmboot code Simon Glass
2012-01-08  5:51   ` Mike Frysinger
2012-01-08 16:42     ` Simon Glass
2011-12-26 19:32 ` [U-Boot] [PATCH 04/14] tegra: Add flow, gp_padctl, fuse, sdram headers Simon Glass
2011-12-26 19:32 ` [U-Boot] [PATCH 05/14] tegra: Add tegra_get_chip_type() to detect SKU Simon Glass
2012-01-09 23:24   ` Stephen Warren
2012-01-12 19:35     ` Simon Glass
2012-01-12 19:48       ` Stephen Warren
2012-01-13 21:06         ` Simon Glass
2011-12-26 19:32 ` [U-Boot] [PATCH 06/14] tegra: Add EMC support for optimal memory timings Simon Glass
2012-01-09 23:38   ` Stephen Warren
2012-01-12 20:43     ` Simon Glass
2012-01-13 17:47       ` Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 07/14] tegra: Add PMU to manage power supplies Simon Glass
2012-01-10 17:56   ` Stephen Warren
2012-01-12 23:17     ` Simon Glass
2012-01-12 23:43       ` Stephen Warren
2012-01-12 23:55         ` Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 08/14] tegra: Set up PMU for Nvidia boards Simon Glass
2012-01-10 18:02   ` Stephen Warren
2012-01-12 23:42     ` Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 09/14] tegra: Add warmboot implementation Simon Glass
2012-01-10 18:30   ` Stephen Warren
2012-01-13 19:34     ` Simon Glass
2012-01-13 22:04       ` Yen Lin [this message]
2012-01-13 23:05         ` Simon Glass
2012-01-13 23:08           ` Stephen Warren
2012-01-14  0:04             ` Yen Lin
2011-12-26 19:33 ` [U-Boot] [PATCH 10/14] tegra: Setup PMC scratch info from ap20 setup Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 11/14] tegra: Set up warmboot code on Nvidia boards Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 12/14] tegra: Set vdd_core and vdd_cpu to high Simon Glass
2012-01-10 18:40   ` Stephen Warren
2012-01-13 17:55     ` Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 13/14] tegra: Add EMC settings for Seaboard, Harmony Simon Glass
2012-01-10 18:46   ` Stephen Warren
2012-01-12 23:05     ` Simon Glass
2012-01-12 23:42       ` Stephen Warren
2012-01-12 23:54         ` Simon Glass
2012-01-13  0:01           ` Stephen Warren
2012-01-13  0:05             ` Simon Glass
2012-01-13  0:10               ` Stephen Warren
2012-01-13  0:18                 ` Simon Glass
2011-12-26 19:33 ` [U-Boot] [PATCH 14/14] tegra: Enable LP0 on Seaboard Simon Glass

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=1326492278.16046.98.camel@yelin-desktop \
    --to=yelin@nvidia.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.