linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* RNDR/SS vs. SMCCC
@ 2021-05-26 23:54 Benjamin Herrenschmidt
  2021-05-27 12:50 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Benjamin Herrenschmidt @ 2021-05-26 23:54 UTC (permalink / raw)
  To: Andre Przywara
  Cc: Mark Brown, Will Deacon, Saidi, Ali, benh, linux-arm-kernel

Hi folks !

I'm trying to understand the rationale for having SMCCC take precedence
over the architected instruction in
arch/arm64/include/asm/archrandom.h 

Especially I don't quite get the comment about SMCCC being more in the
"spirit" than let's say RNDRSS. It's definitely MUCH slower.

Also, why not implement arch_get_random_* using RNDR rather than
forcing these through the kernel CNRG ?

Finally, RNDR/RNDRSS can fail occasionally, we should probably
implement some kind of delay+retry here. I'm not super familiar with
the context in which arch_get_random_* can be called (are they allowed
to sleep ?) but from the implementation I'm aware of at least, the idea
is that they might under some HW recovery scenarii so we should sleep a
couple of ms and try again a few times.

Thoughts ?

Cheers,
Ben.



_______________________________________________
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] 12+ messages in thread

end of thread, other threads:[~2021-06-03 21:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 23:54 RNDR/SS vs. SMCCC Benjamin Herrenschmidt
2021-05-27 12:50 ` Mark Brown
2021-05-27 23:12   ` Benjamin Herrenschmidt
2021-05-28 12:56     ` Mark Brown
2021-05-29  2:36       ` Benjamin Herrenschmidt
2021-05-31  1:02         ` Andre Przywara
2021-05-31  5:24           ` Ard Biesheuvel
2021-06-02 22:04             ` Benjamin Herrenschmidt
2021-06-03  0:19               ` Andre Przywara
2021-06-03  1:41                 ` Benjamin Herrenschmidt
2021-06-03  7:10                   ` Ard Biesheuvel
2021-06-03 21:30                     ` Benjamin Herrenschmidt

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