From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
Cc: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
"rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org"
<rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Dave P Martin <Dave.Martin-5wv7dgnIgG8@public.gmane.org>,
Ian Campbell
<Ian.Campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>,
Stefano Stabellini
<stefano.stabellini-mvvWK6WmYclDPfheJLI6IQ@public.gmane.org>,
Marc Zyngier <Marc.Zyngier-5wv7dgnIgG8@public.gmane.org>,
Christoffer Dall
<christoffer.dall-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Charles Garcia-Tobin
<Charles.Garcia-Tobin-5wv7dgnIgG8@public.gmane.org>,
Matt Sealey <neko-HhXTZounMxbZATc7fWT8Dg@public.gmane.org>
Subject: Re: [PATCH v4] dt: update PSCI binding documentation for v0.2
Date: Fri, 20 Sep 2013 11:20:15 +0100 [thread overview]
Message-ID: <20130920102015.GH17453@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <CAOesGMjNhYTfPOr5NPEC9GWym-nuFE0hX_6+LW9bTv_E3iXbcQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, Sep 20, 2013 at 05:36:51AM +0100, Olof Johansson wrote:
> Hi,
Hi Olof,
>
> Just a quick drive-by. Sorry, I don't know the history of previous
> review cycles.
>
>
> On Thu, Sep 19, 2013 at 2:24 PM, Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > Main node optional properties:
> >
> > - - cpu_suspend : Function ID for CPU_SUSPEND operation
> > + - cpu_suspend[-<32|64] : Function ID for CPU_SUSPEND operation
> > +
> > + - cpu_off : Function ID for CPU_OFF operation
> > +
> > + - cpu_on[-<32|64] : Function ID for CPU_ON operation
> > +
> > + - affinity_info[-<32|64] : Function ID for AFFINITY_INFO operation
> >
> > - - cpu_off : Function ID for CPU_OFF operation
> > + - migrate[-<32|64] : Function ID for MIGRATE operation
> >
> > - - cpu_on : Function ID for CPU_ON operation
> > + - migrate_info_type : Function ID for MIGRATE_INFO_TYPE operation
> >
> > - - migrate : Function ID for MIGRATE operation
> > + - migrate_info_up_cpu[-<32|64] : Function ID for MIGRATE_INFO_UP_CPU operation
> >
> > + - system_reset : Function ID for SYSTEM_RESET operation
> > +
> > + - system_off : Function ID for SYSTEM_OFF operation
>
> All of these should use dashes instead of underscores.
I also don't like the underscores, but they're an unfortunate historical
artifact that we can't get rid of (at least for cpu_on, cpu_off, and
cpu_suspend).
Both Xen and kvmtool are already passing DTs to guests which have
underscores in the property names, so it's both a boot ABI and a
userspace ABI.
One aim with this update is to ensure that the new binding maintains a
level of forward compatibility for OSs -- the PSCI 0.2 binding needs to
be a superset of the existing PSCI binding to allow Xen and KVM to
provide PSCI 0.2 functionality without sacrificing the ability to boot
older guests (kvmtool could be given a flag to choose what version of
PSCI to provide, but I'm not sure that can be done for Xen).
Given that, I'm not sure if it makes sense to force the rest to have
dashes rather than underscores -- it'll leave the binding more
inconsistent.
>
> I also wonder if it would be better to move them into a subnode to
> keep the namespace a bit cleaner.
For the compatibility reasons above, I don't think we can do this. At
least the existing IDs (cpu_on, cpu_off, and cpu_suspend) would need to
be described in the psci node rather than a child.
>
> > +Some functions have have separate IDs for 32-bit and 64-bit calling
> > +conventions. These separate function IDs are described with function names with
> > +"-64" and "-32" suffixes (e.g. cpu_on-64). Where a function name does not have
> > +a suffix, the ID may be used with either calling convention depending on the
> > +CPU state -- AArch32 callers should use the 32-bit calling convention, and
> > +AArch64 callers should use the 64-bit calling convention.
>
> Why not just make them a possible two-element property with <32 64>,
> or if only one element, same on both? Seems cleaner.
A 64-bit platform may not have 32-bit call support, and we wouldn't be
able to describe that with a <32 64> property format. As it is valid for
a 64-bit OS to make 32-bit calls, we need to not describe a 32-bit call
ID in that case.
Cheers,
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-09-20 10:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 21:24 [PATCH v4] dt: update PSCI binding documentation for v0.2 Rob Herring
[not found] ` <1379625868-5395-1-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-20 4:36 ` Olof Johansson
[not found] ` <CAOesGMjNhYTfPOr5NPEC9GWym-nuFE0hX_6+LW9bTv_E3iXbcQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-20 10:20 ` Mark Rutland [this message]
[not found] ` <20130920102015.GH17453-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-09-25 17:15 ` Olof Johansson
[not found] ` <CAOesGMid5pgcVD+oCjUr_75tv+C5QtVZt=Vt9kdiT_QPFOrzrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-25 19:20 ` Rob Herring
[not found] ` <CAL_JsqK1LE9rptajTOfvzNd1NQEihJzwm0YtJMzpUz-BhwJg5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-25 19:34 ` Olof Johansson
[not found] ` <CAOesGMgM2JsWbBOujdiCZdKkHqTRuN0P=OsdKGiyzz6_aiGWSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-25 20:28 ` Rob Herring
2013-09-26 21:23 ` Matt Sealey
2013-11-15 14:48 ` Stefano Stabellini
[not found] ` <alpine.DEB.2.02.1311151447590.4714-7Z66fg9igcxYtxbxJUhB2Dgeux46jI+i@public.gmane.org>
2013-11-15 15:39 ` Rob Herring
[not found] ` <5286401E.5090400-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-11-15 15:44 ` 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=20130920102015.GH17453@e106331-lin.cambridge.arm.com \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=Charles.Garcia-Tobin-5wv7dgnIgG8@public.gmane.org \
--cc=Dave.Martin-5wv7dgnIgG8@public.gmane.org \
--cc=Ian.Campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org \
--cc=Marc.Zyngier-5wv7dgnIgG8@public.gmane.org \
--cc=christoffer.dall-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=neko-HhXTZounMxbZATc7fWT8Dg@public.gmane.org \
--cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
--cc=robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=stefano.stabellini-mvvWK6WmYclDPfheJLI6IQ@public.gmane.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).