[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4b90b76f-f08d-f248-8153-287b2552dceb@arm.com>
Date: Thu, 2 Mar 2017 09:05:22 +0000
From: Marc Zyngier <marc.zyngier@....com>
To: "Leeder, Neil" <nleeder@...eaurora.org>,
Mark Rutland <mark.rutland@....com>
Cc: Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Mark Langsdorf <mlangsdo@...hat.com>,
Mark Salter <msalter@...hat.com>, Jon Masters <jcm@...hat.com>,
Timur Tabi <timur@...eaurora.org>,
Jeremy Linton <jeremy.linton@....com>
Subject: Re: [PATCH/RFC] arm64: pmu: add Qualcomm Technologies extensions
On 01/03/17 21:36, Leeder, Neil wrote:
> Hi Mark,
> Thanks for the quick response.
>
> On 3/1/2017 1:10 PM, Mark Rutland wrote:
>> Hi Neil,
>>
>> On Wed, Mar 01, 2017 at 11:18:05AM -0500, Neil Leeder wrote:
>>> Adds CPU PMU perf events support for Qualcomm Technologies' Falkor CPU.
>>>
>>> The Qualcomm Technologies CPU PMU is named qcom_pmuv3 and provides
>>> extensions to the architected PMU events.
>>
>> Is this is a strict superset of PMUv3 (that could validly be treated as
>> just PMUv3), or do those IMP DEF parts need to be poked to use this at
>> all?
>>
>> What is reported by ID_AA64DFR0_EL1.PMUVer on these CPUs?
>
> It's a strict superset. If you don't use any of the extensions than it
> behaves as a PMUv3 for architected events. ID_AA64DFR0_EL1.PMUVer = 1.
>
>> Quite frankly, I'm less than thrilled about the prospect of
>> IMPLEMENTATION DEFINED CPU PMUs that fall outside of the architected PMU
>> model, especially for ACPI systems where the raison d'ĂȘtre is standards
>> and uniformity, and where we have no sensible mechanism to provide
>> information regarding IMPLEMENTATION DEFINED functionality.
>>
>> This has knock-on effects for other things, like userspace PMU access
>> and/or virtualization, and this multiplies the support effort.
>>
>> KVM already has (architected) PMU support, and without a corresponding
>> KVM patch this is at best insufficient. I don't imagine the KVM folk
>> will be too thrilled about the prospect of emulating an IMPLEMENTATION
>> DEFINED CPU feature like this.
>
> Does KVM handle ARMv7 PMU implementations? If so, do you know what it
> does for the scorpion_* and krait_* implementations in
> arch/arm/kernel/perf_events_v7.c? These extensions in ARMv8 are very
> similar to the krait extensions, with some 64-bit tweaks, so could be
> handled by KVM the same way it handles the ARMv7 cases.
No, KVM doesn't handle the ARMv7 PMU at all. I'm not aware of the
virtualization extensions being available on Scorpion or Krait, which
makes it a moot point. What it handles is the PMUv3 architecture.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
Powered by blists - more mailing lists