Skip to contentSkip to conversation

arm64: dts: qcom: sdm845: Limit ipa iommu streams

PATCH Applied Bjorn Andersson 3 participants 4 messages Nov 23, 2020 – Nov 24, 2020

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

PATCH 1/1 arm64: dts: qcom: sdm845: Limit ipa iommu streams

The Android and Windows firmware does not accept the use of 3 as a mask to cover the IPA streams. But with 0x721 being related to WiFi and 0x723 being unsed the mapping can be reduced to just cover 0x720 and 0x722, which is accepted.

Fixes e9e89c45bfeb ("arm64: dts: sdm845: add IPA iommus property")
---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -1
index 0da27b065761..a6147bd54cdf 100644
@@ -2136,7 +2136,8 @@ ufs_mem_phy_lanes: lanes@1d87400 {
 		ipa: ipa@1e40000 {
 			compatible = "qcom,sdm845-ipa";
 
-			iommus = <&apps_smmu 0x720 0x3>;
+			iommus = <&apps_smmu 0x720 0x0>,
+				 <&apps_smmu 0x722 0x0>;
 			reg = <0 0x1e40000 0 0x7000>,
 			      <0 0x1e47000 0 0x2000>,
 			      <0 0x1e04000 0 0x2c000>;
Signature · 1 line
2.29.2
Tested-by Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Bjorn Andersson

The Android and Windows firmware does not accept the use of 3 as a mask to cover the IPA streams. But with 0x721 being related to WiFi and 0x723 being unsed the mapping can be reduced to just cover 0x720 and 0x722, which is accepted.

Do you want to update sc7180.dtsi too?

I tried your change on my SDM845 machine and observed no
problem. I tried the comparable change in "sc7180.dtsi"
(using 440 and 442) and that seemed to work as before also.

If you think that's sufficient, you can add:

Otherwise:

Quoted 21 lines
Fixes e9e89c45bfeb ("arm64: dts: sdm845: add IPA iommus property")
---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -1
index 0da27b065761..a6147bd54cdf 100644
@@ -2136,7 +2136,8 @@ ufs_mem_phy_lanes: lanes@1d87400 {
  		ipa: ipa@1e40000 {
  			compatible = "qcom,sdm845-ipa";
 
-			iommus = <&apps_smmu 0x720 0x3>;
+			iommus = <&apps_smmu 0x720 0x0>,
+				 <&apps_smmu 0x722 0x0>;
  			reg = <0 0x1e40000 0 0x7000>,
  			      <0 0x1e47000 0 0x2000>,
  			      <0 0x1e04000 0 0x2c000>;
#2 lore raw
Quoted 8 lines · Alex Elder
Quoted 4 lines · Bjorn Andersson

The Android and Windows firmware does not accept the use of 3 as a mask to cover the IPA streams. But with 0x721 being related to WiFi and 0x723 being unsed the mapping can be reduced to just cover 0x720 and 0x722, which is accepted.

Do you want to update sc7180.dtsi too?

We probably want that too, but currently we don't have any sc7180 devices that shows this problem...

Quoted 4 lines

I tried your change on my SDM845 machine and observed no
problem. I tried the comparable change in "sc7180.dtsi"
(using 440 and 442) and that seemed to work as before also.

Quoted 8 lines

If you think that's sufficient, you can add:

Otherwise:

Thank you,
Bjorn

Quoted 22 lines
Quoted 21 lines
Fixes e9e89c45bfeb ("arm64: dts: sdm845: add IPA iommus property")
---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -1
index 0da27b065761..a6147bd54cdf 100644
@@ -2136,7 +2136,8 @@ ufs_mem_phy_lanes: lanes@1d87400 {
  		ipa: ipa@1e40000 {
  			compatible = "qcom,sdm845-ipa";
-			iommus = <&apps_smmu 0x720 0x3>;
+			iommus = <&apps_smmu 0x720 0x0>,
+				 <&apps_smmu 0x722 0x0>;
  			reg = <0 0x1e40000 0 0x7000>,
  			      <0 0x1e47000 0 0x2000>,
  			      <0 0x1e04000 0 0x2c000>;
 
#3 lore raw
In reply to Bjorn Andersson
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 9 lines · On Sun, 22 Nov 2020 23:23:05 -0600 you wrote:

The Android and Windows firmware does not accept the use of 3 as a mask to cover the IPA streams. But with 0x721 being related to WiFi and 0x723 being unsed the mapping can be reduced to just cover 0x720 and 0x722, which is accepted.

Fixes e9e89c45bfeb ("arm64: dts: sdm845: add IPA iommus property")

[...]

Here is the summary with links:
- arm64: dts: qcom: sdm845: Limit ipa iommu streams

    https://git.kernel.org/qcom/c/95e6f8467c83

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html