[PATCH v2 0/2] Fixes for hang on MT8195-Tomato during mediatek-cpufreq-hw init
From: Nícolas F. R. A. Prado
Date: Wed Jan 10 2024 - 09:25:30 EST
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