Re: [PATCH v3 4/4] cpufreq: mediatek-hw: Add support for MT8196

From: AngeloGioacchino Del Regno
Date: Thu Jul 17 2025 - 06:28:13 EST


Il 16/07/25 19:51, Nicolas Frattaroli ha scritto:
The MT8196 SoC uses DVFS to set a desired target frequency for each CPU
core. It also uses slightly different register offsets.

Add support for it, which necessitates reworking how the mmio regs are
acquired, as mt8196 has the fdvfs register before the performance domain
registers.

I've verified with both `sysbench cpu run` and `head -c 10G \
/dev/urandom | pigz -p 8 -c - | pv -ba > /dev/null` that we don't just
get a higher reported clock frequency, but that the observed performance
also increases, by a factor of 2.64 in an 8 thread sysbench test.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@xxxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogiaocchino.delregno@xxxxxxxxxxxxx>