Re: [PATCH] powerpc/perf: fix Threshold Event CounterMultiplier width for P10

2020-10-13 Thread Madhavan Srinivasan
On 10/13/20 9:28 PM, Michal Suchánek wrote: On Tue, Oct 13, 2020 at 06:27:05PM +0530, Madhavan Srinivasan wrote: On 10/12/20 4:59 PM, Michal Suchánek wrote: Hello, On Mon, Oct 12, 2020 at 04:01:28PM +0530, Madhavan Srinivasan wrote: Power9 and isa v3.1 has 7bit mantissa field for Threshold

Re: [PATCH] powerpc/perf: fix Threshold Event CounterMultiplier width for P10

2020-10-13 Thread Michal Suchánek
On Tue, Oct 13, 2020 at 06:27:05PM +0530, Madhavan Srinivasan wrote: > > On 10/12/20 4:59 PM, Michal Suchánek wrote: > > Hello, > > > > On Mon, Oct 12, 2020 at 04:01:28PM +0530, Madhavan Srinivasan wrote: > > > Power9 and isa v3.1 has 7bit mantissa field for Threshold Event Counter > >

Re: [PATCH] powerpc/perf: fix Threshold Event CounterMultiplier width for P10

2020-10-13 Thread Madhavan Srinivasan
On 10/12/20 4:59 PM, Michal Suchánek wrote: Hello, On Mon, Oct 12, 2020 at 04:01:28PM +0530, Madhavan Srinivasan wrote: Power9 and isa v3.1 has 7bit mantissa field for Threshold Event Counter ^^^ Shouldn't his be 3.0? My bad, What I meant was Power9, ISA v3.0 and ISA v3

Re: [PATCH] powerpc/perf: fix Threshold Event CounterMultiplier width for P10

2020-10-12 Thread Michal Suchánek
Hello, On Mon, Oct 12, 2020 at 04:01:28PM +0530, Madhavan Srinivasan wrote: > Power9 and isa v3.1 has 7bit mantissa field for Threshold Event Counter ^^^ Shouldn't his be 3.0? > Multiplier (TECM). TECM is part of Monitor Mode Control Register A (MMCRA). > This field along with T

[PATCH] powerpc/perf: fix Threshold Event CounterMultiplier width for P10

2020-10-12 Thread Madhavan Srinivasan
Power9 and isa v3.1 has 7bit mantissa field for Threshold Event Counter Multiplier (TECM). TECM is part of Monitor Mode Control Register A (MMCRA). This field along with Threshold Event Counter Exponent (TECE) is used to get threshould counter value. In Power10, the width of TECM field is increase