Skip to contentSkip to conversation

MSM8917/MSM8937/MSM8953 fix prng

PATCH In review Barnabás Czémán 2 participants 6 messages Oct 1 – Nov 15

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover MSM8917/MSM8937/MSM8953 fix prng

On MSM8917/MSM8937/MSM8953 HW QRNG is configured by TZ. qcom-rng driver will not have access to the configuration registers. Change the compatible to qcom,prng-ee for skip the initialization sequence.

Compatbile changes are fixing this issue:

Call trace:
 qcom_rng_init+0x6c/0xe8 [qcom_rng] (P)
 crypto_create_tfm_node+0x154/0x198
 crypto_alloc_tfm_node+0xa4/0x1b4
 crypto_alloc_rng+0x34/0x48
 rng_bind+0x60/0xa8 [algif_rng]
 alg_bind+0x15c/0x1f4 [af_alg]
 __arm64_sys_bind+0xb8/0x120
 invoke_syscall+0x6c/0x11c
 el0_svc_common+0x98/0xe8
 do_el0_svc+0x2c/0x3c
 el0_svc+0x40/0x9c
 el0t_64_sync_handler+0x88/0x134
 el0t_64_sync+0x1a0/0x1a4

---
Barnabás Czémán (3):
arm64: dts: qcom: msm8917: change prng compatible
arm64: dts: qcom: msm8937: change prng compatible
arm64: dts: qcom: msm8953: change prng compatible

 arch/arm64/boot/dts/qcom/msm8917.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/msm8937.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

---
base-commit: 6c2cb8b8b843d216ab549b678a0d8831c43153e0
change-id: 20261001-prng-fix-5366a05da970

Best regards,

Signature · 1 line
Barnabás Czémán <[email protected]>
#1 lore raw

PATCH 1/3 arm64: dts: qcom: msm8917: change prng compatible

On MSM8917 HW QRNG is configured by TZ. qcom-rng driver
will not have access to the configuration registers.
Change the compatible to qcom,prng-ee for skip the initialization sequence.

Fixes 7f18b1ea7987 ("arm64: dts: qcom: Add initial support for MSM8917")
---
 arch/arm64/boot/dts/qcom/msm8917.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8917.dtsi +1 -1
index a2907f8a6376..ca647efc883f 100644
@@ -610,7 +610,7 @@ tsens_s10_p2: s10-p2@232 {
 		};
 
 		rng@e3000 {
-			compatible = "qcom,prng";
+			compatible = "qcom,prng-ee";
 			reg = <0x000e3000 0x1000>;
 			clocks = <&gcc GCC_PRNG_AHB_CLK>;
 			clock-names = "core";
Signature · 1 line
2.56.0
#2 lore raw

PATCH 2/3 arm64: dts: qcom: msm8937: change prng compatible

In reply to Barnabás Czémán

On MSM8937 HW QRNG is configured by TZ. qcom-rng driver
will not have access to the configuration registers.
Change the compatible to qcom,prng-ee for skip the initialization sequence.

Fixes a829f6f2e8a7 ("arm64: dts: qcom: Add initial support for MSM8937")
---
 arch/arm64/boot/dts/qcom/msm8937.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8937.dtsi +1 -1
index 7de6447de48f..73909d6179c3 100644
@@ -653,7 +653,7 @@ usb_hs_phy: phy@6c000 {
 		};
 
 		rng@e3000 {
-			compatible = "qcom,prng";
+			compatible = "qcom,prng-ee";
 			reg = <0x000e3000 0x1000>;
 			clocks = <&gcc GCC_PRNG_AHB_CLK>;
 			clock-names = "core";
Signature · 1 line
2.56.0
#3 lore raw

PATCH 3/3 arm64: dts: qcom: msm8953: change prng compatible

In reply to Barnabás Czémán

On MSM8953 HW QRNG is configured by TZ. qcom-rng driver
will not have access to the configuration registers.
Change the compatible to qcom,prng-ee for skip the initialization sequence.

Fixes 9fb08c801923 ("arm64: dts: qcom: Add MSM8953 device tree")
---
 arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8953.dtsi +1 -1
index 753167c3f861..99a1bca8e13a 100644
@@ -483,7 +483,7 @@ hsusb_phy: phy@79000 {
 		};
 
 		rng@e3000 {
-			compatible = "qcom,prng";
+			compatible = "qcom,prng-ee";
 			reg = <0x000e3000 0x1000>;
 			clocks = <&gcc GCC_PRNG_AHB_CLK>;
 			clock-names = "core";
Signature · 1 line
2.56.0
Reviewed-by on the v1 series
#4 lore raw
In reply to Barnabás Czémán
Quoted 20 lines · Barnabás Czémán

On MSM8917/MSM8937/MSM8953 HW QRNG is configured by TZ. qcom-rng driver will not have access to the configuration registers. Change the compatible to qcom,prng-ee for skip the initialization sequence.

Compatbile changes are fixing this issue:

Call trace:
 qcom_rng_init+0x6c/0xe8 [qcom_rng] (P)
 crypto_create_tfm_node+0x154/0x198
 crypto_alloc_tfm_node+0xa4/0x1b4
 crypto_alloc_rng+0x34/0x48
 rng_bind+0x60/0xa8 [algif_rng]
 alg_bind+0x15c/0x1f4 [af_alg]
 __arm64_sys_bind+0xb8/0x120
 invoke_syscall+0x6c/0x11c
 el0_svc_common+0x98/0xe8
 do_el0_svc+0x2c/0x3c
 el0_svc+0x40/0x9c
 el0t_64_sync_handler+0x88/0x134
 el0t_64_sync+0x1a0/0x1a4
Quoted 2 lines

---

Konrad

#5 lore raw
In reply to Barnabás Czémán
Quoted 31 lines · Barnabás Czémán

On MSM8917/MSM8937/MSM8953 HW QRNG is configured by TZ. qcom-rng driver will not have access to the configuration registers. Change the compatible to qcom,prng-ee for skip the initialization sequence.

Compatbile changes are fixing this issue:

Call trace:
 qcom_rng_init+0x6c/0xe8 [qcom_rng] (P)
 crypto_create_tfm_node+0x154/0x198
 crypto_alloc_tfm_node+0xa4/0x1b4
 crypto_alloc_rng+0x34/0x48
 rng_bind+0x60/0xa8 [algif_rng]
 alg_bind+0x15c/0x1f4 [af_alg]
 __arm64_sys_bind+0xb8/0x120
 invoke_syscall+0x6c/0x11c
 el0_svc_common+0x98/0xe8
 do_el0_svc+0x2c/0x3c
 el0_svc+0x40/0x9c
 el0t_64_sync_handler+0x88/0x134
 el0t_64_sync+0x1a0/0x1a4

---
Barnabás Czémán (3):
arm64: dts: qcom: msm8917: change prng compatible
arm64: dts: qcom: msm8937: change prng compatible
arm64: dts: qcom: msm8953: change prng compatible

 arch/arm64/boot/dts/qcom/msm8917.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/msm8937.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Quoted 7 lines

---
base-commit: 6c2cb8b8b843d216ab549b678a0d8831c43153e0
change-id: 20261001-prng-fix-5366a05da970

Best regards,
--
Barnabás Czémán <[email protected]>

I hope it is not forgotten, should I resend it?