Skip to contentSkip to conversation

arm64: dts: qcom: kodiak: increase fastrpc compute-cb session slots

PATCH In review Jianping Li 3 participants 5 messages Apr 1 – Apr 2

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

PATCH 1/1 arm64: dts: qcom: kodiak: increase fastrpc compute-cb session slots

Some workloads on Kodiak can exhaust FastRPC sessions when multiple compute clients open contexts concurrently, leading to -EBUSY failures.

Describe the compute context bank with qcom,nsessions = <5> so the driver can provision enough session slots for the compute-cb instance.

---
 arch/arm64/boot/dts/qcom/kodiak.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/kodiak.dtsi +1 -0
index 6079e67ea829..5bd20909f9db 100644
@@ -4465,6 +4465,7 @@ compute-cb@5 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <5>;
 						iommus = <&apps_smmu 0x1805 0x0>;
+						qcom,nsessions = <5>;
 						dma-coherent;
 					};
 				};
Signature · 1 line
2.43.0
#1 lore raw
Quoted 5 lines · Jianping Li

Some workloads on Kodiak can exhaust FastRPC sessions when multiple compute clients open contexts concurrently, leading to -EBUSY failures.

Describe the compute context bank with qcom,nsessions = <5> so the driver can provision enough session slots for the compute-cb instance.

This is a software property, so it probably should not have been added to the DT in the first place. Can we replace it with the driver code, allocating more sessions to the last CB?

Quoted 21 lines
---
 arch/arm64/boot/dts/qcom/kodiak.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/kodiak.dtsi +1 -0
index 6079e67ea829..5bd20909f9db 100644
@@ -4465,6 +4465,7 @@ compute-cb@5 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <5>;
 						iommus = <&apps_smmu 0x1805 0x0>;
+						qcom,nsessions = <5>;
 						dma-coherent;
 					};
 				};
Signature · 1 line
2.43.0
Signature · 2 lines
With best wishes
Dmitry
#2 lore raw
Quoted 10 lines · Dmitry Baryshkov
Quoted 5 lines · Jianping Li

Some workloads on Kodiak can exhaust FastRPC sessions when multiple compute clients open contexts concurrently, leading to -EBUSY failures.

Describe the compute context bank with qcom,nsessions = <5> so the driver can provision enough session slots for the compute-cb instance.

This is a software property, so it probably should not have been added to the DT in the first place. Can we replace it with the driver code, allocating more sessions to the last CB?

Nov 2025 => https://lore.kernel.org/linux-arm-msm/[email protected]/

Konrad

#3 lore raw
Quoted 5 lines · Konrad Dybcio
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Jianping Li

Some workloads on Kodiak can exhaust FastRPC sessions when multiple compute clients open contexts concurrently, leading to -EBUSY failures.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Describe the compute context bank with qcom,nsessions = <5> so the driver can provision enough session slots for the compute-cb instance.

This is a software property, so it probably should not have been added to the DT in the first place. Can we replace it with the driver code, allocating more sessions to the last CB?

Nov 2025 => https://lore.kernel.org/linux-arm-msm/[email protected]/

Konrad

Received the comments you gave eariler, currentl checking them.

Thanks,
Jianping.

#4 lore raw
In reply to Dmitry Baryshkov
Quoted 9 lines · Dmitry Baryshkov
Quoted 5 lines · Jianping Li

Some workloads on Kodiak can exhaust FastRPC sessions when multiple compute clients open contexts concurrently, leading to -EBUSY failures.

Describe the compute context bank with qcom,nsessions = <5> so the driver can provision enough session slots for the compute-cb instance.

This is a software property, so it probably should not have been added to the DT in the first place. Can we replace it with the driver code, allocating more sessions to the last CB?

Thank you for your suggestion. I will check the methods you mentioned.

Thanks,
Jianping.

Quoted 21 lines
Quoted 21 lines
---
  arch/arm64/boot/dts/qcom/kodiak.dtsi | 1 +
  1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/kodiak.dtsi +1 -0
index 6079e67ea829..5bd20909f9db 100644
@@ -4465,6 +4465,7 @@ compute-cb@5 {
  						compatible = "qcom,fastrpc-compute-cb";
  						reg = <5>;
  						iommus = <&apps_smmu 0x1805 0x0>;
+						qcom,nsessions = <5>;
  						dma-coherent;
  					};
  				};
Signature · 1 line
2.43.0