Re: [PATCH tip/core/rcu 3/4] kernel/smp: Provide CSD lock timeout diagnostics

2020-09-04 Thread Paul E. McKenney
On Fri, Sep 04, 2020 at 11:19:53AM +0800, Boqun Feng wrote: > On Mon, Aug 31, 2020 at 11:14:16AM -0700, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > This commit causes csd_lock_wait() to emit diagnostics when a CPU > > fails to respond quickly enough to one of the

Re: [PATCH tip/core/rcu 3/4] kernel/smp: Provide CSD lock timeout diagnostics

2020-09-03 Thread Boqun Feng
On Mon, Aug 31, 2020 at 11:14:16AM -0700, paul...@kernel.org wrote: [...] > +static __always_inline bool csd_lock_wait_toolong(call_single_data_t *csd, > u64 ts0, u64 *ts1, int *bug_id) > +{ > + int cpu = -1; > + int cpux; > + bool firsttime; > + u64 ts2, ts_delta; > +

Re: [PATCH tip/core/rcu 3/4] kernel/smp: Provide CSD lock timeout diagnostics

2020-09-03 Thread Boqun Feng
On Mon, Aug 31, 2020 at 11:14:16AM -0700, paul...@kernel.org wrote: > From: "Paul E. McKenney" > > This commit causes csd_lock_wait() to emit diagnostics when a CPU > fails to respond quickly enough to one of the smp_call_function() > family of function calls. These diagnostics are enabled by a

[PATCH tip/core/rcu 3/4] kernel/smp: Provide CSD lock timeout diagnostics

2020-08-31 Thread paulmck
From: "Paul E. McKenney" This commit causes csd_lock_wait() to emit diagnostics when a CPU fails to respond quickly enough to one of the smp_call_function() family of function calls. These diagnostics are enabled by a new CSD_LOCK_WAIT_DEBUG Kconfig option that depends on DEBUG_KERNEL. This