[v2,0/2] clk: sunxi-ng: h616: PLL output gate and GPU notifier order

Message ID 20261116-h616-pll-output-gate-v2-0-a418026ffae6@gmail.com (mailing list archive)
Headers
Series clk: sunxi-ng: h616: PLL output gate and GPU notifier order |

Message

Arun Iyengar via B4 Relay Nov. 16, 2026, 8:45 a.m. UTC
Patch 1 gates the H616 PLLs with their output enable bit instead of
powering them down. Patch 2 registers the GPU PLL notifier before the
mux notifier, as Ilya Titov's 0ec5e7572ddc did for the CPU.

No Cc: stable: the patch 1 crash needs out-of-tree H616 HDMI, and the
old GPU notifier order never failed here.

Tested on an Orange Pi Zero2 (7.3.4 with HDMI patches): v1 survived the
failing mode set 40 times. v2 was not re-run against the crash (our HDMI
no longer leaves pll-video0); it is a regression check: expected PLL
bits, 1434 random CPU and GPU OPP changes under load. Idle power not
measured.

Developed with Claude (Anthropic); I reviewed it.

---
Changes in v2:
- Patch 1: power up the PLLs in the existing loop and stop forcing bit
  27 there, instead of a second loop (Chen-Yu Tsai, Sashiko)
- New patch 2 (Sashiko)
- Rebased on sunxi/clk-for-7.5
- Link to v1: https://patch.msgid.link/20261115-h616-pll-output-gate-v1-1-4cb3fc4d6c48@gmail.com

---
Arun Iyengar (2):
      clk: sunxi-ng: h616: Gate the PLLs with their output enable bit
      clk: sunxi-ng: h616: Register GPU PLL notifier before mux notifier

 drivers/clk/sunxi-ng/ccu-sun50i-h616.c | 37 ++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 17 deletions(-)
---
base-commit: 63a29fbb4ecdadbaccd2693864616918698e1e58
change-id: 20261114-h616-pll-output-gate-c9d3d4a409e9

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>
  

Comments

Chen-Yu Tsai Nov. 16, 2026, 4:59 p.m. UTC | #1
On Mon, 16 Nov 2026 08:45:06 +0000, Arun Iyengar wrote:
> Patch 1 gates the H616 PLLs with their output enable bit instead of
> powering them down. Patch 2 registers the GPU PLL notifier before the
> mux notifier, as Ilya Titov's 0ec5e7572ddc did for the CPU.
> 
> No Cc: stable: the patch 1 crash needs out-of-tree H616 HDMI, and the
> old GPU notifier order never failed here.
> 
> [...]

Applied to sunxi/clk-for-7.5 in sunxi, thanks!

[1/2] clk: sunxi-ng: h616: Gate the PLLs with their output enable bit
      https://git.kernel.org/sunxi/linux/c/5aae0639bcc6
[2/2] clk: sunxi-ng: h616: Register GPU PLL notifier before mux notifier
      https://git.kernel.org/sunxi/linux/c/3f8438336a3b

Best regards,