From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: mach-shmobile: sh7372 generic suspend/resume
Date: Wed, 13 Jul 2011 12:34:32 +0000 [thread overview]
Message-ID: <20110713123432.GJ23270@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20110707134813.22370.25948.sendpatchset@t400s>
On Wed, Jul 13, 2011 at 08:05:04PM +0900, Magnus Damm wrote:
> On Thu, Jul 7, 2011 at 10:50 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Thu, Jul 07, 2011 at 10:48:13PM +0900, Magnus Damm wrote:
> >> From: Magnus Damm <damm@opensource.se>
> >>
> >> Convert the sh7372 Core Standby code to make use
> >> of the new generic ARM cpu suspend/resume code.
> >
> > Thanks. Only thing which stands out is:
> >
> >> + .global sh7372_resume_core_standby
> >> +sh7372_resume_core_standby:
> >> + ldr pc, 1f
> >> +1: .long cpu_resume - PAGE_OFFSET + PLAT_PHYS_OFFSET
> >
> > Is this because sh7372_resume_core_standby must be ARM stuff, but
> > cpu_resume may be Thumb?
>
> That may have something to do with it, but I suspect not. Perhaps you
> wonder why I'm not pointing the reset vector directly to cpu_resume()
> - that's because we need the reset vector to be aligned to 4k.
Wouldn't a simple branch instruction do here? Branches are relative
(within 24-bit) so you wouldn't need any games with v:p stuff. You
may have to put that in .data so that it can reach cpu_resume if
you're using a large initramfs image.
> I simply nicked the PA->VA conversion code from the SMP entry code in headsmp.S:
>
> .align 12
> ENTRY(shmobile_secondary_vector)
> ldr pc, 1f
> 1: .long secondary_startup - PAGE_OFFSET + PLAT_PHYS_OFFSET
>
> Any suggestions?
Again, a simple branch instruction should avoid the need to reference
PLAT_PHYS_OFFSET or virtual addresses.
next prev parent reply other threads:[~2011-07-13 12:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-07 13:48 [PATCH] ARM: mach-shmobile: sh7372 generic suspend/resume support Magnus Damm
2011-07-07 13:50 ` [PATCH] ARM: mach-shmobile: sh7372 generic suspend/resume Russell King - ARM Linux
2011-07-13 11:05 ` [PATCH] ARM: mach-shmobile: sh7372 generic suspend/resume support Magnus Damm
2011-07-13 12:34 ` Russell King - ARM Linux [this message]
2011-08-03 4:45 ` Magnus Damm
2012-03-28 6:53 ` [PATCH] ARM: mach-shmobile: sh7372 generic board support via DT V2 Magnus Damm
2012-03-28 22:32 ` Rafael J. Wysocki
2012-03-29 4:48 ` Magnus Damm
2012-03-29 20:40 ` Rafael J. Wysocki
2012-03-30 6:22 ` Magnus Damm
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=20110713123432.GJ23270@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-sh@vger.kernel.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