From: Viresh Kumar <viresh.kumar@linaro.org>
To: Jie Zhan <zhanjie9@hisilicon.com>
Cc: rafael@kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org, linuxarm@huawei.com,
xuwei5@huawei.com, wanghuiqiang@huawei.com,
jonathan.cameron@huawei.com, wangxiongfeng2@huawei.com
Subject: Re: [PATCH v2] cpufreq: Support per-policy performance boost
Date: Fri, 25 Aug 2023 12:09:26 +0530 [thread overview]
Message-ID: <20230825063926.n4o7cp6x56r5i2it@vireshk-i7> (raw)
In-Reply-To: <20230822124837.3016641-1-zhanjie9@hisilicon.com>
On 22-08-23, 20:48, Jie Zhan wrote:
> The boost control currently applies to the whole system. However, users
> may prefer to boost a subset of cores in order to provide prioritized
> performance to workloads running on the boosted cores.
>
> Enable per-policy boost by adding a 'boost' sysfs interface under each
> policy path. This can be found at:
>
> /sys/devices/system/cpu/cpufreq/policy<*>/boost
>
> Same to the global boost switch, writing 1/0 to the per-policy 'boost'
> enables/disables boost on a cpufreq policy respectively.
>
> The user view of global and per-policy boost controls should be:
>
> 1. Enabling global boost initially enables boost on all policies, and
> per-policy boost can then be enabled or disabled individually, given that
> the platform does support so.
>
> 2. Disabling global boost makes the per-policy boost interface illegal.
>
> Signed-off-by: Jie Zhan <zhanjie9@hisilicon.com>
> Reviewed-by: Wei Xu <xuwei5@hisilicon.com>
> ---
> A possible question could be: why not just limiting 'scaling_max_freq'?
> Well, the fundamental difference is that per-policy boost could be more
> user-friendly. When global boost is enabled, it is not straightforward
> to figure out the base frequency for setting 'scaling_max_freq' to a
> non-boost value. Also, this is supposed to take effect on the physical
> upper frequency limit, reflected through 'cpuinfo_max_freq'.
>
> v1->v2:
> - Rename the interface from 'local_boost' to 'boost'.
> - Illegalize writing 0 to per-policy even if global boost is off.
> - Show the per-policy 'boost' file only when ->set_boost() is available.
>
> v1: https://lore.kernel.org/linux-pm/20230724075827.4160512-1-zhanjie9@hisilicon.com/
Looks good now, thanks.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
next prev parent reply other threads:[~2023-08-25 6:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 12:48 [PATCH v2] cpufreq: Support per-policy performance boost Jie Zhan
2023-08-23 19:52 ` Rafael J. Wysocki
2023-08-25 6:39 ` Viresh Kumar [this message]
2023-08-29 7:10 ` Jie Zhan
2023-08-29 18:52 ` Rafael J. Wysocki
2023-08-30 1:06 ` Jie Zhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230825063926.n4o7cp6x56r5i2it@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=jonathan.cameron@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=rafael@kernel.org \
--cc=wanghuiqiang@huawei.com \
--cc=wangxiongfeng2@huawei.com \
--cc=xuwei5@huawei.com \
--cc=zhanjie9@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox