From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 2/2] Documentation: devicetree: Add new binding for PSCIv0.2
Date: Thu, 20 Mar 2014 14:22:42 +0000 [thread overview]
Message-ID: <20140320142242.GC23372@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <20140320030319.GO1297@cbox>
On Thu, Mar 20, 2014 at 03:03:19AM +0000, Christoffer Dall wrote:
> On Wed, Mar 19, 2014 at 08:54:25PM -0400, Ashwin Chaugule wrote:
> > The PSCI v0.2+ spec defines static values for PSCI function IDs.
> > Add a new binding entry so that pre v0.2 implementations can
> > use DT entries for function IDs and v0.2+ implementations use
> > static entries as defined by the PSCIv0.2 specification.
> >
> > Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
> > ---
> > Documentation/devicetree/bindings/arm/psci.txt | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt
> > index 433afe9..a808284 100644
> > --- a/Documentation/devicetree/bindings/arm/psci.txt
> > +++ b/Documentation/devicetree/bindings/arm/psci.txt
> > @@ -21,7 +21,11 @@ to #0.
> >
> > Main node required properties:
> >
> > - - compatible : Must be "arm,psci"
> > + - compatible : "arm,psci" : pre PSCIv0.2 spec implementations use this
> > + to get the function IDs from DT entries.
> > +
> > + "arm,psci-0.2": PSCIv0.2+ spec implementations use static
> > + values for function IDs as defined in the spec.
How about:
- compatible: should contain at least one of:
* "arm,psci" : for implementations complying to PSCI versions prior to
0.2. For these cases function IDs must be provided.
* "arm,psci-0.2" : for implementations complying to PSCI 0.2. Function
IDs are not required and should be ignored by an OS with PSCI 0.2
support, but are permitted to be present for compatibility with
existing software when "arm,psci" is later in the compatible list.
> Maybe specify that in this case no function IDs are passed in the device
> tree?
As described above, for compatibility with existing kernels, the
hypervisor will likely want to provide IDs, e.g.
psci {
compatible = "arm,psci-0.2", "arm,psci";
method = "hvc";
cpu_on = < arbitrary value >;
cpu_off = < arbitrary value >;
...
};
In this case I'd expect an OS with PSCI 0.2 support to use the PSCI 0.2
IDs, but an older OS would use the IDs from the DT (which may or may not
match the PSCI 0.2 IDs).
So while we should say is any function IDs should be ignored for
"arm,psci-0.2", we shouldn't say that they are disallowed in the node.
The document should have examples of "arm,psci" only, "arm,psci-0.2"
only, and the compatibility case.
Cheers,
Mark.
next prev parent reply other threads:[~2014-03-20 14:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-20 0:54 [PATCH v1 1/2] PSCI: Use DT Function ID values only for old versions of spec Ashwin Chaugule
2014-03-20 0:54 ` [PATCH v1 2/2] Documentation: devicetree: Add new binding for PSCIv0.2 Ashwin Chaugule
2014-03-20 3:03 ` Christoffer Dall
2014-03-20 14:22 ` Mark Rutland [this message]
2014-03-20 14:53 ` Christoffer Dall
2014-03-20 1:25 ` [PATCH v1 1/2] PSCI: Use DT Function ID values only for old versions of spec Rob Herring
2014-03-20 2:51 ` Christoffer Dall
2014-03-20 14:26 ` Mark Rutland
2014-03-20 17:04 ` Rob Herring
2014-03-20 17:09 ` Christoffer Dall
2014-03-20 3:06 ` Christoffer Dall
2014-03-20 14:57 ` Mark Rutland
2014-03-20 15:39 ` Ashwin Chaugule
2014-03-21 10:51 ` Mark Rutland
2014-03-21 12:49 ` Ashwin Chaugule
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=20140320142242.GC23372@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).