Re: [PATCH v3 02/15] target/ppc: add user write access control for PMU SPRs

2021-10-06 Thread David Gibson
On Mon, Sep 27, 2021 at 08:05:22PM -0300, Daniel Henrique Barboza wrote: > > > On 9/27/21 02:08, David Gibson wrote: > > On Thu, Sep 23, 2021 at 11:39:14AM -0300, Daniel Henrique Barboza wrote: > > > > > > > > > On 9/6/21 22:38, David Gibson wrote: > > > > On Fri, Sep 03, 2021 at 05:31:03PM -03

Re: [PATCH v3 02/15] target/ppc: add user write access control for PMU SPRs

2021-09-27 Thread Daniel Henrique Barboza
On 9/27/21 02:08, David Gibson wrote: On Thu, Sep 23, 2021 at 11:39:14AM -0300, Daniel Henrique Barboza wrote: On 9/6/21 22:38, David Gibson wrote: On Fri, Sep 03, 2021 at 05:31:03PM -0300, Daniel Henrique Barboza wrote: The PMU needs to enable writing of its uregs to userspace, otherwise

Re: [PATCH v3 02/15] target/ppc: add user write access control for PMU SPRs

2021-09-26 Thread David Gibson
On Thu, Sep 23, 2021 at 11:39:14AM -0300, Daniel Henrique Barboza wrote: > > > On 9/6/21 22:38, David Gibson wrote: > > On Fri, Sep 03, 2021 at 05:31:03PM -0300, Daniel Henrique Barboza wrote: > > > The PMU needs to enable writing of its uregs to userspace, otherwise > > > Perf applications will

Re: [PATCH v3 02/15] target/ppc: add user write access control for PMU SPRs

2021-09-23 Thread Daniel Henrique Barboza
On 9/6/21 22:38, David Gibson wrote: On Fri, Sep 03, 2021 at 05:31:03PM -0300, Daniel Henrique Barboza wrote: The PMU needs to enable writing of its uregs to userspace, otherwise Perf applications will not able to setup the counters correctly. This patch enables user space writing of all PMU

Re: [PATCH v3 02/15] target/ppc: add user write access control for PMU SPRs

2021-09-06 Thread David Gibson
On Fri, Sep 03, 2021 at 05:31:03PM -0300, Daniel Henrique Barboza wrote: > The PMU needs to enable writing of its uregs to userspace, otherwise > Perf applications will not able to setup the counters correctly. This > patch enables user space writing of all PMU uregs. > > MMCR0 is a special case b

[PATCH v3 02/15] target/ppc: add user write access control for PMU SPRs

2021-09-03 Thread Daniel Henrique Barboza
The PMU needs to enable writing of its uregs to userspace, otherwise Perf applications will not able to setup the counters correctly. This patch enables user space writing of all PMU uregs. MMCR0 is a special case because its userspace writing access is controlled by MMCR0_PMCC bits. There are 4 c