All of lore.kernel.org
 help / color / mirror / Atom feed
From: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: julien.grall@linaro.org, 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 09:15:27 -0500	[thread overview]
Message-ID: <542C0C7F.7040306@amd.com> (raw)
In-Reply-To: <1412159166.4861.5.camel@citrix.com>



On 10/01/2014 05:26 AM, Ian Campbell wrote:
> 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?

Sure, I can add that.

>
> 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.
>

So, it seems that minimally, we would need support for all PSCI-0.2 
functions except MIGRATION. Also, once the system uses "arm,psci-0.2", 
the power_off and reset code path should hook into the PSCI interface by 
default.Does this sound right?

However, for Seattle, I would still need to provide the 
"platform.[reset|poweroff] ops since it's not full PSCI-0.2 (yet).

Suravee

  reply	other threads:[~2014-10-01 14:15 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
2014-10-01 14:15       ` Suravee Suthikulpanit [this message]
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=542C0C7F.7040306@amd.com \
    --to=suravee.suthikulpanit@amd.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=stefano.stabellini@eu.citrix.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.