All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Scott Wood <scottwood@freescale.com>
Cc: kexec@lists.infradead.org, Simon Horman <horms@verge.net.au>,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 2/2] ppc64: Add a flag to tell the kernel it's booting from kexec
Date: Tue, 18 Aug 2015 13:53:11 +1000	[thread overview]
Message-ID: <1439869991.1763.7.camel@ellerman.id.au> (raw)
In-Reply-To: <1439868650.15601.61.camel@freescale.com>

On Mon, 2015-08-17 at 22:30 -0500, Scott Wood wrote:
> On Tue, 2015-08-18 at 12:51 +1000, Michael Ellerman wrote:
> > On Mon, 2015-08-17 at 13:59 -0500, Scott Wood wrote:
> > > On Sat, 2015-07-18 at 14:57 -0500, Scott Wood wrote:
> > > > It needs to know this because the SMP release mechanism for Freescale
> > > > book3e is different from when booting with normal hardware.  In theory
> > > > we could simulate the normal spin table mechanism, but not (easily) at
> > > > the addresses U-Boot put in the device tree -- so there'd need to be
> > > > even more communication between the kernel and kexec to set that up.
> > > > Since there's already a similar flag being set (for kdump only), this
> > > > seemed like a reasonable approach.
> > > > 
> > > > Signed-off-by: Scott Wood <scottwood@freescale.com>
> > > > ---
> > > >  kexec/arch/ppc64/kexec-elf-ppc64.c | 11 ++++++++++-
> > > >  kexec/arch/ppc64/kexec-ppc64.h     |  2 ++
> > > >  purgatory/arch/ppc64/v2wrap.S      | 11 +++++++++++
> > > >  3 files changed, 23 insertions(+), 1 deletion(-)
> > > 
> > > Any comment on these two patches?
> > 
> > We should probably reserve 0x58 in the kernel's head_64.S too?
> 
> That's done in http://patchwork.ozlabs.org/patch/497417/

Right, sorry should have reviewed those :)

> Or do you mean that you want the kernel change to go in before the userspace 
> change?

No I'm not bothered about the ordering really.

cheers



_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

WARNING: multiple messages have this Message-ID (diff)
From: Michael Ellerman <mpe@ellerman.id.au>
To: Scott Wood <scottwood@freescale.com>
Cc: Simon Horman <horms@verge.net.au>,
	linuxppc-dev@lists.ozlabs.org, kexec@lists.infradead.org
Subject: Re: [PATCH 2/2] ppc64: Add a flag to tell the kernel it's booting from kexec
Date: Tue, 18 Aug 2015 13:53:11 +1000	[thread overview]
Message-ID: <1439869991.1763.7.camel@ellerman.id.au> (raw)
In-Reply-To: <1439868650.15601.61.camel@freescale.com>

On Mon, 2015-08-17 at 22:30 -0500, Scott Wood wrote:
> On Tue, 2015-08-18 at 12:51 +1000, Michael Ellerman wrote:
> > On Mon, 2015-08-17 at 13:59 -0500, Scott Wood wrote:
> > > On Sat, 2015-07-18 at 14:57 -0500, Scott Wood wrote:
> > > > It needs to know this because the SMP release mechanism for Freescale
> > > > book3e is different from when booting with normal hardware.  In theory
> > > > we could simulate the normal spin table mechanism, but not (easily) at
> > > > the addresses U-Boot put in the device tree -- so there'd need to be
> > > > even more communication between the kernel and kexec to set that up.
> > > > Since there's already a similar flag being set (for kdump only), this
> > > > seemed like a reasonable approach.
> > > > 
> > > > Signed-off-by: Scott Wood <scottwood@freescale.com>
> > > > ---
> > > >  kexec/arch/ppc64/kexec-elf-ppc64.c | 11 ++++++++++-
> > > >  kexec/arch/ppc64/kexec-ppc64.h     |  2 ++
> > > >  purgatory/arch/ppc64/v2wrap.S      | 11 +++++++++++
> > > >  3 files changed, 23 insertions(+), 1 deletion(-)
> > > 
> > > Any comment on these two patches?
> > 
> > We should probably reserve 0x58 in the kernel's head_64.S too?
> 
> That's done in http://patchwork.ozlabs.org/patch/497417/

Right, sorry should have reviewed those :)

> Or do you mean that you want the kernel change to go in before the userspace 
> change?

No I'm not bothered about the ordering really.

cheers

  reply	other threads:[~2015-08-18  3:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-18 19:57 [PATCH 1/2] ppc64: Fix warnings Scott Wood
2015-07-18 19:57 ` Scott Wood
2015-07-18 19:57 ` [PATCH 2/2] ppc64: Add a flag to tell the kernel it's booting from kexec Scott Wood
2015-07-18 19:57   ` Scott Wood
2015-08-17 18:59   ` Scott Wood
2015-08-17 18:59     ` Scott Wood
2015-08-18  2:51     ` Michael Ellerman
2015-08-18  2:51       ` Michael Ellerman
2015-08-18  3:30       ` Scott Wood
2015-08-18  3:30         ` Scott Wood
2015-08-18  3:53         ` Michael Ellerman [this message]
2015-08-18  3:53           ` Michael Ellerman

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=1439869991.1763.7.camel@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=horms@verge.net.au \
    --cc=kexec@lists.infradead.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.com \
    /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.