dts: arm64: imx8mq: Enable gpu passive throttling
Subsystems (4)
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
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
@@ -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
PATCH v2 2/2 dt-bindings: etnaviv: Add #cooling-cells
In reply to Guido GüntherAdd #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
@@ -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
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.
Signed-off-by Guido Günther <[email protected]>
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@@ -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:
Quoted 3 lines · Guido Günther
Temperature and hysteresis were picked after the CPU.
Signed-off-by Guido Günther <[email protected]>
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@@ -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>,
Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells
In reply to Guido GüntherQuoted 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.
Signed-off-by Guido Günther <[email protected]>--- .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt | 1 + 1 file changed, 1 insertion(+)
Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells
In reply to Lucas StachQuoted 6 lines · Lucas Stach
Quoted 3 lines · Guido Günther
Add #cooling-cells for when the gpu acts as a cooling device.
Signed-off-by Guido Günther <[email protected]>Reviewed-by Lucas Stach <[email protected]>
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@@ -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
-0example:
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · Guido Günther
Temperature and hysteresis were picked after the CPU.
Signed-off-by Guido Günther <[email protected]>
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@@ -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
Re: [PATCH v2 2/2] dt-bindings: etnaviv: Add #cooling-cells
In reply to Guido GüntherHi,
Quoted 12 lines · Guido Günther
Add #cooling-cells for when the gpu acts as a cooling device.
Signed-off-by Guido Günther <[email protected]>--- .../devicetree/bindings/display/etnaviv/etnaviv-drm.txt | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt +0
-0
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
-0example: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
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.
Signed-off-by Guido Günther <[email protected]>--- .../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@@ -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