Re: [PATCH net] net: dsa: sja1105: Fix sleeping while atomic in .port_hwtstamp_set

2019-09-30 Thread Vladimir Oltean
Hi David, On Tue, 1 Oct 2019 at 03:20, David Miller wrote: > > From: Vladimir Oltean > Date: Sun, 29 Sep 2019 01:07:45 +0300 > > > Currently this stack trace can be seen with CONFIG_DEBUG_ATOMIC_SLEEP=y: > ... > > Enabling RX timestamping will logically disturb the fastpath (processing > > of m

Re: [PATCH net] net: dsa: sja1105: Fix sleeping while atomic in .port_hwtstamp_set

2019-09-30 Thread David Miller
From: Vladimir Oltean Date: Sun, 29 Sep 2019 01:07:45 +0300 > Currently this stack trace can be seen with CONFIG_DEBUG_ATOMIC_SLEEP=y: ... > Enabling RX timestamping will logically disturb the fastpath (processing > of meta frames). Replace bool hwts_rx_en with a bit that is checked > atomically

[PATCH net] net: dsa: sja1105: Fix sleeping while atomic in .port_hwtstamp_set

2019-09-28 Thread Vladimir Oltean
Currently this stack trace can be seen with CONFIG_DEBUG_ATOMIC_SLEEP=y: [ 41.568348] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:909 [ 41.576757] in_atomic(): 1, irqs_disabled(): 0, pid: 208, name: ptp4l [ 41.583212] INFO: lockdep is turned off. [ 41.5871