linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] cppc_cpufreq: Rework ->get() error handling when cores are idle
@ 2024-09-12  7:22 Jie Zhan
  2024-09-12  7:22 ` [PATCH v2 1/3] cppc_cpufreq: Return desired perf in ->get() if feedback counters are 0 Jie Zhan
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jie Zhan @ 2024-09-12  7:22 UTC (permalink / raw)
  To: ionela.voinescu, beata.michalska, wangxiongfeng2, viresh.kumar,
	rafael
  Cc: linux-pm, linux-acpi, linux-arm-kernel, linuxarm, zhanjie9,
	jonathan.cameron, wanghuiqiang, zhenglifeng1, lihuisong,
	yangyicong, liaochang1, zengheng4

CPPC feedback counters can be unchanged or 0 when cores are idle, e.g.
clock-gated or power-gated.  In such case, get the latest desired perf for
calculating frequency.  Also, the HiSilicon CPPC workaround is now handled
by the common code and can be removed.

Jie Zhan (3):
  cppc_cpufreq: Return desired perf in ->get() if feedback counters are
    0
  cppc_cpufreq: Return latest desired perf if feedback counters don't
    change
  cppc_cpufreq: Remove HiSilicon CPPC workaround

 drivers/cpufreq/cppc_cpufreq.c | 103 +++++++++------------------------
 1 file changed, 27 insertions(+), 76 deletions(-)

-- 
2.33.0



^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v2 0/3] cppc_cpufreq: Rework ->get() error handling when cores are idle
@ 2024-09-12  7:19 Jie Zhan
  2024-09-12  7:19 ` [PATCH v2 1/3] cppc_cpufreq: Return desired perf in ->get() if feedback counters are 0 Jie Zhan
  0 siblings, 1 reply; 12+ messages in thread
From: Jie Zhan @ 2024-09-12  7:19 UTC (permalink / raw)
  To: ionela.voinescu, beata.michalska, wangxiongfeng2, viresh.kumar,
	rafael
  Cc: linux-pm, linux-acpi, linux-arm-kernel, linuxarm, zhanjie9,
	jonathan.cameron, wanghuiqiang, zhenglifeng1, lihuisong,
	yangyicong, liaochang1, zengheng4

Internal:

A quick update of V2 with the feedback received today.
Also, cc'd a wider range of people.
Looking forward to further discussion and feedback.

-----------------
External:

CPPC feedback counters can be unchanged or 0 when cores are idle, e.g.
clock-gated or power-gated.  In such case, get the latest desired perf for
calculating frequency.  Also, the HiSilicon CPPC workaround is now handled
by the common code and can be removed.

Jie Zhan (3):
  cppc_cpufreq: Return desired perf in ->get() if feedback counters are
    0
  cppc_cpufreq: Return latest desired perf if feedback counters don't
    change
  cppc_cpufreq: Remove HiSilicon CPPC workaround

 drivers/cpufreq/cppc_cpufreq.c | 103 +++++++++------------------------
 1 file changed, 27 insertions(+), 76 deletions(-)

-- 
2.33.0



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

end of thread, other threads:[~2024-09-19  1:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12  7:22 [PATCH v2 0/3] cppc_cpufreq: Rework ->get() error handling when cores are idle Jie Zhan
2024-09-12  7:22 ` [PATCH v2 1/3] cppc_cpufreq: Return desired perf in ->get() if feedback counters are 0 Jie Zhan
2024-09-12  9:43   ` Ionela Voinescu
2024-09-13 12:05     ` Jie Zhan
2024-09-17 10:36       ` Ionela Voinescu
2024-09-18  2:05         ` Jie Zhan
2024-09-18 10:15           ` Ionela Voinescu
2024-09-19  1:17             ` Jie Zhan
2024-09-12  7:22 ` [PATCH v2 2/3] cppc_cpufreq: Return latest desired perf if feedback counters don't change Jie Zhan
2024-09-12  7:22 ` [PATCH v2 3/3] cppc_cpufreq: Remove HiSilicon CPPC workaround Jie Zhan
2024-09-14 12:13   ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2024-09-12  7:19 [PATCH v2 0/3] cppc_cpufreq: Rework ->get() error handling when cores are idle Jie Zhan
2024-09-12  7:19 ` [PATCH v2 1/3] cppc_cpufreq: Return desired perf in ->get() if feedback counters are 0 Jie Zhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).