* [PATCH] arm64: dts: allwinner: a64: Add GPU opp table
@ 2021-09-12 9:50 Jernej Skrabec
2021-09-13 7:18 ` Maxime Ripard
0 siblings, 1 reply; 2+ messages in thread
From: Jernej Skrabec @ 2021-09-12 9:50 UTC (permalink / raw)
To: mripard, wens
Cc: robh+dt, devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
Jernej Skrabec
GPU on A64 currently runs at default frequency, which is 297 MHz. This
is a bit low in some cases and noticeable lag can be observed in GPU
rendered UIs. GPU is capable to run at 432 MHz.
Add GPU OPP table.
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
---
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index 6ddb717f2f98..5ba379078500 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -102,6 +102,22 @@ de: display-engine {
status = "disabled";
};
+ gpu_opp_table: opp-table-gpu {
+ compatible = "operating-points-v2";
+
+ opp-120000000 {
+ opp-hz = /bits/ 64 <120000000>;
+ };
+
+ opp-312000000 {
+ opp-hz = /bits/ 64 <312000000>;
+ };
+
+ opp-432000000 {
+ opp-hz = /bits/ 64 <432000000>;
+ };
+ };
+
osc24M: osc24M_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
@@ -1103,6 +1119,7 @@ mali: gpu@1c40000 {
clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
clock-names = "bus", "core";
resets = <&ccu RST_BUS_GPU>;
+ operating-points-v2 = <&gpu_opp_table>;
};
gic: interrupt-controller@1c81000 {
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: allwinner: a64: Add GPU opp table
2021-09-12 9:50 [PATCH] arm64: dts: allwinner: a64: Add GPU opp table Jernej Skrabec
@ 2021-09-13 7:18 ` Maxime Ripard
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2021-09-13 7:18 UTC (permalink / raw)
To: Jernej Skrabec
Cc: wens, robh+dt, devicetree, linux-arm-kernel, linux-sunxi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 379 bytes --]
On Sun, Sep 12, 2021 at 11:50:32AM +0200, Jernej Skrabec wrote:
> GPU on A64 currently runs at default frequency, which is 297 MHz. This
> is a bit low in some cases and noticeable lag can be observed in GPU
> rendered UIs. GPU is capable to run at 432 MHz.
>
> Add GPU OPP table.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Applied, thanks
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-13 7:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12 9:50 [PATCH] arm64: dts: allwinner: a64: Add GPU opp table Jernej Skrabec
2021-09-13 7:18 ` Maxime Ripard
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).