public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Disable FIE on machines with slow counters
@ 2022-07-28 22:10 Jeremy Linton
  2022-07-28 22:10 ` [PATCH v2 1/1] ACPI: CPPC: Disable FIE if registers in PCC regions Jeremy Linton
  0 siblings, 1 reply; 17+ messages in thread
From: Jeremy Linton @ 2022-07-28 22:10 UTC (permalink / raw)
  To: linux-pm
  Cc: rafael, lenb, viresh.kumar, robert.moore, devel, linux-acpi,
	linux-kernel, 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 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.
	
Jeremy Linton (1):
  ACPI: CPPC: Disable FIE if registers in PCC regions

 drivers/acpi/cppc_acpi.c       | 41 ++++++++++++++++++++++++++++++++++
 drivers/cpufreq/cppc_cpufreq.c | 19 ++++++++++++----
 include/acpi/cppc_acpi.h       |  5 +++++
 3 files changed, 61 insertions(+), 4 deletions(-)

-- 
2.35.3


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

end of thread, other threads:[~2022-08-11  7:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-28 22:10 [PATCH v2 0/1] Disable FIE on machines with slow counters Jeremy Linton
2022-07-28 22:10 ` [PATCH v2 1/1] ACPI: CPPC: Disable FIE if registers in PCC regions Jeremy Linton
2022-07-29 12:59   ` Punit Agrawal
2022-07-29 15:20     ` Jeremy Linton
2022-08-01 12:32       ` Punit Agrawal
2022-08-10 12:29   ` Lukasz Luba
2022-08-10 12:51     ` Ionela Voinescu
2022-08-10 13:56       ` Lukasz Luba
2022-08-10 17:43       ` Jeremy Linton
2022-08-10 14:08     ` Jeremy Linton
2022-08-10 14:32       ` Lukasz Luba
2022-08-10 18:04         ` Jeremy Linton
2022-08-11  7:29           ` Lukasz Luba
2022-08-10 14:30     ` Jeremy Linton
2022-08-10 14:37       ` Lukasz Luba
2022-08-10 15:32         ` Pierre Gondois
2022-08-11  7:45           ` Lukasz Luba

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