Re: [PATCH v2] arm64: perf: Fix access percpu variables in preemptible context

2021-01-12 Thread Mark Rutland
On Tue, Jan 12, 2021 at 03:07:36PM +, Will Deacon wrote: > On Fri, Jan 08, 2021 at 08:55:27PM +0800, Lecopzer Chen wrote: > > > On Mon, 21 Dec 2020 at 21:53, Lecopzer Chen > > > wrote: > > > > > > > > commit 367c820ef08082 ("arm64: Enable perf events based hard lockup > > > > detector") > >

Re: [PATCH v2] arm64: perf: Fix access percpu variables in preemptible context

2021-01-12 Thread Will Deacon
On Fri, Jan 08, 2021 at 08:55:27PM +0800, Lecopzer Chen wrote: > > On Mon, 21 Dec 2020 at 21:53, Lecopzer Chen > > wrote: > > > > > > commit 367c820ef08082 ("arm64: Enable perf events based hard lockup > > > detector") > > > reinitilizes lockup detector after arm64 PMU is initialized and open >

Re: [PATCH v2] arm64: perf: Fix access percpu variables in preemptible context

2021-01-08 Thread Lecopzer Chen
Hi Sumit, Thanks for your reply. > On Mon, 21 Dec 2020 at 21:53, Lecopzer Chen > wrote: > > > > commit 367c820ef08082 ("arm64: Enable perf events based hard lockup > > detector") > > reinitilizes lockup detector after arm64 PMU is initialized and open > > a window for accessing smp_processor

Re: [PATCH v2] arm64: perf: Fix access percpu variables in preemptible context

2021-01-08 Thread Sumit Garg
On Mon, 21 Dec 2020 at 21:53, Lecopzer Chen wrote: > > commit 367c820ef08082 ("arm64: Enable perf events based hard lockup detector") > reinitilizes lockup detector after arm64 PMU is initialized and open > a window for accessing smp_processor_id() in preemptible context. > Since hardlockup_detect