public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Disable FIE on machines with slow counters
@ 2022-08-19 16:25 Jeremy Linton
  2022-08-19 16:25 ` [PATCH v4 1/2] ACPI: CPPC: Disable FIE if registers in PCC regions Jeremy Linton
  2022-08-19 16:25 ` [PATCH v4 2/2] cpufreq: CPPC: Change FIE default Jeremy Linton
  0 siblings, 2 replies; 6+ messages in thread
From: Jeremy Linton @ 2022-08-19 16:25 UTC (permalink / raw)
  To: linux-acpi
  Cc: rafael, lenb, viresh.kumar, robert.moore, punit.agrawal,
	lukasz.luba, ionela.voinescu, pierre.gondois, linux-kernel, devel,
	linux-pm, Jeremy Linton

FIE assumes the delivered/relative perf registers are fast to read so
it goes ahead and hits them quite frequently. On a couple Arm
platforms though they end up in PCC regions which require mailbox
handshaking with other parts of the platform.

This results in a lot of overhead in the cppc_fie task. As such lets
runtime disable FIE if we detect it enabled on one of those platforms.
Also allow the user to manually enable/disable it via a module parameter.

v1->v2:
	Apply Rafael's review comments.
	Move the MODULE_PARAM into the ifdef
	Fix compiler warning when ACPI_CPPC_LIB is disabled.
v2->v3:
	Tristate the module param so FIE can be forced on/off
	Bump pr_debug to pr_info if FIE is disabled due to PCC regions
	Switch ACPI_CPPC_CPUFREQ_FIE off by default
v3->v4:
	No functional change, resend due to email addr issues

Jeremy Linton (2):
  ACPI: CPPC: Disable FIE if registers in PCC regions
  cpufreq: CPPC: Change FIE default

 drivers/acpi/cppc_acpi.c       | 41 ++++++++++++++++++++++++++++++++++
 drivers/cpufreq/Kconfig.arm    |  2 +-
 drivers/cpufreq/cppc_cpufreq.c | 31 +++++++++++++++++++++----
 include/acpi/cppc_acpi.h       |  5 +++++
 4 files changed, 74 insertions(+), 5 deletions(-)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-08 18:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-19 16:25 [PATCH v4 0/2] Disable FIE on machines with slow counters Jeremy Linton
2022-08-19 16:25 ` [PATCH v4 1/2] ACPI: CPPC: Disable FIE if registers in PCC regions Jeremy Linton
2022-09-08 13:59   ` Punit Agrawal
2022-09-08 18:42     ` Jeremy Linton
2022-08-19 16:25 ` [PATCH v4 2/2] cpufreq: CPPC: Change FIE default Jeremy Linton
2022-08-22 12:08   ` Lukasz Luba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox