Linux r8169 interrupt patch
Subsystems (2)
Quoted 10 lines · Alex
Hello gyus,
I am writing to you, on case of the linux r8169 interrupt bug. Sergey gave me your addresses. I assume you can read all the neccessary informations below. Please reopen the thread at the bugtracker. I have several servers running with this chipset and driver. In my case, the problem is very critical. Network brokes even every day down. I can provide some testing if you would give me some patches or solution tips.
Thanks in advance for your reply.
https://bugzilla.kernel.org/show_bug.cgi?id=15704 reopened.
Thanks,
Rafael
Quoted 128 lines
-------- Original-Nachricht --------
Betreff: Re: Linux r8169 interrupt patch
Datum: Sat, 21 Aug 2010 14:14:36 +0300
Von: Sergey Senozhatsky <[email protected]>
An: alex <[email protected]>
CC: [email protected]Quoted 8 lines · alex
Date: Fri, 20 Aug 2010 22:24:20 +0200
From: alex<[email protected]>
To: [email protected]
Subject: Linux r8169 interrupt patch
User-Agent: Opera Mail/10.61 (Win32)Hello Sergey,
Hello Alex,
Quoted 57 lines
I write to you, because of your conversation in this tracker:
http://patchwork.ozlabs.org/patch/47889/I have the same problem on the 2.6.33.7 kernel. I even upgraded yesterday from 2.6.33.6, hoping to solve this bug. My kernel-panic occurs even every day. That's very disgustig.
Here the trace:Aug 20 02:41:48 het1 kernel: [49652.963863] ------------[ cut here ]------------ Aug 20 02:41:48 het1 kernel: [49652.964033] WARNING: at net/sched/sch_generic.c:259 dev_watchdog+0x14d/0x208() Aug 20 02:41:48 het1 kernel: [49652.964346] Hardware name: MS-7522 Aug 20 02:41:48 het1 kernel: [49652.964504] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out Aug 20 02:41:48 het1 kernel: [49652.964670] Pid: 71, comm: sirq-timer/5 Not tainted 2.6.33.7-rt29 #1 Aug 20 02:41:48 het1 kernel: [49652.964835] Call Trace: Aug 20 02:41:48 het1 kernel: [49652.964997] [<ffffffff812fcf32>] ? dev_watchdog+0x14d/0x208 Aug 20 02:41:48 het1 kernel: [49652.965001] [<ffffffff8103233c>] ? warn_slowpath_common+0x72/0x9e Aug 20 02:41:48 het1 kernel: [49652.965004] [<ffffffff810323c4>] ? warn_slowpath_fmt+0x51/0x59 Aug 20 02:41:48 het1 kernel: [49652.965008] [<ffffffff8102e474>] ? try_to_wake_up+0x351/0x37f Aug 20 02:41:48 het1 kernel: [49652.965012] [<ffffffff8106dce4>] ? cpupri_set+0x10f/0x138 Aug 20 02:41:48 het1 kernel: [49652.965016] [<ffffffff812ebb40>] ? netdev_drivername+0x3b/0x40 Aug 20 02:41:48 het1 kernel: [49652.965019] [<ffffffff812fcf32>] ? dev_watchdog+0x14d/0x208 Aug 20 02:41:48 het1 kernel: [49652.965022] [<ffffffff81027e68>] ? update_curr_rt+0x114/0x18b Aug 20 02:41:48 het1 kernel: [49652.965025] [<ffffffff8102c972>] ? finish_task_switch+0x4a/0xa3 Aug 20 02:41:48 het1 kernel: [49652.965028] [<ffffffff812fcde5>] ? dev_watchdog+0x0/0x208 Aug 20 02:41:48 het1 kernel: [49652.965031] [<ffffffff8103b688>] ? run_timer_softirq+0x20b/0x2a9 Aug 20 02:41:48 het1 kernel: [49652.965035] [<ffffffff81036b50>] ? run_ksoftirqd+0x182/0x2a6 Aug 20 02:41:48 het1 kernel: [49652.965038] [<ffffffff810369ce>] ? run_ksoftirqd+0x0/0x2a6 Aug 20 02:41:48 het1 kernel: [49652.965041] [<ffffffff81044759>] ? kthread+0x79/0x81 Aug 20 02:41:48 het1 kernel: [49652.965044] [<ffffffff8102c972>] ? finish_task_switch+0x4a/0xa3 Aug 20 02:41:48 het1 kernel: [49652.965048] [<ffffffff81003714>] ? kernel_thread_helper+0x4/0x10 Aug 20 02:41:48 het1 kernel: [49652.965051] [<ffffffff810446e0>] ? kthread+0x0/0x81 Aug 20 02:41:48 het1 kernel: [49652.965053] [<ffffffff81003710>] ? kernel_thread_helper+0x0/0x10 Aug 20 02:41:48 het1 kernel: [49652.965055] ---[ end trace 1af3434dfa0224f2 ]---Quoted 6 lines
I read that the patch fix the
rx_interrupt(), but as I can see in my case, he fails while sending the packets "transmit queue 0 timed out".
My question now: Have you solved the problem? If yes, by applying the patch?No, unfortunately no. The problem is that this laptop (with r8169) is no longer available.
We had a later conversation with Eric, and he had proposed several patches (none of them, however didn't solve the problem).
So, I'll recommend to contanct Eric Dumazet<[email protected]> and "Rafael J. Wysocki"<[email protected]> to reopen bug entry:
Quoted 7 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=15704
Subject : [r8169] WARNING: atnet/sched/sch_generic.c
Submitter : Sergey Senozhatsky<[email protected]>
Date : 2010-03-31 10:21 (124 days old)
Message-ID :<[email protected]> References : http://marc.info/?l=linux-kernel&m=127003090406108&w=2as now we have hardware to reproduce this.
Maintainers of r8169 are:
Francois Romieu<[email protected]>
"David S. Miller"<[email protected]>
Alexey Dobriyan<[email protected]>
Jiri Pirko<[email protected]>
[email protected]
[email protected]So, please Cc them too.
Quoted 5 lines
Thanks for your answer in advance, I hope to hear from you soon.
Best regards
Alexey BatyukAll the best,
Sergey
Alex <[email protected]> :
[...]
Quoted 8 lines
I am writing to you, on case of the linux r8169 interrupt bug. Sergey gave me your addresses. I assume you can read all the neccessary informations below. Please reopen the thread at the bugtracker.
I have several servers running with this chipset and driver. In my case, the problem is very critical. Network brokes even every day down. I can provide some testing if you would give me some patches or solution tips.
Can you send a complete dmesg from boot until problem and give the patch below a try ?
drivers/net/r8169.c +11 -7
@@ -4327,13 +4327,13 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb, tp->cur_tx += frags +1 ; -wmb (); -RTL_W8 (TxPoll,NPQ );/* set polling bit */ +mmiowb (); +if (TX_BUFFS_AVAIL (tp) <MAX_SKB_FRAGS ) {netif_stop_queue (dev); -smp_rmb (); +smp_mb ();if (TX_BUFFS_AVAIL (tp) >=MAX_SKB_FRAGS )netif_wake_queue (dev); }
@@ -4428,10 +4428,14 @@ static void rtl8169_tx_interrupt(struct net_device *dev,if (tp->dirty_tx != dirty_tx) { tp->dirty_tx = dirty_tx; -smp_wmb (); -if (netif_queue_stopped (dev) && - (TX_BUFFS_AVAIL (tp) >=MAX_SKB_FRAGS )) { -netif_wake_queue (dev); +smp_mb (); +if (unlikely (netif_queue_stopped (dev) && + (TX_BUFFS_AVAIL (tp) >= (NUM_TX_DESC /4 )))) { +netif_tx_lock (dev); +if (netif_queue_stopped (dev) && + (TX_BUFFS_AVAIL (tp) >= (NUM_TX_DESC /4 ))) +netif_wake_queue (dev); +netif_tx_unlock (dev); }/* * 8168 hack: TxPoll requests are lost when the Tx packets are