[RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-22 Thread Agustin Vega-Frias
Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second index selects a group from which only one event at a time can be selected - the third index selects the event These events are

[RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-22 Thread Agustin Vega-Frias
Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second index selects a group from which only one event at a time can be selected - the third index selects the event These events are

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-14 Thread Agustin Vega-Frias
Hi, On 2018-06-13 09:02, Will Deacon wrote: On Wed, Jun 13, 2018 at 01:59:58PM +0100, Marc Zyngier wrote: On 13/06/18 11:35, Will Deacon wrote: [...] > Great :( We need to make sure we disable EL0 access during boot then, but > that means we need to prove for the existence of this thing in

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-14 Thread Agustin Vega-Frias
Hi, On 2018-06-13 09:02, Will Deacon wrote: On Wed, Jun 13, 2018 at 01:59:58PM +0100, Marc Zyngier wrote: On 13/06/18 11:35, Will Deacon wrote: [...] > Great :( We need to make sure we disable EL0 access during boot then, but > that means we need to prove for the existence of this thing in

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Mark Rutland
On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: > On 2018-06-12 10:40, Mark Rutland wrote: > > On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: > > > +/* > > > + * Qualcomm Technologies CPU PMU IMPLEMENTATION DEFINED extensions > > > support > > > + * > > > +

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Mark Rutland
On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: > On 2018-06-12 10:40, Mark Rutland wrote: > > On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: > > > +/* > > > + * Qualcomm Technologies CPU PMU IMPLEMENTATION DEFINED extensions > > > support > > > + * > > > +

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Will Deacon
On Wed, Jun 13, 2018 at 01:59:58PM +0100, Marc Zyngier wrote: > On 13/06/18 11:35, Will Deacon wrote: > > On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: > >> On 2018-06-12 10:40, Mark Rutland wrote: > >>> On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: >

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Will Deacon
On Wed, Jun 13, 2018 at 01:59:58PM +0100, Marc Zyngier wrote: > On 13/06/18 11:35, Will Deacon wrote: > > On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: > >> On 2018-06-12 10:40, Mark Rutland wrote: > >>> On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: >

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Marc Zyngier
On 13/06/18 11:35, Will Deacon wrote: > On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: >> Hi Mark, >> >> On 2018-06-12 10:40, Mark Rutland wrote: >>> Hi, >>> >>> On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: Selection of these events can be

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Marc Zyngier
On 13/06/18 11:35, Will Deacon wrote: > On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: >> Hi Mark, >> >> On 2018-06-12 10:40, Mark Rutland wrote: >>> Hi, >>> >>> On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: Selection of these events can be

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Will Deacon
On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: > Hi Mark, > > On 2018-06-12 10:40, Mark Rutland wrote: > >Hi, > > > >On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: > >>Selection of these events can be envisioned as indexing them from > >>a 3D matrix: >

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-13 Thread Will Deacon
On Tue, Jun 12, 2018 at 04:41:32PM -0400, Agustin Vega-Frias wrote: > Hi Mark, > > On 2018-06-12 10:40, Mark Rutland wrote: > >Hi, > > > >On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: > >>Selection of these events can be envisioned as indexing them from > >>a 3D matrix: >

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-12 Thread Agustin Vega-Frias
Hi Mark, On 2018-06-12 10:40, Mark Rutland wrote: Hi, On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-12 Thread Agustin Vega-Frias
Hi Mark, On 2018-06-12 10:40, Mark Rutland wrote: Hi, On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-12 Thread Mark Rutland
Hi, On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: > Selection of these events can be envisioned as indexing them from > a 3D matrix: > - the first index selects a Region Event Selection Register (PMRESRx_EL0) > - the second index selects a group from which only one event at

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-12 Thread Mark Rutland
Hi, On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: > Selection of these events can be envisioned as indexing them from > a 3D matrix: > - the first index selects a Region Event Selection Register (PMRESRx_EL0) > - the second index selects a group from which only one event at

[RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-07 Thread Agustin Vega-Frias
Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second index selects a group from which only one event at a time can be selected - the third index selects the event The event is

[RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-07 Thread Agustin Vega-Frias
Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second index selects a group from which only one event at a time can be selected - the third index selects the event The event is