]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: sunxi-ng: h616: Reparent GPU clock during frequency changes
authorPhilippe Simons <simons.philippe@gmail.com>
Thu, 20 Feb 2025 11:38:08 +0000 (12:38 +0100)
committerChen-Yu Tsai <wens@csie.org>
Sun, 23 Feb 2025 15:56:08 +0000 (23:56 +0800)
commiteb963d7948ce6571939c6875424b557b25f16610
tree8eb1e8bb1aa1003ffce0eb9790baf27c4a29b24e
parent730feeaea72f1260548e57d35dd49603cd86a7e4
clk: sunxi-ng: h616: Reparent GPU clock during frequency changes

The H616 manual does not state that the GPU PLL supports
dynamic frequency configuration, so we must take extra care when changing
the frequency. Currently any attempt to do device DVFS on the GPU lead
to panfrost various ooops, and GPU hangs.

The manual describes the algorithm for changing the PLL
frequency, which the CPU PLL notifier code already support, so we reuse
that to reparent the GPU clock to GPU1 clock during frequency
changes.

Signed-off-by: Philippe Simons <simons.philippe@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250220113808.1122414-2-simons.philippe@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun50i-h616.c