Re: [PATCH 4/4] arm64: implement CPPC FFH support using AMUs

2020-09-22 Thread Ionela Voinescu
Hi Catalin, Sorry for the delayed reply. I took advantage of a last chance for a holiday before the weather gets bad :). On Friday 11 Sep 2020 at 15:40:32 (+0100), Catalin Marinas wrote: > On Wed, Aug 26, 2020 at 02:03:09PM +0100, Ionela Voinescu wrote: > > +/* > > + * Refer to drivers/acpi/cppc_

Re: [PATCH 4/4] arm64: implement CPPC FFH support using AMUs

2020-09-11 Thread Catalin Marinas
On Wed, Aug 26, 2020 at 02:03:09PM +0100, Ionela Voinescu wrote: > +/* > + * Refer to drivers/acpi/cppc_acpi.c for the description of the functions > + * below. > + */ > +bool cpc_ffh_supported(void) > +{ > + const struct cpumask *cnt_cpu_mask = cpus_with_amu_counters(); > + int cpu = nr_cp

[PATCH 4/4] arm64: implement CPPC FFH support using AMUs

2020-08-26 Thread Ionela Voinescu
If Activity Monitors (AMUs) are present, two of the counters can be used to implement support for CPPC's (Collaborative Processor Performance Control) delivered and reference performance monitoring functionality using FFH (Functional Fixed Hardware). Given that counters for a certain CPU can only