From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mike ." Subject: Bug#656476: Sundance network driver (D-Link DFE-580TX) timeouts rendering interface unusable Date: Wed, 1 Feb 2012 15:42:12 +0100 Message-ID: References: ,<1327205171.8004.96.camel@deadeye>,,<20120126220640.GO12704@decadent.org.uk>,,<1327811546.5400.291.camel@deadeye>,,<1327918447.2288.24.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>,<1327932311.5400.429.camel@deadeye>,<1327933736.2288.41.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>,<1327934477.5400.448.camel@deadeye>,<1327935455.2297.5.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>,<1327936900.2297.7.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Reply-To: "Mike ." , 656476@bugs.debian.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_e1391b4c-ba8c-4197-8b54-fdd9b9330725_" Cc: , <656476@bugs.debian.org>, To: , Return-path: Resent-Message-ID: In-Reply-To: <1327936900.2297.7.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Id: netdev.vger.kernel.org --_e1391b4c-ba8c-4197-8b54-fdd9b9330725_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Oh well=2C we also must make sure we held np->lock in TX completion when > doing our test to eventually call netif_wake_queue()=2C I missed it was > released too early. >=20 > here is a more complete patch. I applied the patch=2C recompiled the module=2C loaded it into the kernel a= nd started testing traffic on the interface with the following result : [ 1124.008030] ------------[ cut here ]------------ [ 1124.008101] WARNING: at /build/buildd-linux-2.6_3.2.1-2-i386-4wAPNj/linu= x-2.6-3.2.1/debian/build/source_i386_none/net/sched/sch_generic.c:255 dev_w= atchdog+0xb1/0x104() [ 1124.008201] Hardware name: [ 1124.008252] NETDEV WATCHDOG: eth1 (sundance): transmit queue 0 timed out [ 1124.008309] Modules linked in: sundance(O) p4_clockmod cpufreq_powersave= cpufreq_userspace cpufreq_conservative cpufreq_stats speedstep_lib mperf f= use w83627ehf hwmon_vid coretemp loop ohci_hcd snd_intel8x0 snd_ac97_codec = ehci_hcd ac97_bus snd_pcm usbcore snd_seq snd_timer snd_seq_device shpchp p= smouse snd sis900 pci_hotplug serio_raw pcspkr mii evdev soundcore parport_= pc snd_page_alloc parport processor tpm_tis tpm tpm_bios thermal_sys button= usb_common ext3 jbd mbcache sd_mod crc_t10dif ata_generic sata_sis pata_si= s libata scsi_mod [last unloaded: sundance] [ 1124.010147] Pid: 5122=2C comm: gnome-terminal Tainted: G O 3.2= .0-1-686-pae #1 [ 1124.010219] Call Trace: [ 1124.010286] [] ? warn_slowpath_common+0x68/0x79 [ 1124.010344] [] ? dev_watchdog+0xb1/0x104 [ 1124.010399] [] ? warn_slowpath_fmt+0x29/0x2d [ 1124.010455] [] ? dev_watchdog+0xb1/0x104 [ 1124.010511] [] ? local_bh_enable+0x2/0x2 [ 1124.010567] [] ? run_timer_softirq+0x150/0x1f3 [ 1124.010622] [] ? netif_tx_unlock+0x3a/0x3a [ 1124.010678] [] ? local_bh_enable+0x2/0x2 [ 1124.010733] [] ? __do_softirq+0x94/0x12f [ 1124.010788] [] ? local_bh_enable+0x2/0x2 [ 1124.010841] [] ? irq_exit+0x32/0x80 [ 1124.010931] [] ? smp_apic_timer_interrupt+0x5b/0x65 [ 1124.012339] [] ? apic_timer_interrupt+0x31/0x38 [ 1124.012397] [] ? set_cpu_sibling_map+0x200/0x250 [ 1124.012452] ---[ end trace d55b57d11770d7d5 ]--- After this the same repeat of transmit timeouts (as posted earlier) in the = log untill I down the interface. Mike. = --_e1391b4c-ba8c-4197-8b54-fdd9b9330725_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>=3B Oh well=2C we also must make sure we held np->=3Block in TX comple= tion when
>=3B doing our test to eventually call netif_wake_queue= ()=2C I missed it was
>=3B released too early.
>=3B
>=3B he= re is a more complete patch.

I applied the patch=2C recompiled the m= odule=2C loaded it into the kernel and started testing traffic on the inter= face with the following result :

[ 1124.008030] ------------[ cut he= re ]------------
[ 1124.008101] WARNING: at /build/buildd-linux-2.6_3.2.= 1-2-i386-4wAPNj/linux-2.6-3.2.1/debian/build/source_i386_none/net/sched/sch= _generic.c:255 dev_watchdog+0xb1/0x104()
[ 1124.008201] Hardware name:[ 1124.008252] NETDEV WATCHDOG: eth1 (sundance): transmit queue 0 timed o= ut
[ 1124.008309] Modules linked in: sundance(O) p4_clockmod cpufreq_pow= ersave cpufreq_userspace cpufreq_conservative cpufreq_stats speedstep_lib m= perf fuse w83627ehf hwmon_vid coretemp loop ohci_hcd snd_intel8x0 snd_ac97_= codec ehci_hcd ac97_bus snd_pcm usbcore snd_seq snd_timer snd_seq_device sh= pchp psmouse snd sis900 pci_hotplug serio_raw pcspkr mii evdev soundcore pa= rport_pc snd_page_alloc parport processor tpm_tis tpm tpm_bios thermal_sys = button usb_common ext3 jbd mbcache sd_mod crc_t10dif ata_generic sata_sis p= ata_sis libata scsi_mod [last unloaded: sundance]
[ 1124.010147] Pid: 51= 22=2C comm: gnome-terminal Tainted: G =3B =3B =3B =3B = =3B =3B =3B =3B =3B =3B O 3.2.0-1-686-pae #1
[ 1124.= 010219] Call Trace:
[ 1124.010286] =3B [<=3Bc1038280>=3B] ? warn= _slowpath_common+0x68/0x79
[ 1124.010344] =3B [<=3Bc1229e38>=3B]= ? dev_watchdog+0xb1/0x104
[ 1124.010399] =3B [<=3Bc10382f9>=3B]= ? warn_slowpath_fmt+0x29/0x2d
[ 1124.010455] =3B [<=3Bc1229e38>= =3B] ? dev_watchdog+0xb1/0x104
[ 1124.010511] =3B [<=3Bc103ccb5>= =3B] ? local_bh_enable+0x2/0x2
[ 1124.010567] =3B [<=3Bc1041e78>= =3B] ? run_timer_softirq+0x150/0x1f3
[ 1124.010622] =3B [<=3Bc1229= d87>=3B] ? netif_tx_unlock+0x3a/0x3a
[ 1124.010678] =3B [<=3Bc10= 3ccb5>=3B] ? local_bh_enable+0x2/0x2
[ 1124.010733] =3B [<=3Bc10= 3cd49>=3B] ? __do_softirq+0x94/0x12f
[ 1124.010788] =3B [<=3Bc10= 3ccb5>=3B] ? local_bh_enable+0x2/0x2
[ 1124.010841] =3B <=3BIRQ&= gt=3B =3B [<=3Bc103cf3a>=3B] ? irq_exit+0x32/0x80
[ 1124.010931]=  =3B [<=3Bc101e6f4>=3B] ? smp_apic_timer_interrupt+0x5b/0x65
[ 1= 124.012339] =3B [<=3Bc12b9b11>=3B] ? apic_timer_interrupt+0x31/0x38=
[ 1124.012397] =3B [<=3Bc12b007b>=3B] ? set_cpu_sibling_map+0x2= 00/0x250
[ 1124.012452] ---[ end trace d55b57d11770d7d5 ]---

Afte= r this the same repeat of transmit timeouts (as posted earlier) in the log = untill I down the interface.

Mike.

= --_e1391b4c-ba8c-4197-8b54-fdd9b9330725_--