public inbox for linux-mediatek@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fixes for hang on MT8195-Tomato during mediatek-cpufreq-hw init
@ 2024-01-10 14:23 Nícolas F. R. A. Prado
  2024-01-10 14:23 ` [PATCH v2 1/2] arm64: dts: mediatek: cherry: Describe CPU supplies Nícolas F. R. A. Prado
  2024-01-10 14:23 ` [PATCH v2 2/2] cpufreq: mediatek-hw: Wait for CPU supplies before probing Nícolas F. R. A. Prado
  0 siblings, 2 replies; 10+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-01-10 14:23 UTC (permalink / raw)
  To: Viresh Kumar, Rafael J . Wysocki, AngeloGioacchino Del Regno,
	Matthias Brugger
  Cc: kernel, Nícolas F. R. A. Prado, Conor Dooley, Hector.Yuan,
	Krzysztof Kozlowski, Liam Girdwood, Mark Brown, Rob Herring,
	devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	linux-pm


These two patches fix an issue observed on MT8195-Tomato where if the
mediatek-cpufreq-hw driver enabled the hardware (by writing to
REG_FREQ_ENABLE) before the SPMI controller driver (spmi-mtk-pmif),
behind which lies the big CPU supply, probed the platform would hang
shortly after with "rcu: INFO: rcu_preempt detected stalls on
CPUs/tasks" being printed in the log.

Changes in v2:
- Moved supply phandles to CPU nodes in DT
- Added fixes tags
- Added patch to verify CPU supplies are available before proceeding in
  the mediatek-cpufreq-hw driver

Nícolas F. R. A. Prado (2):
  arm64: dts: mediatek: cherry: Describe CPU supplies
  cpufreq: mediatek-hw: Wait for CPU supplies before probing

 .../boot/dts/mediatek/mt8195-cherry.dtsi      | 32 +++++++++++++++++++
 drivers/cpufreq/mediatek-cpufreq-hw.c         | 19 ++++++++++-
 2 files changed, 50 insertions(+), 1 deletion(-)

-- 
2.43.0



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

end of thread, other threads:[~2024-03-01 14:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10 14:23 [PATCH v2 0/2] Fixes for hang on MT8195-Tomato during mediatek-cpufreq-hw init Nícolas F. R. A. Prado
2024-01-10 14:23 ` [PATCH v2 1/2] arm64: dts: mediatek: cherry: Describe CPU supplies Nícolas F. R. A. Prado
2024-01-10 14:32   ` AngeloGioacchino Del Regno
2024-02-29 20:23     ` Nícolas F. R. A. Prado
2024-03-01  8:52       ` AngeloGioacchino Del Regno
2024-03-01 14:29   ` Nícolas F. R. A. Prado
2024-01-10 14:23 ` [PATCH v2 2/2] cpufreq: mediatek-hw: Wait for CPU supplies before probing Nícolas F. R. A. Prado
2024-01-10 14:31   ` AngeloGioacchino Del Regno
2024-01-22  8:38   ` Matthias Brugger
2024-01-23  6:09   ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox