Re: [PATCH] firmware: arm_scmi: Don't mark OPPs as turbo without a sustained frequency

From: Haipeng Lin

Date: Wed Nov 25 2026 - 20:48:47 EST


On 11/25/26 8:04 PM, Dale Whinham wrote:
> On Mon, 23 Nov 2026 at 10:26, Sudeep Holla <sudeep.holla@xxxxxxxxxx> wrote:
[...]
>
>> I worked out something very similar as a solution. Anyways does it work
>> if we also add the check for non-zero dom->sustained_perf_level ?
>
> Haipeng Lin has an X1P machine so hopefully he will be able to confirm
> soon if adding a check for non-zero sustained_perf_level into the
> chain still works.
[...]

Confirmed it works. Tested on Surface Pro 11 (X1P64100) on v7.3.4 tree
with this check

data.turbo = dom->sustained_freq_khz &&
dom->sustained_perf_level &&
freq > dom->sustained_freq_khz * 1000UL;

Firmware reports both values as 0 for the two 3-core domains (not just
the frequency). I took a debug print of PERFORMANCE_DOMAIN_ATTRIBUTES

domain 0: sustained_freq_khz=3417600 sustained_perf_level=12
domain 1: sustained_freq_khz=0 sustained_perf_level=0
domain 2: sustained_freq_khz=0 sustained_perf_level=0

With the patch all three cpufreq policies are created (cpus 0-3, 4-6,
7-9), each has the full 710400-3417600 kHz table, no boost freq, boost
disabled. Under load every cluster scaled up to 3417600 and drops back
when idle.

Please feel free to carry the Tested-by in the fixup commit.

Thanks,
Haipeng