linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: cppc: add FFH support using AMUs
@ 2020-10-02  9:55 Ionela Voinescu
  2020-10-02  9:55 ` [PATCH v2 1/3] arm64: wrap and generalise counter read functions Ionela Voinescu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ionela Voinescu @ 2020-10-02  9:55 UTC (permalink / raw)
  To: catalin.marinas, will, sudeep.holla
  Cc: morten.rasmussen, valentin.schneider, souvik.chakravarty,
	viresh.kumar, dietmar.eggemann, ionela.voinescu,
	linux-arm-kernel, linux-kernel

This series adds support for CPPC's delivered and reference performance
counters through the FFH methods by using the AMU equivalent core and
constant cycle counters.

This support is added in patch 3/3, while the first 2 patches generalise
the existing AMU counter read and validation functionality to be reused
for this usecase.

The specification that drove this implementation can be found at [1],
chapter 3.2.

v1 -> v2:
 - v1 can be found at [2]
 - The previous patch 1/4 was removed and a get_cpu_with_amu_feat()
   function was introduced instead, in 3/3, as suggested by Catalin.
   Given that most checks for the presence of AMUs is done at CPU
   level, followed by other validation, this implementation works
   better than the one initially introduced in v1/->patch 1/4.
 - Fixed warning reported by 0-day kernel test robot.
 - All build tests and FVP tests at [2] were re-run for this version.
 - This version is based on linux-next/20201001.

[1] https://documentation-service.arm.com/static/5f106ad60daa596235e80081
[2] https://lore.kernel.org/lkml/20200826130309.28027-1-ionela.voinescu@arm.com/

Thank you,
Ionela.

Ionela Voinescu (3):
  arm64: wrap and generalise counter read functions
  arm64: split counter validation function
  arm64: implement CPPC FFH support using AMUs

 arch/arm64/include/asm/cpufeature.h |  11 +++
 arch/arm64/include/asm/topology.h   |   2 +
 arch/arm64/kernel/cpufeature.c      |   8 +-
 arch/arm64/kernel/topology.c        | 132 ++++++++++++++++++++++------
 4 files changed, 121 insertions(+), 32 deletions(-)


base-commit: d39294091fee6b89d9c4a683bb19441b25098330
-- 
2.17.1


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

end of thread, other threads:[~2020-10-02  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02  9:55 [PATCH v2 0/3] arm64: cppc: add FFH support using AMUs Ionela Voinescu
2020-10-02  9:55 ` [PATCH v2 1/3] arm64: wrap and generalise counter read functions Ionela Voinescu
2020-10-02  9:55 ` [PATCH v2 2/3] arm64: split counter validation function Ionela Voinescu
2020-10-02  9:55 ` [PATCH v2 3/3] arm64: implement CPPC FFH support using AMUs Ionela Voinescu

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).