linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: fixes
@ 2020-11-26  1:54 Alex Elder
  2020-11-26  1:54 ` [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams Alex Elder
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alex Elder @ 2020-11-26  1:54 UTC (permalink / raw)
  To: bjorn.andersson, agross, robh+dt; +Cc: linux-arm-msm, devicetree, linux-kernel

The first patch in this series changes the IOMMU specification for
the IPA node in "sc7180.dtsi" to identify two streams distinctly,
rather than specifying them with a mask.  This was inspired by
something Bjorn did recently for IPA in "sdm845.dtsi".

The second and third just replace 0 with GIC_SPI in two IPA
interrupt specifications.

(I'm sorry if I should have separated these.)

					-Alex

Alex Elder (3):
  arm64: dts: qcom: sc7180: limit IPA iommu streams
  arm64: dts: qcom: sc7180: use GIC_SPI for IPA interrupts
  arm64: dts: qcom: sdm845: use GIC_SPI for IPA interrupts

 arch/arm64/boot/dts/qcom/sc7180.dtsi | 7 ++++---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams
  2020-11-26  1:54 [PATCH 0/3] arm64: dts: fixes Alex Elder
@ 2020-11-26  1:54 ` Alex Elder
  2020-11-26 17:47   ` Bjorn Andersson
  2020-11-26  1:54 ` [PATCH 2/3] arm64: dts: qcom: sc7180: use GIC_SPI for IPA interrupts Alex Elder
  2020-11-26  1:54 ` [PATCH 3/3] arm64: dts: qcom: sdm845: " Alex Elder
  2 siblings, 1 reply; 5+ messages in thread
From: Alex Elder @ 2020-11-26  1:54 UTC (permalink / raw)
  To: bjorn.andersson, agross, robh+dt; +Cc: linux-arm-msm, devicetree, linux-kernel

Recently we learned that Android and Windows firmware don't seem to
like using 3 as an iommu mask value for IPA.  A simple fix was to
specify exactly the streams needed explicitly, rather than implying
a range with the mask.  Make the same change for the SC7180 platform.

See also:
  https://lore.kernel.org/linux-arm-msm/20201123052305.157686-1-bjorn.andersson@linaro.org/

Fixes: d82fade846aa8 ("arm64: dts: qcom: sc7180: add IPA information")
Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
index c0efb101b0d61..eb66aadf360d7 100644
--- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
@@ -1396,7 +1396,8 @@
 		ipa: ipa@1e40000 {
 			compatible = "qcom,sc7180-ipa";
 
-			iommus = <&apps_smmu 0x440 0x3>;
+			iommus = <&apps_smmu 0x440 0x0>,
+				 <&apps_smmu 0x442 0x0>;
 			reg = <0 0x1e40000 0 0x7000>,
 			      <0 0x1e47000 0 0x2000>,
 			      <0 0x1e04000 0 0x2c000>;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] arm64: dts: qcom: sc7180: use GIC_SPI for IPA interrupts
  2020-11-26  1:54 [PATCH 0/3] arm64: dts: fixes Alex Elder
  2020-11-26  1:54 ` [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams Alex Elder
@ 2020-11-26  1:54 ` Alex Elder
  2020-11-26  1:54 ` [PATCH 3/3] arm64: dts: qcom: sdm845: " Alex Elder
  2 siblings, 0 replies; 5+ messages in thread
From: Alex Elder @ 2020-11-26  1:54 UTC (permalink / raw)
  To: bjorn.andersson, agross, robh+dt; +Cc: linux-arm-msm, devicetree, linux-kernel

Use GIC_SPI rather than 0 in the specifiers for the two ARM GIC
interrupts used by IPA.

Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
index eb66aadf360d7..fa379bfaa443a 100644
--- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
@@ -1405,8 +1405,8 @@
 				    "ipa-shared",
 				    "gsi";
 
-			interrupts-extended = <&intc 0 311 IRQ_TYPE_EDGE_RISING>,
-					      <&intc 0 432 IRQ_TYPE_LEVEL_HIGH>,
+			interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
+					      <&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>,
 					      <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
 					      <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
 			interrupt-names = "ipa",
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] arm64: dts: qcom: sdm845: use GIC_SPI for IPA interrupts
  2020-11-26  1:54 [PATCH 0/3] arm64: dts: fixes Alex Elder
  2020-11-26  1:54 ` [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams Alex Elder
  2020-11-26  1:54 ` [PATCH 2/3] arm64: dts: qcom: sc7180: use GIC_SPI for IPA interrupts Alex Elder
@ 2020-11-26  1:54 ` Alex Elder
  2 siblings, 0 replies; 5+ messages in thread
From: Alex Elder @ 2020-11-26  1:54 UTC (permalink / raw)
  To: bjorn.andersson, agross, robh+dt; +Cc: linux-arm-msm, devicetree, linux-kernel

Use GIC_SPI rather than 0 in the specifiers for the two ARM GIC
interrupts used by IPA.

Signed-off-by: Alex Elder <elder@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index 957ee80704e74..256a698745ac2 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -2152,8 +2152,8 @@
 				    "ipa-shared",
 				    "gsi";
 
-			interrupts-extended = <&intc 0 311 IRQ_TYPE_EDGE_RISING>,
-					      <&intc 0 432 IRQ_TYPE_LEVEL_HIGH>,
+			interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
+					      <&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>,
 					      <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
 					      <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
 			interrupt-names = "ipa",
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams
  2020-11-26  1:54 ` [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams Alex Elder
@ 2020-11-26 17:47   ` Bjorn Andersson
  0 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2020-11-26 17:47 UTC (permalink / raw)
  To: Alex Elder; +Cc: agross, robh+dt, linux-arm-msm, devicetree, linux-kernel

On Wed 25 Nov 19:54 CST 2020, Alex Elder wrote:

> Recently we learned that Android and Windows firmware don't seem to
> like using 3 as an iommu mask value for IPA.  A simple fix was to
> specify exactly the streams needed explicitly, rather than implying
> a range with the mask.  Make the same change for the SC7180 platform.
> 
> See also:
>   https://lore.kernel.org/linux-arm-msm/20201123052305.157686-1-bjorn.andersson@linaro.org/
> 

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> Fixes: d82fade846aa8 ("arm64: dts: qcom: sc7180: add IPA information")
> Signed-off-by: Alex Elder <elder@linaro.org>
> ---
>  arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
> index c0efb101b0d61..eb66aadf360d7 100644
> --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
> @@ -1396,7 +1396,8 @@
>  		ipa: ipa@1e40000 {
>  			compatible = "qcom,sc7180-ipa";
>  
> -			iommus = <&apps_smmu 0x440 0x3>;
> +			iommus = <&apps_smmu 0x440 0x0>,
> +				 <&apps_smmu 0x442 0x0>;
>  			reg = <0 0x1e40000 0 0x7000>,
>  			      <0 0x1e47000 0 0x2000>,
>  			      <0 0x1e04000 0 0x2c000>;
> -- 
> 2.20.1
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-26 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26  1:54 [PATCH 0/3] arm64: dts: fixes Alex Elder
2020-11-26  1:54 ` [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams Alex Elder
2020-11-26 17:47   ` Bjorn Andersson
2020-11-26  1:54 ` [PATCH 2/3] arm64: dts: qcom: sc7180: use GIC_SPI for IPA interrupts Alex Elder
2020-11-26  1:54 ` [PATCH 3/3] arm64: dts: qcom: sdm845: " Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).