r8169: Fix irq masking in rtl8169_interrupt()
Subsystems (2)
PATCH 1/1 r8169: Fix irq masking in rtl8169_interrupt()
Only adjust the NAPI bits of the interruptmask, if netif_rx_schedule_prep() returns true.
Without this, I see interrupt storms here using 2.6.29-rcx and 2.6.27.19 and device needed rmmod r8169 + modprobe r8169 to start working.
Signed-off-by Karsten Wiese <[email protected]>
--- drivers/net/r8169.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
drivers/net/r8169.c +4 -5
@@ -3708,12 +3708,11 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)rtl8169_check_link_status (dev, tp, ioaddr);if (status & tp->napi_event) { -RTL_W16 (IntrMask, tp->intr_event & ~tp->napi_event); - tp->intr_mask = ~tp->napi_event; - -if (likely (netif_rx_schedule_prep (&tp->napi))) +if (likely (netif_rx_schedule_prep (&tp->napi))) { +RTL_W16 (IntrMask, tp->intr_event & ~tp->napi_event); + tp->intr_mask = ~tp->napi_event;__netif_rx_schedule (&tp->napi); -else if (netif_msg_intr (tp)) { + }else if (netif_msg_intr (tp)) {printk (KERN_INFO "%s: interrupt %04x in poll\n" , dev->name, status); }
Signature · 1 line
1.6.0.6
Quoted 19 lines · Karsten Wiese
Only adjust the NAPI bits of the interruptmask, if
netif_rx_schedule_prep()returns true.
Without this, I see interrupt storms here using 2.6.29-rcx and 2.6.27.19 and device needed rmmod r8169 + modprobe r8169 to start working.Signed-off-by Karsten Wiese <[email protected]>--- drivers/net/r8169.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)drivers/net/r8169.c +0
-1@@ -3708,12 +3708,11 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)rtl8169_check_link_status (dev, tp, ioaddr);if (status & tp->napi_event) { -RTL_W16 (IntrMask, tp->intr_event & ~tp->napi_event);
drivers/net/r8169.c static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) · line 3716
Quoted 10 lines
drivers/net/r8169.c +4
-4- tp->intr_mask = ~tp->napi_event; - -if (likely (netif_rx_schedule_prep (&tp->napi))) +if (likely (netif_rx_schedule_prep (&tp->napi))) { +RTL_W16 (IntrMask, tp->intr_event & ~tp->napi_event); + tp->intr_mask = ~tp->napi_event;__netif_rx_schedule (&tp->napi); -else if (netif_msg_intr (tp)) { + }else if (netif_msg_intr (tp)) { printk(KERN_INFO "%s: interrupt %04x in poll\n",
FWIW, you should CC net driver patches to [email protected], so that they get tracked in patchworks and handled by the right people.
Jeff