From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: cache-l2x0: add resume entry for l2 in secure mode
Date: Thu, 29 Sep 2011 10:24:06 +0100 [thread overview]
Message-ID: <20110929092406.GD23944@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20110929092828.GE19318@S2100-06.ap.freescale.net>
On Thu, Sep 29, 2011 at 05:28:29PM +0800, Shawn Guo wrote:
> On Sun, Sep 25, 2011 at 08:26:09PM -0700, Barry Song wrote:
> > we save the l2x0 registers at the first initialization, and platform codes
> > can get them to restore l2x0 status after wakeup.
> >
> > Cc: Shawn Guo <shawn.guo@linaro.org>
> > Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> > Signed-off-by: Barry Song <Baohua.Song@csr.com>
> > ---
> > -v2:
> > define the structure l2x0_regs to hold all saved registers;
> > make saved copy of registers non-static so that platform codes can access them;
> > add asm_offset for l2x0 saved regs(l2x0_regs struct) so that asm codes can use
> >
>
> I'm trying to migrate imx6q to this infrastructure, but seeing some
> facts that might stop me from the effort. Please help me understand
> these facts are correct.
>
> It seems to me that the only benefit that imx6q gains from the
> infrastructure is the register saving, and I fail to see any benefit
> on the restoring.
That's correct - because I believe that's the only part which is worth
doing in common code. The restoring tends to be platform dependent so
I don't see the point of having a bunch of code in common files to do
that which almost no one uses.
> * I still have to save physical base of l2x0 for register restoring.
That could be added to the structure.
> * I do not have the physical address of l2x0_saved_regs, and I have
> to manage to get it somehow.
That's true no matter what - we could store the physical address of
the struct somewhere, but then in order for you to obtain that, you'd
somehow need to know the physical address of _that_ location too - so
there's no benefit there.
It can be obtained simply by: __pa(l2x0_saved_regs) in C code, and
saving that in a location known to the platform prior to suspend.
next prev parent reply other threads:[~2011-09-29 9:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-26 3:26 [PATCH v2] ARM: cache-l2x0: add resume entry for l2 in secure mode Barry Song
2011-09-29 5:35 ` Santosh Shilimkar
2011-09-29 5:49 ` Shawn Guo
2011-09-29 5:59 ` Barry Song
2011-09-29 10:22 ` Lorenzo Pieralisi
2011-09-29 10:36 ` Santosh Shilimkar
2011-09-29 9:28 ` Shawn Guo
2011-09-29 9:24 ` Russell King - ARM Linux [this message]
2011-09-29 12:44 ` Shawn Guo
2011-09-29 12:50 ` Russell King - ARM Linux
2011-09-29 13:12 ` Shawn Guo
2011-09-29 13:26 ` Russell King - ARM Linux
2011-09-29 13:50 ` Shawn Guo
2011-09-29 9:44 ` Barry Song
2011-09-29 13:57 ` Shawn Guo
2011-09-29 14:55 ` Barry Song
2011-09-29 15:07 ` Shawn Guo
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=20110929092406.GD23944@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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).