[PATCH 1/2] rng: msm: add support for newer Qualcomm hwrandom IPs

Alexey Minnekhanov alexeymin at postmarketos.org
Tue Nov 26 14:53:11 CET 2024


25.11.2024 20:12, Neil Armstrong wrote:
> On recent Qualcomm SoCs, the hardware random generator
> is initialized and handled by the firmware because shared
> between different Execution Environments (EE), thus the
> initialization step should be skipped.
> 
> Also support the newer "TRNG" found on SM8550 and newer
> SoCs that has inbuilt NIST SP800 90B compliant entropic source.
> 
> Signed-off-by: Neil Armstrong <neil.armstrong at linaro.org>
> ---
>   drivers/rng/msm_rng.c | 13 ++++++++++++-
>   1 file changed, 12 insertions(+), 1 deletion(-)
> 

I've tried this patch on my sdm660 device (which is using
qcom,prng-ee) and it seems to work fine. I now see in Linux dmesg:

   [    0.000000] KASLR enabled

Without this patch it was:

   [    0.000000] KASLR disabled due to lack of seed

Tested-by: Alexey Minnekhanov <alexeymin at postmarketos.org>



More information about the U-Boot mailing list