Skip to contentSkip to conversation

dts: arm64: imx8mq: Enable gpu passive throttling

PATCH In review Guido Günther 4 participants 10 messages Sep 12, 2019 – Oct 18, 2019

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

v2 cover dts: arm64: imx8mq: Enable gpu passive throttling

Temperature and hysteresis were picked after the CPU.

Changes from v1:
- Update dt bindings
- Fix broken phandle

Guido Günther (2):
dts: arm64: imx8mq: Enable gpu passive throttling
dt-bindings: etnaviv: Add #cooling-cells

 .../bindings/display/etnaviv/etnaviv-drm.txt      |  1 +
 arch/arm64/boot/dts/freescale/imx8mq.dtsi         | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
Signature · 1 line
2.23.0.rc1
#1 lore raw

PATCH v2 1/2 dts: arm64: imx8mq: Enable gpu passive throttling

Temperature and hysteresis were picked after the CPU.

---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +15 -0
index 4fdd60f2c51e..5023a0e5068d 100644
@@ -235,12 +235,26 @@
 			thermal-sensors = <&tmu 1>;
 
 			trips {
+				gpu_alert: gpu-alert {
+					temperature = <80000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+
 				gpu-crit {
 					temperature = <90000>;
 					hysteresis = <2000>;
 					type = "critical";
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&gpu_alert>;
+					cooling-device =
+						<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 
 		vpu-thermal {
@@ -912,6 +926,7 @@
 			         <&clk IMX8MQ_CLK_GPU_AXI>,
 			         <&clk IMX8MQ_CLK_GPU_AHB>;
 			clock-names = "core", "shader", "bus", "reg";
+			#cooling-cells = <2>;
 			assigned-clocks = <&clk IMX8MQ_CLK_GPU_CORE_SRC>,
 			                  <&clk IMX8MQ_CLK_GPU_SHADER_SRC>,
 			                  <&clk IMX8MQ_CLK_GPU_AXI>,
Signature · 1 line
2.23.0.rc1
Reviewed-by on v2 1/2
#2 lore raw
Quoted 3 lines · Guido Günther

Temperature and hysteresis were picked after the CPU.

Quoted 43 lines
---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +15 -0
index 4fdd60f2c51e..5023a0e5068d 100644
@@ -235,12 +235,26 @@
 			thermal-sensors = <&tmu 1>;
 
 			trips {
+				gpu_alert: gpu-alert {
+					temperature = <80000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+
 				gpu-crit {
 					temperature = <90000>;
 					hysteresis = <2000>;
 					type = "critical";
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&gpu_alert>;
+					cooling-device =
+						<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 
 		vpu-thermal {
@@ -912,6 +926,7 @@
 			         <&clk IMX8MQ_CLK_GPU_AXI>,
 			         <&clk IMX8MQ_CLK_GPU_AHB>;
 			clock-names = "core", "shader", "bus", "reg";
+			#cooling-cells = <2>;
 			assigned-clocks = <&clk IMX8MQ_CLK_GPU_CORE_SRC>,
 			                  <&clk IMX8MQ_CLK_GPU_SHADER_SRC>,
 			                  <&clk IMX8MQ_CLK_GPU_AXI>,
#3 lore raw
In reply to Guido Günther
Quoted 3 lines · Guido Günther

Temperature and hysteresis were picked after the CPU.

The patch prefix should be 'arm64: dts: ...'

I fixed it up and applied the patch.

Shawn

Quoted 46 lines
---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +15 -0
index 4fdd60f2c51e..5023a0e5068d 100644
@@ -235,12 +235,26 @@
 			thermal-sensors = <&tmu 1>;
 
 			trips {
+				gpu_alert: gpu-alert {
+					temperature = <80000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+
 				gpu-crit {
 					temperature = <90000>;
 					hysteresis = <2000>;
 					type = "critical";
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&gpu_alert>;
+					cooling-device =
+						<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 
 		vpu-thermal {
@@ -912,6 +926,7 @@
 			         <&clk IMX8MQ_CLK_GPU_AXI>,
 			         <&clk IMX8MQ_CLK_GPU_AHB>;
 			clock-names = "core", "shader", "bus", "reg";
+			#cooling-cells = <2>;
 			assigned-clocks = <&clk IMX8MQ_CLK_GPU_CORE_SRC>,
 			                  <&clk IMX8MQ_CLK_GPU_SHADER_SRC>,
 			                  <&clk IMX8MQ_CLK_GPU_AXI>,
Signature · 1 line
2.23.0.rc1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

PATCH v2 2/2 dt-bindings: etnaviv: Add #cooling-cells

In reply to Guido Günther

Add #cooling-cells for when the gpu acts as a cooling device.

---
 .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt          | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +1 -0
index 8def11b16a24..640592e8ab2e 100644
@@ -21,6 +21,7 @@ Required properties:
 Optional properties:
 - power-domains: a power domain consumer specifier according to
   Documentation/devicetree/bindings/power/power_domain.txt
+- #cooling-cells: : If used as a cooling device, must be <2>
 
 example:
 
Signature · 1 line
2.23.0.rc1
Reviewed-by on v2 2/2
#5 lore raw

Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells

Quoted 3 lines · Guido Günther

Add #cooling-cells for when the gpu acts as a cooling device.

Quoted 16 lines
---
 .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt          | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +1 -0
index 8def11b16a24..640592e8ab2e 100644
@@ -21,6 +21,7 @@ Required properties:
 Optional properties:
 - power-domains: a power domain consumer specifier according to
   Documentation/devicetree/bindings/power/power_domain.txt
+- #cooling-cells: : If used as a cooling device, must be <2>
 
 example:
 
#6 lore raw

Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells

Quoted 6 lines · Lucas Stach
Quoted 3 lines · Guido Günther

Add #cooling-cells for when the gpu acts as a cooling device.

Lucas,

I assume you will pick it up.

Shawn

Quoted 15 lines
Quoted 15 lines
---
 .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt          | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +1 -0
index 8def11b16a24..640592e8ab2e 100644
@@ -21,6 +21,7 @@ Required properties:
 Optional properties:
 - power-domains: a power domain consumer specifier according to
   Documentation/devicetree/bindings/power/power_domain.txt
+- #cooling-cells: : If used as a cooling device, must be <2>
 
Quoted 3 lines

Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt Required properties: · line 27

Quoted 2 lines
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +0 -0
 example:
 

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer Acked-by on v2 2/2
#7 lore raw

Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells

In reply to Guido Günther
Quoted 7 lines · On Wed, 11 Sep 2019 19:40:36 -0700, =?UTF-8?q?Guido=20G=C3=BCnther?= wrote:

Add #cooling-cells for when the gpu acts as a cooling device.

---
 .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt          | 1 +
 1 file changed, 1 insertion(+)
#8 lore raw

Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells

In reply to Guido Günther

Hi,

Quoted 12 lines · Guido Günther

Add #cooling-cells for when the gpu acts as a cooling device.

---
 .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt          | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +0 -0
index 8def11b16a24..640592e8ab2e 100644

Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt Required properties: · line 24

Quoted 4 lines
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +1 -0
@@ -21,6 +21,7 @@ Required properties:
 Optional properties:
 - power-domains: a power domain consumer specifier according to
   Documentation/devicetree/bindings/power/power_domain.txt
+- #cooling-cells: : If used as a cooling device, must be <2>

The other patch of the series made it into linux-next already but this documentation fixup didn't. Anything i can do to get this applied as well so documentation stays in sync?
Cheers,
-- Guido

Quoted 11 lines
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +0 -0
 example:
 
Signature · 7 lines
2.23.0.rc1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells

Quoted 9 lines · Guido Günther

Hi,

Quoted 7 lines · Guido Günther

Add #cooling-cells for when the gpu acts as a cooling device.

---
 .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt          | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt Required properties: · line 24

Quoted 9 lines
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +1 -0
index 8def11b16a24..640592e8ab2e 100644
@@ -21,6 +21,7 @@ Required properties:
 Optional properties:
 - power-domains: a power domain consumer specifier according to
   Documentation/devicetree/bindings/power/power_domain.txt
+- #cooling-cells: : If used as a cooling device, must be <2>

The other patch of the series made it into linux-next already but this documentation fixup didn't. Anything i can do to get this applied as well so documentation stays in sync?

I've applied and pushed this to my etnaviv/next branch just now, so it should show up in linux-next pretty soon.

Regards,
Lucas

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel