Skip to content

NIU: fix spurious interrupts

Hong H. Pham netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1NIU: fix spurious interruptsdrivers/net/niu.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] NIU: fix spurious interrupts

Hi,

I've tracked down a hang on a SPARC64 system (a Netra T5220 with 64 strands) whenever the NIU is handling lots of receive traffic. The hang is reproducible by running iperf with multiple TCP streams (eg. iperf -P16 ...), with the SPARC box being the listener.

I've found that it's possible for an RX DMA interrupt to be triggered while NAPI is in progress. When this happens, spurious interrupts will keep being regenerated which will cause the CPU to hang. It's too busy servicing the spurious interrupts, and the NIU NAPI handler (or anything else on that CPU) never gets a chance to run.

In niu_schedule_napi(), if the logical device interrupt is unconditionally masked out by calling __niu_fastpath_interrupt(), the hang goes away.

Regards,
Hong