Skip to contentSkip to conversation

arm64: dts: sdm845: Add sdm845 GPU interconnect

PATCH Superseded Jordan Crouse 2 participants 4 messages Dec 13, 2018 2 messages not in the archive

Subsystems (6)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm64: dts: sdm845: Add sdm845 GPU interconnect

Two quick patches to document and add an interconnect port definition for the sdm845 GPU.

This is based on the base GPU DT changes:
https://patchwork.freedesktop.org/series/39308/

As well as the DT nodes from Georgi:
https://patchwork.kernel.org/patch/10719483/

Jordan Crouse (2):
dt-bindings: drm/msm/a6xx: Document interconnect properties for GPU
arm64: dts: sdm845: Add interconnect for GPU

 Documentation/devicetree/bindings/display/msm/gpu.txt | 6 ++++++
 arch/arm64/boot/dts/qcom/sdm845.dtsi                  | 3 +++
 2 files changed, 9 insertions(+)
Signature · 6 lines
2.18.0

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

A message that is not in the archive (sent off-list or not yet received): 20181213173149.6975-1-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org

#2 lore raw

PATCH 1/2 dt-bindings: drm/msm/a6xx: Document interconnect properties for GPU

Add documentation for the interconnect and interconnect-names bindings for the GPU node as detailed by bindings/interconnect/interconnect.txt.

---
 Documentation/devicetree/bindings/display/msm/gpu.txt | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/display/msm/gpu.txt +6 -0
index 8d9415180c22..be6b5628e052 100644
@@ -19,6 +19,9 @@ Required properties:
   * "mem_iface"
 - iommus: optional phandle to an adreno iommu instance
 - operating-points-v2: optional phandle to the OPP operating points
+- interconnect: optional phandle to a interconnect provider.  See
+  ../interconnect/interconnect.txt for details.
+- interconnect-names: Name string for the interconnects.
 - qcom,gmu: For a6xx and newer targets a phandle to the GMU device that will
   control the power for the GPU
 
@@ -68,6 +71,9 @@ Example a6xx (with GMU):
 
 		operating-points-v2 = <&gpu_opp_table>;
 
+		interconnects = <&qnoc MASTER_GFX3D &qnoc SLAVE_EBI1>;
+		interconnect-names = "gfx-mem";
+
 		qcom,gmu = <&gmu>;
 	};
 };
Signature · 6 lines
2.18.0

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno
#3 lore raw

PATCH 2/2 arm64: dts: sdm845: Add interconnect for GPU

In reply to a message not in the archive

Define an interconnect port for the GPU to set bus capabilities.

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +3 -0
index 0a5ddfc4c59b..9323f211ca40 100644
@@ -1370,6 +1370,9 @@
 
 			operating-points-v2 = <&gpu_opp_table>;
 
+			interconnects = <&qnoc MASTER_GFX3D &qnoc SLAVE_EBI1>;
+			interconnect-names = "gfx-mem";
+
 			qcom,gmu = <&gmu>;
 
 			gpu_opp_table: opp-table {
Signature · 6 lines
2.18.0

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

A message that is not in the archive (sent off-list or not yet received): 20181213173149.6975-3-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org

#5 lore raw

Re: [PATCH 2/2] arm64: dts: sdm845: Add interconnect for GPU

Hi,

Quoted 14 lines · Jordan Crouse

Define an interconnect port for the GPU to set bus capabilities.

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
index 0a5ddfc4c59b..9323f211ca40 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi line 1374

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
@@ -1370,6 +1370,9 @@
 
                        operating-points-v2 = <&gpu_opp_table>;
 
+                       interconnects = <&qnoc MASTER_GFX3D &qnoc SLAVE_EBI1>;
+                       interconnect-names = "gfx-mem";

Thanks for sending this patch. Unfortunately the interconnect node is not called "qnoc" anymore. It's called "&rsc_hlos" in v12 of Georgi's patchset:

https://lkml.kernel.org/r/[email protected]

Can you repost with that fix (the bindings patch should be updated too)? Other than that feel feel free to add my Reviewed-by to this patch.

Thanks!

-Doug
_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno