All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] clk: mediatek: mt8183: Fix GPU/MFG clock rate changing
@ 2022-05-23  8:59 ` Chen-Yu Tsai
  0 siblings, 0 replies; 30+ messages in thread
From: Chen-Yu Tsai @ 2022-05-23  8:59 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Matthias Brugger
  Cc: Chen-Yu Tsai, Rob Herring, Krzysztof Kozlowski, Chun-Jie Chen,
	Miles Chen, AngeloGioacchino Del Regno, linux-clk, devicetree,
	linux-arm-kernel, linux-mediatek, linux-kernel

Hi everyone,

This is v2 of my MT8183 GPU clock rate fix series.

Changes since v1;
- Moved clk notifier registration into separate function
- Fixed comment style

This series fixes the clock rate changing for the GPU. This work came
about as part of adding DVFS support for the Mali GPU on MT8183, to
support efforts in testing the SVS patches [1] on MT8183.

This series fixes a couple things:

1. Fix the clock reference for the GPU. The device tree incorrectly
   references the top level PLL, when in fact it is fed from the clock
   gate in the MFGCFG block. Fixed in patch 1.

2. Clock rate requests on the MFG clock gate aren't propagated up the
   tree. Fixed in patch 2 by adding CLK_SET_RATE_PARENT.

3. MFG clock needs to be temporarily muxed away from MFG PLL during PLL
   reconfiguration, to avoid glitches. This is done using a notifier.
   The framework is added in patch 3, and added to the driver in patch 4.

This is based on my "clk: mediatek: Move to struct clk_hw provider APIs"
series version 3 [2], which was just merged.

Please have a look.

The GPU DVFS stuff will be sent separately, as that part is a bit more
contentious, and the changes span more subsystems.


Regards
ChenYu

[1] https://lore.kernel.org/linux-mediatek/20220516004311.18358-1-roger.lu@mediatek.com/
[2] https://lore.kernel.org/linux-mediatek/20220519071610.423372-1-wenst@chromium.org/

Chen-Yu Tsai (4):
  arm64: dts: mt8183: Fix Mali GPU clock
  clk: mediatek: mt8183: mfgcfg: Propagate rate changes to parent
  clk: mediatek: mux: add clk notifier functions
  clk: mediatek: mt8183: Add clk mux notifier for MFG mux

 arch/arm64/boot/dts/mediatek/mt8183.dtsi |  2 +-
 drivers/clk/mediatek/clk-mt8183-mfgcfg.c |  6 ++--
 drivers/clk/mediatek/clk-mt8183.c        | 28 ++++++++++++++++
 drivers/clk/mediatek/clk-mux.c           | 42 ++++++++++++++++++++++++
 drivers/clk/mediatek/clk-mux.h           | 15 +++++++++
 5 files changed, 89 insertions(+), 4 deletions(-)

-- 
2.36.1.124.g0e6072fb45-goog


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2022-05-23 11:18 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  8:59 [PATCH v2 0/4] clk: mediatek: mt8183: Fix GPU/MFG clock rate changing Chen-Yu Tsai
2022-05-23  8:59 ` Chen-Yu Tsai
2022-05-23  8:59 ` Chen-Yu Tsai
2022-05-23  8:59 ` [PATCH v2 1/4] arm64: dts: mt8183: Fix Mali GPU clock Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23 10:04   ` AngeloGioacchino Del Regno
2022-05-23 10:04     ` AngeloGioacchino Del Regno
2022-05-23 10:04     ` AngeloGioacchino Del Regno
2022-05-23  8:59 ` [PATCH v2 2/4] clk: mediatek: mt8183: mfgcfg: Propagate rate changes to parent Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23 10:04   ` AngeloGioacchino Del Regno
2022-05-23 10:04     ` AngeloGioacchino Del Regno
2022-05-23 10:04     ` AngeloGioacchino Del Regno
2022-05-23  8:59 ` [PATCH v2 3/4] clk: mediatek: mux: add clk notifier functions Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23 10:04   ` AngeloGioacchino Del Regno
2022-05-23 10:04     ` AngeloGioacchino Del Regno
2022-05-23 10:04     ` AngeloGioacchino Del Regno
2022-05-23 10:20     ` Chen-Yu Tsai
2022-05-23 10:20       ` Chen-Yu Tsai
2022-05-23 10:20       ` Chen-Yu Tsai
2022-05-23  8:59 ` [PATCH v2 4/4] clk: mediatek: mt8183: Add clk mux notifier for MFG mux Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23  8:59   ` Chen-Yu Tsai
2022-05-23 10:05   ` AngeloGioacchino Del Regno
2022-05-23 10:05     ` AngeloGioacchino Del Regno
2022-05-23 10:05     ` AngeloGioacchino Del Regno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.