PSCI version misdetection

Mark Rutland mark.rutland at arm.com
Mon Mar 12 05:13:53 PDT 2018


On Mon, Mar 12, 2018 at 08:56:41AM -0300, Fabio Estevam wrote:
> Hi Mark,
> 
> On Mon, Mar 12, 2018 at 8:36 AM, Mark Rutland <mark.rutland at arm.com> wrote:
> 
> > Ok. AFAICT, you need to implement psci_version, and any other mandatory
> > PSCI features such as affinity info in your board code, as otherwise the
> > default weak implementation is used.
> 
> Thanks for your clarification.
> 
> I did as suggested and implemeted psci_version (in the same way as ls1021xa):
> https://pastebin.com/ZfJkN2HC
> 
> and now I get:
> 
> [    0.000000] psci: probing for conduit method from DT.
> [    0.000000] psci: PSCIv1.0 detected in firmware.
> [    0.000000] psci: Using standard PSCI v0.2 function IDs
> [    0.000000] psci: MIGRATE_INFO_TYPE not supported.

Cool!

As I mentioned, you must also implement the other mandatory PSCI 1.0
features:

* AFFINITY_INFO -- this is necessary for correct synchronization of
  CPU_OFF calls.

* CPU_SUSPEND -- this can simply return INVALID_PARAMETERS for all
  power_state arguments.

Thanks,
Mark.



More information about the linux-arm-kernel mailing list