Re: [PATCH] perf: Change PMCR write to read-modify-write

2019-04-02 Thread Will Deacon
[+MarkR] On Wed, Mar 20, 2019 at 07:07:46PM -0700, Prasad Sodagudi wrote: > Preserves the bitfields of PMCR_EL0(AArch64) during PMU reset. > Reset routine should write a 1 to PMCR.C and PMCR.P fields only > to reset the counters. Other fields should not be changed > as they could be set before PMU

Re: [PATCH] perf: Change PMCR write to read-modify-write

2019-04-01 Thread Mark Rutland
On Thu, Mar 21, 2019 at 01:02:27PM -0700, Sodagudi Prasad wrote: > On 2019-03-21 06:34, Julien Thierry wrote: > > Hi Prasad, > > > > On 21/03/2019 02:07, Prasad Sodagudi wrote: > > > Preserves the bitfields of PMCR_EL0(AArch64) during PMU reset. > > > Reset routine should write a 1 to PMCR.C and P

Re: [PATCH] perf: Change PMCR write to read-modify-write

2019-03-22 Thread Julien Thierry
On 21/03/2019 20:02, Sodagudi Prasad wrote: > On 2019-03-21 06:34, Julien Thierry wrote: >> Hi Prasad, >> >> On 21/03/2019 02:07, Prasad Sodagudi wrote: >>> Preserves the bitfields of PMCR_EL0(AArch64) during PMU reset. >>> Reset routine should write a 1 to PMCR.C and PMCR.P fields only >>> to r

Re: [PATCH] perf: Change PMCR write to read-modify-write

2019-03-21 Thread Sodagudi Prasad
On 2019-03-21 06:34, Julien Thierry wrote: Hi Prasad, On 21/03/2019 02:07, Prasad Sodagudi wrote: Preserves the bitfields of PMCR_EL0(AArch64) during PMU reset. Reset routine should write a 1 to PMCR.C and PMCR.P fields only to reset the counters. Other fields should not be changed as they coul

Re: [PATCH] perf: Change PMCR write to read-modify-write

2019-03-21 Thread Julien Thierry
Hi Prasad, On 21/03/2019 02:07, Prasad Sodagudi wrote: > Preserves the bitfields of PMCR_EL0(AArch64) during PMU reset. > Reset routine should write a 1 to PMCR.C and PMCR.P fields only > to reset the counters. Other fields should not be changed > as they could be set before PMU initialization and

[PATCH] perf: Change PMCR write to read-modify-write

2019-03-20 Thread Prasad Sodagudi
Preserves the bitfields of PMCR_EL0(AArch64) during PMU reset. Reset routine should write a 1 to PMCR.C and PMCR.P fields only to reset the counters. Other fields should not be changed as they could be set before PMU initialization and their value must be preserved even after reset. Signed-off-by: