All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: julien.grall@linaro.org,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 3/4] xen/arm: Add PSCI system_off and system_reset support
Date: Wed, 1 Oct 2014 11:26:06 +0100	[thread overview]
Message-ID: <1412159166.4861.5.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1410011101570.17038@kaball.uk.xensource.com>

On Wed, 2014-10-01 at 11:07 +0100, Stefano Stabellini wrote:
> > diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c
> > index b6360d5..b0d94a8 100644
> > --- a/xen/arch/arm/psci.c
> > +++ b/xen/arch/arm/psci.c
> > @@ -58,6 +58,16 @@ int call_psci_cpu_on(int cpu)
> >                                  cpu_logical_map(cpu), __pa(init_secondary), 0);
> >  }
> >  
> > +void call_psci_system_off(void)
> > +{
> > +    __invoke_psci_fn_smc(PSCI_0_2_FN_SYSTEM_OFF, 0, 0, 0);
> > +}
> > +
> > +void call_psci_system_reset(void)
> > +{
> > +    __invoke_psci_fn_smc(PSCI_0_2_FN_SYSTEM_RESET, 0, 0, 0);
> > +}
> 
> This assumes PSCI 0.2 but actually the cpu_on function is still reading
> the id from device tree.
> Could you please change that too for uniformity?

There's actually quite a bit more required, detecting the DT compat
string for v0.2 and following the updated bindings for that case.

Having done that we need to use the 0.2 function ids for the existing
calls too. And these new calls need to check that 0.2 is present and
fail on 0.1.

Ian.

  reply	other threads:[~2014-10-01 10:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01  8:07 [PATCH 0/4] Introduce AMD Seattle platform support suravee.suthikulpanit
2014-10-01  8:07 ` [PATCH 1/4] gicv2: Add compatibility id for gic-400 suravee.suthikulpanit
2014-10-01  9:54   ` Stefano Stabellini
2014-10-01 14:41   ` Julien Grall
2014-10-01  8:07 ` [PATCH 2/4] amd/seattle: Add early printk message for the platform suravee.suthikulpanit
2014-10-01  9:55   ` Stefano Stabellini
2014-10-01 14:43   ` Julien Grall
2014-10-01  8:07 ` [PATCH 3/4] xen/arm: Add PSCI system_off and system_reset support suravee.suthikulpanit
2014-10-01 10:07   ` Stefano Stabellini
2014-10-01 10:26     ` Ian Campbell [this message]
2014-10-01 14:15       ` Suravee Suthikulpanit
2014-10-01 14:46         ` Ian Campbell
2014-10-01 17:58           ` Suravee Suthikulanit
2014-10-02  8:28             ` Ian Campbell
2014-10-01 14:04     ` Ian Campbell
2014-10-01  8:07 ` [PATCH 4/4] amd/seattle: Initial revision of AMD Seattle support suravee.suthikulpanit
2014-10-01 10:10   ` Stefano Stabellini
2014-10-01 19:21     ` Suravee Suthikulanit
2014-10-02  9:10       ` Stefano Stabellini

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=1412159166.4861.5.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=xen-devel@lists.xen.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 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.