
26 Nov
2024
26 Nov
'24
2:53 p.m.
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@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@postmarketos.org