Message ID | 20230822-topic-sm8550-rng-v1-0-8e10055165d1@linaro.org |
---|---|
Headers | show |
Series | arm64: qcom: sm8550: enable RNG | expand |
On 8/22/2023 7:41 PM, Neil Armstrong wrote: > Add the Qualcomm Pseudo-Random Number Generator. > > Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> > --- Reviewed-by: Om Prakash Singh <quic_omprsing@quicinc.com> > arch/arm64/boot/dts/qcom/sm8550.dtsi | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi > index d115960bdeec..643ec80feacc 100644 > --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi > @@ -1661,6 +1661,11 @@ mmss_noc: interconnect@1780000 { > qcom,bcm-voters = <&apps_bcm_voter>; > }; > > + rng: rng@10c3000 { > + compatible = "qcom,sm8550-prng-ee", "qcom,prng-ee"; > + reg = <0 0x010c3000 0 0x1000>; > + }; > + > pcie0: pci@1c00000 { > device_type = "pci"; > compatible = "qcom,pcie-sm8550"; >
Enable RNG on SM8550. Output of rngtest : rngtest 6.15 Copyright (c) 2004 by Henrique de Moraes Holschuh This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rngtest: starting FIPS tests... rngtest: bits received from input: 188260032 rngtest: FIPS 140-2 successes: 9405 rngtest: FIPS 140-2 failures: 8 rngtest: FIPS 140-2(2001-10-10) Monobit: 1 rngtest: FIPS 140-2(2001-10-10) Poker: 1 rngtest: FIPS 140-2(2001-10-10) Runs: 2 rngtest: FIPS 140-2(2001-10-10) Long run: 4 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 rngtest: input channel speed: (min=7.518; avg=50.591; max=19073.486)Mibits/s rngtest: FIPS tests speed: (min=21.146; avg=27.867; max=160.281)Mibits/s rngtest: Program run time: 10003649 microseconds ... Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> --- Neil Armstrong (2): dt-bindings: crypto: qcom,prng: document SM8550 arm64: dts: qcom: sm8550: Add PRNG Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 8 ++++++-- arch/arm64/boot/dts/qcom/sm8550.dtsi | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) --- base-commit: 28c736b0e92e11bfe2b9997688213dc43cb22182 change-id: 20230822-topic-sm8550-rng-c83142783e20 Best regards,