Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-27 Thread Will Deacon
On Fri, Feb 27, 2015 at 07:36:11PM +, Stephen Boyd wrote: > On 02/25/15 08:58, Ashwin Chaugule wrote: > > Its a count control register (PMxEVCNTCR). Theres various conditions > > on which you can select when to start/stop counting. e.g. start when > > another counter register overflows.

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-27 Thread Stephen Boyd
On 02/25/15 08:58, Ashwin Chaugule wrote: > On 24 February 2015 at 12:23, Ashwin Chaugule > wrote: >> On 20 February 2015 at 15:16, Stephen Boyd wrote: >>> On 02/20, Will Deacon wrote: On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: > +static void

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-27 Thread Will Deacon
On Fri, Feb 27, 2015 at 07:36:11PM +, Stephen Boyd wrote: On 02/25/15 08:58, Ashwin Chaugule wrote: Its a count control register (PMxEVCNTCR). Theres various conditions on which you can select when to start/stop counting. e.g. start when another counter register overflows. Setting it to

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-27 Thread Stephen Boyd
On 02/25/15 08:58, Ashwin Chaugule wrote: On 24 February 2015 at 12:23, Ashwin Chaugule ashwin.chaug...@linaro.org wrote: On 20 February 2015 at 15:16, Stephen Boyd sb...@codeaurora.org wrote: On 02/20, Will Deacon wrote: On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: +static

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-25 Thread Ashwin Chaugule
On 24 February 2015 at 12:23, Ashwin Chaugule wrote: > On 20 February 2015 at 15:16, Stephen Boyd wrote: >> On 02/20, Will Deacon wrote: >>> On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: >>> >>> > +static void scorpion_evt_setup(int idx, u32 config_base) >>> > +{ >>> > +

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-25 Thread Ashwin Chaugule
On 24 February 2015 at 12:23, Ashwin Chaugule ashwin.chaug...@linaro.org wrote: On 20 February 2015 at 15:16, Stephen Boyd sb...@codeaurora.org wrote: On 02/20, Will Deacon wrote: On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: +static void scorpion_evt_setup(int idx, u32

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-24 Thread Ashwin Chaugule
On 20 February 2015 at 15:16, Stephen Boyd wrote: > On 02/20, Will Deacon wrote: >> On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: >> >> > +static void scorpion_evt_setup(int idx, u32 config_base) >> > +{ >> > + u32 val; >> > + u32 mask; >> > + u32 vval, fval; >>

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-24 Thread Ashwin Chaugule
On 20 February 2015 at 15:16, Stephen Boyd sb...@codeaurora.org wrote: On 02/20, Will Deacon wrote: On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: +static void scorpion_evt_setup(int idx, u32 config_base) +{ + u32 val; + u32 mask; + u32 vval, fval; +

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-20 Thread Stephen Boyd
On 02/20, Will Deacon wrote: > On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: > > > +static void scorpion_evt_setup(int idx, u32 config_base) > > +{ > > + u32 val; > > + u32 mask; > > + u32 vval, fval; > > + unsigned int region; > > + unsigned int

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-20 Thread Will Deacon
On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: > Scorpion supports a set of local performance monitor event > selection registers (LPM) sitting behind a cp15 based interface > that extend the architected PMU events to include Scorpion CPU > and Venum VFP specific events. To use

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-20 Thread Will Deacon
On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: Scorpion supports a set of local performance monitor event selection registers (LPM) sitting behind a cp15 based interface that extend the architected PMU events to include Scorpion CPU and Venum VFP specific events. To use these

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-20 Thread Stephen Boyd
On 02/20, Will Deacon wrote: On Fri, Feb 13, 2015 at 06:24:09PM +, Stephen Boyd wrote: +static void scorpion_evt_setup(int idx, u32 config_base) +{ + u32 val; + u32 mask; + u32 vval, fval; + unsigned int region; + unsigned int group; +

[PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-13 Thread Stephen Boyd
Scorpion supports a set of local performance monitor event selection registers (LPM) sitting behind a cp15 based interface that extend the architected PMU events to include Scorpion CPU and Venum VFP specific events. To use these events the user is expected to program the lpm register with the

[PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-13 Thread Stephen Boyd
Scorpion supports a set of local performance monitor event selection registers (LPM) sitting behind a cp15 based interface that extend the architected PMU events to include Scorpion CPU and Venum VFP specific events. To use these events the user is expected to program the lpm register with the