xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Dirk Behme <dirk.behme@de.bosch.com>, xen-devel@lists.xen.org
Cc: sstabellini@kernel.org
Subject: Re: [PATCH] xen/arm: domain_build: Add PSCI 1.0 compatibility
Date: Wed, 20 Apr 2016 14:43:24 +0100	[thread overview]
Message-ID: <5717877C.40603@arm.com> (raw)
In-Reply-To: <1461159122-1484-1-git-send-email-dirk.behme@de.bosch.com>

Hello Dirk,

On 20/04/16 14:32, Dirk Behme wrote:
> Add PSCI 1.0 compatibility strings to make Xen behave correctly with
> device trees having
>
> compatible = "arm,psci-1.0";

You need to explain in the commit message what is the correct behavior. 
I.e Xen needs to blacklist any PSCI 1.0 node as it will be recreated for 
DOM0.

> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
> ---
>   xen/arch/arm/domain_build.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index aba714c..f65bc46 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -666,6 +666,7 @@ static int make_psci_node(void *fdt, const struct dt_device_node *parent)
>   {
>       int res;
>       const char compat[] =
> +        "arm,psci-1.0""\0"

DOM0 will use the virtual PSCI implementation in Xen (see 
arch/arm/vpsci.c). This implementation only supports v0.1 and v0.2.

>           "arm,psci-0.2""\0"
>           "arm,psci";
>
> @@ -1190,6 +1191,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
>           DT_MATCH_COMPATIBLE("multiboot,module"),
>           DT_MATCH_COMPATIBLE("arm,psci"),
>           DT_MATCH_COMPATIBLE("arm,psci-0.2"),
> +        DT_MATCH_COMPATIBLE("arm,psci-1.0"),
>           DT_MATCH_COMPATIBLE("arm,cortex-a7-pmu"),
>           DT_MATCH_COMPATIBLE("arm,cortex-a15-pmu"),
>           DT_MATCH_COMPATIBLE("arm,armv8-pmuv3"),
>

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2016-04-20 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-20 13:32 [PATCH] xen/arm: domain_build: Add PSCI 1.0 compatibility Dirk Behme
2016-04-20 13:43 ` Julien Grall [this message]

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=5717877C.40603@arm.com \
    --to=julien.grall@arm.com \
    --cc=dirk.behme@de.bosch.com \
    --cc=sstabellini@kernel.org \
    --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 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).