devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus
@ 2022-12-13  0:26 Konrad Dybcio
  2022-12-13  0:26 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Enable split pagetables for Adreno SMMU Konrad Dybcio
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Konrad Dybcio @ 2022-12-13  0:26 UTC (permalink / raw)
  To: linux-arm-msm, andersson, agross, krzysztof.kozlowski
  Cc: marijn.suijten, Konrad Dybcio, Will Deacon, Robin Murphy,
	Joerg Roedel, Rob Herring, Krzysztof Kozlowski, linux-arm-kernel,
	iommu, devicetree, linux-kernel

From: Marijn Suijten <marijn.suijten@somainline.org>

sm8150 has an smmu-500 specifically for Adreno, where the GPU is allowed
to switch pagetables.  Document the allowed 3-compatibles for this,
similar to sc7280 and sm8250.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
index 895ec8418465..b97181d4a399 100644
--- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
+++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
@@ -84,6 +84,7 @@ properties:
         items:
           - enum:
               - qcom,sc7280-smmu-500
+              - qcom,sm8150-smmu-500
               - qcom,sm8250-smmu-500
           - const: qcom,adreno-smmu
           - const: arm,mmu-500
-- 
2.39.0


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

* [PATCH 2/2] arm64: dts: qcom: sm8150: Enable split pagetables for Adreno SMMU
  2022-12-13  0:26 [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Konrad Dybcio
@ 2022-12-13  0:26 ` Konrad Dybcio
  2022-12-13 13:15 ` [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2022-12-13  0:26 UTC (permalink / raw)
  To: linux-arm-msm, andersson, agross, krzysztof.kozlowski
  Cc: marijn.suijten, Konrad Dybcio, Will Deacon, Robin Murphy,
	Joerg Roedel, Rob Herring, Krzysztof Kozlowski, linux-arm-kernel,
	iommu, devicetree, linux-kernel

From: Marijn Suijten <marijn.suijten@somainline.org>

Allow the Adreno GPU to access split pagetables specifically on the
dedicated Adreno SMMU via the qcom,adreno-smmu compatible.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
index 3f940cc3f32b..83b4450fb3eb 100644
--- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
@@ -2253,7 +2253,7 @@ gpucc: clock-controller@2c90000 {
 		};
 
 		adreno_smmu: iommu@2ca0000 {
-			compatible = "qcom,sm8150-smmu-500", "arm,mmu-500";
+			compatible = "qcom,sm8150-smmu-500", "qcom,adreno-smmu", "arm,mmu-500";
 			reg = <0 0x02ca0000 0 0x10000>;
 			#iommu-cells = <2>;
 			#global-interrupts = <1>;
-- 
2.39.0


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

* Re: [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus
  2022-12-13  0:26 [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Konrad Dybcio
  2022-12-13  0:26 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Enable split pagetables for Adreno SMMU Konrad Dybcio
@ 2022-12-13 13:15 ` Krzysztof Kozlowski
  2022-12-28 18:13 ` (subset) " Bjorn Andersson
  2023-01-19 19:08 ` Will Deacon
  3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-13 13:15 UTC (permalink / raw)
  To: Konrad Dybcio, linux-arm-msm, andersson, agross
  Cc: marijn.suijten, Will Deacon, Robin Murphy, Joerg Roedel,
	Rob Herring, Krzysztof Kozlowski, linux-arm-kernel, iommu,
	devicetree, linux-kernel

On 13/12/2022 01:26, Konrad Dybcio wrote:
> From: Marijn Suijten <marijn.suijten@somainline.org>
> 
> sm8150 has an smmu-500 specifically for Adreno, where the GPU is allowed
> to switch pagetables.  Document the allowed 3-compatibles for this,
> similar to sc7280 and sm8250.


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: (subset) [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus
  2022-12-13  0:26 [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Konrad Dybcio
  2022-12-13  0:26 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Enable split pagetables for Adreno SMMU Konrad Dybcio
  2022-12-13 13:15 ` [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Krzysztof Kozlowski
@ 2022-12-28 18:13 ` Bjorn Andersson
  2023-01-19 19:08 ` Will Deacon
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2022-12-28 18:13 UTC (permalink / raw)
  To: linux-arm-msm, konrad.dybcio, agross, krzysztof.kozlowski
  Cc: robin.murphy, joro, linux-arm-kernel, robh+dt, will,
	krzysztof.kozlowski+dt, linux-kernel, devicetree, marijn.suijten,
	iommu

On Tue, 13 Dec 2022 01:26:25 +0100, Konrad Dybcio wrote:
> From: Marijn Suijten <marijn.suijten@somainline.org>
> 
> sm8150 has an smmu-500 specifically for Adreno, where the GPU is allowed
> to switch pagetables.  Document the allowed 3-compatibles for this,
> similar to sc7280 and sm8250.
> 
> 
> [...]

Applied, thanks!

[2/2] arm64: dts: qcom: sm8150: Enable split pagetables for Adreno SMMU
      commit: c34bef62a0096d1db309db8ffd165a1a6f01f227

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

* Re: [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus
  2022-12-13  0:26 [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Konrad Dybcio
                   ` (2 preceding siblings ...)
  2022-12-28 18:13 ` (subset) " Bjorn Andersson
@ 2023-01-19 19:08 ` Will Deacon
  3 siblings, 0 replies; 5+ messages in thread
From: Will Deacon @ 2023-01-19 19:08 UTC (permalink / raw)
  To: andersson, krzysztof.kozlowski, linux-arm-msm, agross,
	Konrad Dybcio
  Cc: catalin.marinas, kernel-team, Will Deacon, linux-arm-kernel,
	linux-kernel, marijn.suijten, Rob Herring, Robin Murphy,
	Krzysztof Kozlowski, devicetree, iommu, Joerg Roedel

On Tue, 13 Dec 2022 01:26:25 +0100, Konrad Dybcio wrote:
> From: Marijn Suijten <marijn.suijten@somainline.org>
> 
> sm8150 has an smmu-500 specifically for Adreno, where the GPU is allowed
> to switch pagetables.  Document the allowed 3-compatibles for this,
> similar to sc7280 and sm8250.
> 
> 
> [...]

Applied to will (for-joerg/arm-smmu/bindings), thanks!

[1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus
      https://git.kernel.org/will/c/58499c0fd22c

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

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

end of thread, other threads:[~2023-01-20  4:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-13  0:26 [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Konrad Dybcio
2022-12-13  0:26 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Enable split pagetables for Adreno SMMU Konrad Dybcio
2022-12-13 13:15 ` [PATCH 1/2] dt-bindings: arm-smmu: Add sm8150-smmu-500 to the list of Adreno smmus Krzysztof Kozlowski
2022-12-28 18:13 ` (subset) " Bjorn Andersson
2023-01-19 19:08 ` Will Deacon

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).