From: Lukasz Luba <lukasz.luba@arm.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-acpi@vger.kernel.org, rafael@kernel.or, lenb@kernel.org,
robert.moore@intel.com, punit.agrawal@bytedance.com,
ionela.voinescu@arm.com, pierre.gondois@arm.com,
linux-kernel@vger.kernel.org, devel@acpica.org,
linux-pm@vger.kernel.org,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Morten Rasmussen <morten.rasmussen@arm.com>,
Souvik Chakravarty <souvik.chakravarty@arm.com>,
Jeremy Linton <jeremy.linton@arm.com>
Subject: Re: [PATCH v3 2/2] cpufreq: CPPC: Change FIE default
Date: Wed, 24 Aug 2022 15:04:45 +0100 [thread overview]
Message-ID: <0d49c40d-02af-5190-76b0-e88f3622ab7a@arm.com> (raw)
In-Reply-To: <20220824061430.3aflygc4gno5j47y@vireshk-i7>
Hi Viresh,
+CC Dietmar, Morten and Souvik
On 8/24/22 07:14, Viresh Kumar wrote:
> On 18-08-22, 16:16, Jeremy Linton wrote:
>> FIE is mostly implemented as PCC mailboxes on arm machines. This was
>> enabled by default without any data suggesting that it does anything
>> but hurt system performance. Lets change the default to 'n' until
>> hardware appears which clearly benefits.
>>
>> Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
>> ---
>> drivers/cpufreq/Kconfig.arm | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
>> index 954749afb5fe..ad66d8f15db0 100644
>> --- a/drivers/cpufreq/Kconfig.arm
>> +++ b/drivers/cpufreq/Kconfig.arm
>> @@ -22,7 +22,7 @@ config ACPI_CPPC_CPUFREQ
>> config ACPI_CPPC_CPUFREQ_FIE
>> bool "Frequency Invariance support for CPPC cpufreq driver"
>> depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY
>> - default y
>> + default n
>> help
>> This extends frequency invariance support in the CPPC cpufreq driver,
>> by using CPPC delivered and reference performance counters.
>
> Why is this required after we have the first patch in ?
>
There are a few issues with this ACPI_CPPC_CPUFREQ_FIE solution:
1. The design is very heavy and that kernel thread can be ~512 util
(that's what we have been told by one of our partners from servers'
world)
2. The HW & FW design is not suited for this task. Newer HW will just
have AMU counters (on Arm64) for FIE
3. The patches haven't been tested in terms of performance overhead
AFAIK. Although, it affects existing Arm64 servers with their
workloads.
4. AFAIK non of our server partners wasn't complaining about issues with
old FIE mechanism.
In our team we are not allowed to send code that we cannot prove in many
ways.
I would just not compile this at all (or even revert this feature).
If someone compiled in this by accident - make sure we disable it
after checks like in the patch 1/2. I'll add also some comments
to that patch.
Regards,
Lukasz
next prev parent reply other threads:[~2022-08-24 14:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-18 21:16 [PATCH v3 0/2] Disable FIE on machines with slow counters Jeremy Linton
2022-08-18 21:16 ` [PATCH v3 1/2] ACPI: CPPC: Disable FIE if registers in PCC regions Jeremy Linton
2022-08-23 17:10 ` Rafael J. Wysocki
2022-08-23 18:46 ` Jeremy Linton
2022-08-24 13:22 ` Rafael J. Wysocki
2022-08-24 6:13 ` Viresh Kumar
2022-08-24 16:14 ` Jeremy Linton
2022-08-24 14:41 ` Lukasz Luba
2022-08-24 16:11 ` Jeremy Linton
2022-08-30 3:27 ` Viresh Kumar
2022-08-18 21:16 ` [PATCH v3 2/2] cpufreq: CPPC: Change FIE default Jeremy Linton
2022-08-24 6:14 ` Viresh Kumar
2022-08-24 14:04 ` Lukasz Luba [this message]
2022-08-30 5:44 ` Viresh Kumar
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=0d49c40d-02af-5190-76b0-e88f3622ab7a@arm.com \
--to=lukasz.luba@arm.com \
--cc=devel@acpica.org \
--cc=dietmar.eggemann@arm.com \
--cc=ionela.voinescu@arm.com \
--cc=jeremy.linton@arm.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=morten.rasmussen@arm.com \
--cc=pierre.gondois@arm.com \
--cc=punit.agrawal@bytedance.com \
--cc=rafael@kernel.or \
--cc=robert.moore@intel.com \
--cc=souvik.chakravarty@arm.com \
--cc=viresh.kumar@linaro.org \
/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