Re: de0 doze off

From: Robert Watson <rwatson_at_freebsd.org>
Date: Fri, 17 Sep 2004 09:38:46 -0400 (EDT)
On Fri, 17 Sep 2004, Raphael H. Becker wrote:

> on one of my older boxes my D-Link ("tulip") card dozes off when
> transfering some megabytes of data eg scp. 
> 
> When stalled, the interface can be brought back by "ifconfig down/up". 
> 
> The box is actually running BETA4/GENERIC from last night, this appeared
> after BETA1 which was the last stable for this. 

If you set debug.mpsafenet=0 in loader.conf, does the problem go away?  We
might be looking at a race condition in the task queue handoff for
IFF_NEEDSGIANT.

Another possible testing avenue (which might be slightly unstable but
would illustrate the point) would be to leave debug.mpsafenet=1, disable
preemption, and remove the IFF_NEEDSGIANT flag from the if_de driver
flags.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert_at_fledge.watson.org      Principal Research Scientist, McAfee Research


> 
> de0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.0.140 netmask 0xffffff00 broadcast 192.168.0.255
>         inet6 fe80::280:c8ff:fe94:4436%de0 prefixlen 64 scopeid 0x1 
>         ether 00:80:c8:94:44:36
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> 
> de0: <Digital 21140A Fast Ethernet> port 0xc400-0xc47f mem 0xd7000000-0xd700007f irq 15 at device 13.0 on pci0
> de0: [GIANT-LOCKED]
> de0: 21140A [10-100Mb/s] pass 2.2
> de0: Ethernet address: 00:80:c8:94:44:36
> de0: if_start running deferred for Giant
> de0: enabling Full Duplex 100baseTX port
> (see also: http://rhb.uugrn.org/FreeBSD/bugs/5.x/beastie_de0/beastie.dmesg )
> 
> Any idea?
> 
> Regards
> Raphael Becker
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Fri Sep 17 2004 - 11:39:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:12 UTC