linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Softirq error with mcp251xfd driver
@ 2021-03-10  6:46 Daniel Glöckner
  2021-03-10  7:13 ` Marc Kleine-Budde
  2021-04-22  8:25 ` Marc Kleine-Budde
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Glöckner @ 2021-03-10  6:46 UTC (permalink / raw)
  To: netdev, linux-can; +Cc: Marc Kleine-Budde

Hi,

the mcp251xfd driver uses a threaded irq handler to queue skbs with the
can_rx_offload_* helpers. I get the following error on every packet until
the rate limit kicks in:

NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!!

Adding local_bh_disable/local_bh_enable around the can_rx_offload_* calls
gets rid of the error, but is that the correct way to fix this?
Internally the can_rx_offload code uses spin_lock_irqsave to safely
manipulate its queue.

Best regards,

  Daniel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-22  8:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  6:46 Softirq error with mcp251xfd driver Daniel Glöckner
2021-03-10  7:13 ` Marc Kleine-Budde
2021-03-10 21:22   ` Daniel Glöckner
2021-03-10 21:56     ` Daniel Glöckner
2021-03-11 12:20       ` Marc Kleine-Budde
2021-03-11 11:55     ` Marc Kleine-Budde
2021-04-22  8:25 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).