[U-Boot] [PATCH v3 00/13] ARMv7: add PSCI support to u-boot

Marc Zyngier marc.zyngier at arm.com
Fri Apr 18 09:48:12 CEST 2014


On Thu, Apr 17 2014 at 08:55:56 PM, Jon Loeliger <loeliger at gmail.com> wrote:
>> No, so far there hasn't been much discussion, and people seem happy with
>> it. I have a couple of fixes lined up, but nothing major.
>
> So, I think PSCI 0.2 calls for function numbers in the 0x8400xxxx range.
> Seems like we'll have to fix this in one of your patches:
>
>     /* PSCI interface */
>     #define ARM_PSCI_FN_BASE                0x95c1ba5e
>
> to be:
>
>     #define ARM_PSCI_FN_BASE                0x84000000

That would be the case if what we have here was a 0.2 implementation. It
is not. This is the old 0.1 implementation, which is supported in Linux,
KVM and Xen. 0.2 isn't supported anywhere so far (I'm close to merge the
KVM patches, but Linux has no binding just yet).

In 0.1, the number space is entierely undefined. For this
implementation, I used the same numbering as the one documented in the
Linux kernel (Documentation/devicetree/bindings/arm/psci.txt) and KVM
for obvious reasons (arch/arm/include/uapi/asm/kvm.h).

Furthermore, the numbering space is not enough to make this a 0.2
implementation, the extent of the functionallity to implement is much
larger.

When the Linux kernel actually supports 0.2, I'll be happy to add 0.2
support *aside* 0.1.

> Just thought I'd toss that out there, you know, if you were collecting
> fixes for a repost of your patches... :-)

Always happy to stash some more on top of what I already have. I already
rebased the whole pile of crap on top of U-Boot as of yesterday
afternoon, together with Ian's mainline sunxi stuff (see the ijc-merge
branch in my korg repo). Still need to apply fixes on top, but it is
looking OK so far.

I'm be AFK until Tuesday (WTF am I doing now???), but hopefully will get
back to it quickly enough. Expect a drop sometime next week.

	M.
-- 
Jazz is not dead. It just smells funny.


More information about the U-Boot mailing list