xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Julien Grall <julien.grall@citrix.com>,
	xen-devel@lists.xenproject.org,
	Andre Przywara <andre.przywara@arm.com>,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH 1/2] xen/arm: Add support of PSCI v1.0 for the host
Date: Fri, 9 Oct 2015 16:30:05 +0100	[thread overview]
Message-ID: <1444404605.1410.429.camel@citrix.com> (raw)
In-Reply-To: <20151009151740.GC21629@leverpostej>

On Fri, 2015-10-09 at 16:17 +0100, Mark Rutland wrote:
> On Fri, Oct 09, 2015 at 04:08:17PM +0100, Ian Campbell wrote:
> > On Thu, 2015-10-08 at 19:45 +0100, Julien Grall wrote:
> > > From Xen point of view, PSCI v0.2 and PSCI v1.0 are very similar. All
> > > the PSCI calls used within Xen (PSCI_VERSION, CPU_ON, SYSTEM_OFF and
> > > SYSTEM_RESET) behaves exactly the same.
> > > 
> > > While there is no compatible string to represent PSCI v1.0 in the DT,
> > > it's possible to detect it using the function PSCI_VERSION.
> > > 
> > > The compatible string is now used to detect if the platform may
> > > support
> > > PSCI v0.2 or higher.
> > 
> > The actual implementation here looks for precisely 0.2 or 1.0, not >=
> > 0.2
> > as suggested by this statement.
> > 
> > The PSCI 1.0 spec says (section 5.3.1, intended use of PSCI_VERSION)
> > that
> > for any 1.y version must be compatible with 1.x when y>x (for those
> > functions which existed in 1.x, y might have more).
> > 
> > IOW an OS supporting 1.0 should work with any 1.x.
> 
> This _should_ be the case. Linux assumes future versions are compatible
> in this manner.

OK, I think we can follow suite then.

> There was some minor incompatibility going from 0.2 to 1.0 (the new
> state parameter format) that could trip up existing PSCI 0.2 aware OSs,
> but hopefully we won't have that kind of thing happen again.

Well, the spec has promised not this time around, so I should hope so too ;
-) (or it would have to be 2.x)

> 
> > (which begs the question why there is not a "arm,psci-1.x" compat
> > string,
> > Mark/Andre?)
> 
> There will be one, in fact (see Lorenzo's pull request [1]), but it's
> only necessary to allow us to describe PSCI 1.0 implementations which
> are not strictly PSCI 0.2 compatible. Otherwise it's harmless to add for
> PSCI 1.0 compatible systems, but "arm,psci-0.2" should be sufficient.

Are "PSCI 1.0 implementations which are not strictly PSCI 0.2 compatible"
valid 1.0 implementations? I think so.

In that case it is not correct to say that in addition to all 1.x being
compatible 0.2 can also be treated as being in the 1.x "compatibility
bucket", without due care.

Anyway, I don't think these corner cases affect Xen.

Julien, will you add the new compat string in your next version?

Ian.

  reply	other threads:[~2015-10-09 15:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08 18:44 [PATCH 0/2] xen/arm: Add support for PSCI v1.0 Julien Grall
2015-10-08 18:45 ` [PATCH 1/2] xen/arm: Add support of PSCI v1.0 for the host Julien Grall
2015-10-09 15:08   ` Ian Campbell
2015-10-09 15:17     ` Mark Rutland
2015-10-09 15:30       ` Ian Campbell [this message]
2015-10-09 15:30         ` Julien Grall
2015-10-09 15:24     ` Julien Grall
2015-10-08 18:45 ` [PATCH 2/2] xen/arm: Replace XEN_PSCI_* by PSCI_VERSION(major, minor) Julien Grall
2015-10-09 15:10   ` Ian Campbell

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=1444404605.1410.429.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=andre.przywara@arm.com \
    --cc=julien.grall@citrix.com \
    --cc=mark.rutland@arm.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.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).