linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* CPU_METHOD_OF_DECLARE() with Linux as non-secure OS
@ 2015-10-28 12:36 Mason
  2015-10-29  4:22 ` Rob Herring
  2015-10-29 16:03 ` Måns Rullgård
  0 siblings, 2 replies; 11+ messages in thread
From: Mason @ 2015-10-28 12:36 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

I'm working on a dual-core SoC (Cortex-A9 MPCore) with Linux running
as the non-secure OS. The secure OS implements some of the APIs used
in OMAP2 via SMC.

To start the second core, I used to define .smp in my DT_MACHINE_START
definition, but Arnd wrote: "There are other ways to do [.smp and .restart]
too, see CPU_METHOD_OF_DECLARE() and register_restart_handler()."

Is CPU_METHOD_OF_DECLARE() the way to go?
Is it "compatible" with executing smc to ask the secure OS to do whatever
is needed to start the second core? (I don't understand why starting cores
is secure OS responsibility.)

I've located three relevant secure OS services:
get_aux_core_boot
set_aux_core_boot0
set_aux_core_boot_addr

I'm looking for guidance. What mach-* should I take as a reference to
implement "second core startup from non-secure OS"?

An ARM engineer suggested PSCI a while back, but I can't change the
secure OS API at this time.

Regards.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-11-02 13:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 12:36 CPU_METHOD_OF_DECLARE() with Linux as non-secure OS Mason
2015-10-29  4:22 ` Rob Herring
2015-10-29 16:03 ` Måns Rullgård
2015-10-29 17:50   ` Mason
2015-10-29 18:04     ` Måns Rullgård
2015-10-30 20:12       ` Mason
2015-10-31 15:41         ` Måns Rullgård
2015-11-02 10:10           ` Mason
2015-11-02 13:31             ` Måns Rullgård
2015-11-02 10:17           ` Russell King - ARM Linux
2015-11-02 11:55             ` Mason

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).