Re: [PATCH] powerpc/perf: Invoke per-CPU variable access with disabled interrupts

2020-12-10 Thread Michael Ellerman
On Tue, 1 Dec 2020 04:28:00 -0500, Athira Rajeev wrote: > The power_pmu_event_init() callback access per-cpu variable > (cpu_hw_events) to check for event constraints and Branch Stack > (BHRB). Current usage is to disable preemption when accessing the > per-cpu variable, but this does not prevent t

[PATCH] powerpc/perf: Invoke per-CPU variable access with disabled interrupts

2020-12-01 Thread Athira Rajeev
The power_pmu_event_init() callback access per-cpu variable (cpu_hw_events) to check for event constraints and Branch Stack (BHRB). Current usage is to disable preemption when accessing the per-cpu variable, but this does not prevent timer callback from interrupting event_init. Fix this by using 'l