NIU: fix spurious interrupts
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | NIU: fix spurious interruptsdrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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