linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* arm_smccc_smc as generic smc interface?
@ 2019-12-09 18:07 Tony Lindgren
  2019-12-10  8:09 ` Jens Wiklander
  0 siblings, 1 reply; 9+ messages in thread
From: Tony Lindgren @ 2019-12-09 18:07 UTC (permalink / raw)
  To: Catalin Marinas, Russell King, Will Deacon
  Cc: Mark Rutland, Sumit Garg, Arnd Bergmann, Volodymyr Babchuk,
	Marc Zyngier, Andrew F. Davis, Olof Johansson, Andy Gross,
	Colin Ian King, Jens Wiklander, linux-arm-kernel

Hi all,

So it seems that we could make arm_smccc_smc() into a generic kernel
smc interface instead of being limited to optee usage. That is
assuming optee and legacy calls are never be enabled the same time
on a booted system :)

I know arm_smccc_smc() currently assumes a specific register usage
for the optee case, but AFAIK those limitations do not exist for
non-optee cases.

Does anybody see some other issues with making arm_smccc_smc() into
a generic smc call interface?

If there are some more optee specific considerations with making
arm_smccc_smc() into a generic interface, we could just set up
something generic that also arm_smccc_smc() can then call.

The use case I'm familiar with are the old TI smc calls that need
register specific quirks enabled only for the non-optee case,
while with optee enabled, quirks are not needed. There are
probably similar issues with other SoCs too.

Regards,

Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-12-12 18:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-09 18:07 arm_smccc_smc as generic smc interface? Tony Lindgren
2019-12-10  8:09 ` Jens Wiklander
2019-12-10 15:38   ` Tony Lindgren
2019-12-12 14:23     ` Mark Rutland
2019-12-12 15:23       ` Andrew F. Davis
2019-12-12 15:58         ` Mark Rutland
2019-12-12 17:12           ` Will Deacon
2019-12-12 17:47             ` Andrew F. Davis
2019-12-12 18:56               ` Mark Rutland

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