Skip to contentSkip to conversation

arm64: dts: qcom: Remove FastRPC compute CB9 entries

PATCH Superseded Abhinav Parihar 3 participants 5 messages Oct 16 – Oct 22

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: Remove FastRPC compute CB9 entries

Context bank 9 is reserved for secure use cases and must not be exposed as a FastRPC compute context bank for non-secure offloading.
Remove the compute-cb@9 nodes from the Lemans and Monaco device trees to prevent clients from selecting a secure context bank for normal FastRPC workloads.

Secure use case support is not currently implemented upstream.

---
 arch/arm64/boot/dts/qcom/lemans.dtsi | 16 ----------------
 arch/arm64/boot/dts/qcom/monaco.dtsi |  7 -------
 2 files changed, 23 deletions(-)
arch/arm64/boot/dts/qcom/lemans.dtsi +0 -16
index 695eae1b7256..5481dfb73454 100644
@@ -7861,14 +7861,6 @@ compute-cb@8 {
 						dma-coherent;
 					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x2149 0x04a0>,
-							 <&apps_smmu 0x2189 0x0400>;
-						dma-coherent;
-					};
-
 					compute-cb@11 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <11>;
@@ -8000,14 +7992,6 @@ compute-cb@8 {
 						dma-coherent;
 					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x2949 0x04a0>,
-							 <&apps_smmu 0x2989 0x0400>;
-						dma-coherent;
-					};
-
 					compute-cb@10 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <10>;
arch/arm64/boot/dts/qcom/monaco.dtsi +0 -7
index cfe39f923224..e73a735f2f13 100644
@@ -7822,13 +7822,6 @@ compute-cb@8 {
 						dma-coherent;
 					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x19c9 0x0400>;
-						dma-coherent;
-					};
-
 					compute-cb@11 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <0xb>;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 2 lines · Abhinav Parihar

Context bank 9 is reserved for secure use cases and must not be exposed as a FastRPC compute context bank for non-secure offloading.

The lack of a platform name in the commit message and a split over that suggests this is a universal truth for all Qualcomm platforms, yet the patch only limits this to some of those who currently define a cb@9.

Please make it more clear which one is intended.

Quoted 5 lines

Remove the compute-cb@9 nodes from the Lemans and Monaco device trees to prevent clients from selecting a secure context bank for normal FastRPC workloads.

Secure use case support is not currently implemented upstream.

Ordering this sentence before the previous paragraph would make the commit message read more naturally

Konrad

#2 lore raw
Quoted 8 lines · Konrad Dybcio
Quoted 2 lines · Abhinav Parihar

Context bank 9 is reserved for secure use cases and must not be exposed as a FastRPC compute context bank for non-secure offloading.

The lack of a platform name in the commit message and a split over that suggests this is a universal truth for all Qualcomm platforms, yet the patch only limits this to some of those who currently define a cb@9.

Please make it more clear which one is intended.

Ack, patch v2 will have patch series including removal from all platforms having cb@9

Quoted 9 lines
Quoted 5 lines

Remove the compute-cb@9 nodes from the Lemans and Monaco device trees to prevent clients from selecting a secure context bank for normal FastRPC workloads.

Secure use case support is not currently implemented upstream.

Ordering this sentence before the previous paragraph would make the commit message read more naturally

Konrad

Ack

#3 lore raw
In reply to Abhinav Parihar
Quoted 9 lines · Abhinav Parihar

Context bank 9 is reserved for secure use cases and must not be exposed as a FastRPC compute context bank for non-secure offloading.
Remove the compute-cb@9 nodes from the Lemans and Monaco device trees to prevent clients from selecting a secure context bank for normal FastRPC workloads.

Secure use case support is not currently implemented upstream.

can you add Fixes: tag as well?> Signed-off-by: Abhinav Parihar <[email protected]>

Quoted 3 lines
---
 arch/arm64/boot/dts/qcom/lemans.dtsi | 16 ----------------
 arch/arm64/boot/dts/qcom/monaco.dtsi |  7 -------

separate the patch both different platforms, also please include other applicable platforms in your next spin> 2 files changed, 23 deletions(-)

Quoted 53 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +0 -16
index 695eae1b7256..5481dfb73454 100644
@@ -7861,14 +7861,6 @@ compute-cb@8 {
 						dma-coherent;
 					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x2149 0x04a0>,
-							 <&apps_smmu 0x2189 0x0400>;
-						dma-coherent;
-					};
-
 					compute-cb@11 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <11>;
@@ -8000,14 +7992,6 @@ compute-cb@8 {
 						dma-coherent;
 					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x2949 0x04a0>,
-							 <&apps_smmu 0x2989 0x0400>;
-						dma-coherent;
-					};
-
 					compute-cb@10 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <10>;
arch/arm64/boot/dts/qcom/monaco.dtsi +0 -7
index cfe39f923224..e73a735f2f13 100644
@@ -7822,13 +7822,6 @@ compute-cb@8 {
 						dma-coherent;
 					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x19c9 0x0400>;
-						dma-coherent;
-					};
-
 					compute-cb@11 {
 						compatible = "qcom,fastrpc-compute-cb";
 						reg = <0xb>;
#4 lore raw
Quoted 4 lines · Ekansh Gupta
Quoted 3 lines · Abhinav Parihar

Context bank 9 is reserved for secure use cases and must not be exposed as a FastRPC compute context bank for non-secure offloading.

Quoted 8 lines
Quoted 6 lines

Remove the compute-cb@9 nodes from the Lemans and Monaco device trees to prevent clients from selecting a secure context bank for normal FastRPC workloads.

Secure use case support is not currently implemented upstream.

can you add Fixes: tag as well?> Signed-off-by: Abhinav Parihar <[email protected]>

Ack

Quoted 5 lines
Quoted 3 lines
---
  arch/arm64/boot/dts/qcom/lemans.dtsi | 16 ----------------
  arch/arm64/boot/dts/qcom/monaco.dtsi |  7 -------

separate the patch both different platforms, also please include other applicable platforms in your next spin> 2 files changed, 23 deletions(-)

Ack

Quoted 52 lines
Quoted 52 lines
arch/arm64/boot/dts/qcom/lemans.dtsi +0 -16
index 695eae1b7256..5481dfb73454 100644
@@ -7861,14 +7861,6 @@ compute-cb@8 {
  						dma-coherent;
  					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x2149 0x04a0>,
-							 <&apps_smmu 0x2189 0x0400>;
-						dma-coherent;
-					};
-
  					compute-cb@11 {
  						compatible = "qcom,fastrpc-compute-cb";
  						reg = <11>;
@@ -8000,14 +7992,6 @@ compute-cb@8 {
  						dma-coherent;
  					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x2949 0x04a0>,
-							 <&apps_smmu 0x2989 0x0400>;
-						dma-coherent;
-					};
-
  					compute-cb@10 {
  						compatible = "qcom,fastrpc-compute-cb";
  						reg = <10>;
arch/arm64/boot/dts/qcom/monaco.dtsi +0 -7
index cfe39f923224..e73a735f2f13 100644
@@ -7822,13 +7822,6 @@ compute-cb@8 {
  						dma-coherent;
  					};
 
-					compute-cb@9 {
-						compatible = "qcom,fastrpc-compute-cb";
-						reg = <9>;
-						iommus = <&apps_smmu 0x19c9 0x0400>;
-						dma-coherent;
-					};
-
  					compute-cb@11 {
  						compatible = "qcom,fastrpc-compute-cb";
  						reg = <0xb>;