* sky2 doesn't receive any packages after I ssh in via ipv6 and edit a file in vim (reproducable)
@ 2006-08-21 21:22 Thomas Glanzmann
[not found] ` <20060821150231.31a947d4@localhost.localdomain>
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Glanzmann @ 2006-08-21 21:22 UTC (permalink / raw)
To: LKML; +Cc: Stephen Hemminger
Hello,
I have the newest sky2 driver (with the newest fix in version 1.5)
running on my intel mac mini running under legacy bios modus. However if
I ssh in via IPv6 and start vim in the shell to edit a file the sky2
network adapter stops to work. This is reproducable. A friend of mine
thought that maybe the IPv6 code doesn't request the right checksum. But
I have no clue if it is related to this. I can give access to the
machine via ssh (including root) if someone is willing to track this
down. I have a userland programming running which reboots the machine if
the network connectivity is lost. At least this one is reliable. If
noone wants a shell account maybe someone can guide me through
debugging and tracking this down.
(mini) [/var/log] grep sky2 kern.log
Aug 20 20:52:10 mini kernel: sky2 v1.5 addr 0x90200000 irq 17 Yukon-EC (0xb6) rev 2
Aug 20 20:52:10 mini kernel: sky2 eth0: addr 00:16:cb:a3:91:3c
Aug 20 20:52:12 mini kernel: sky2 eth0: enabling interface
Aug 20 20:52:12 mini kernel: sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
Aug 20 21:01:34 mini kernel: sky2 eth0: hw error interrupt status 0x30
Aug 20 21:01:34 mini kernel: sky2 eth0: ram data read parity error
Aug 20 21:01:34 mini kernel: sky2 eth0: ram data write parity error
Aug 20 21:01:34 mini kernel: sky2 eth0: hw error interrupt status 0x8
Aug 20 21:01:34 mini kernel: sky2 eth0: MAC parity error
Aug 20 21:01:34 mini kernel: sky2 eth0: hw error interrupt status 0x20
Aug 20 21:01:34 mini kernel: sky2 eth0: ram data read parity error
Aug 20 21:01:34 mini kernel: sky2 eth0: hw error interrupt status 0x8
Aug 20 21:01:34 mini kernel: sky2 eth0: MAC parity error
Aug 21 11:23:49 mini kernel: sky2 v1.5 addr 0x90200000 irq 17 Yukon-EC (0xb6) rev 2
Aug 21 11:23:49 mini kernel: sky2 eth0: addr 00:16:cb:a3:91:3c
Aug 21 11:23:50 mini kernel: sky2 eth0: enabling interface
Aug 21 11:23:50 mini kernel: sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
Aug 21 18:38:44 mini kernel: sky2 eth0: hw error interrupt status 0x30
Aug 21 18:38:44 mini kernel: sky2 eth0: ram data read parity error
Aug 21 18:38:44 mini kernel: sky2 eth0: ram data write parity error
Aug 21 18:38:44 mini kernel: sky2 eth0: hw error interrupt status 0x8
Aug 21 18:38:44 mini kernel: sky2 eth0: MAC parity error
Aug 21 18:38:44 mini kernel: sky2 eth0: hw error interrupt status 0x20
Aug 21 18:38:44 mini kernel: sky2 eth0: ram data read parity error
Aug 21 18:38:44 mini kernel: sky2 eth0: hw error interrupt status 0x8
Aug 21 18:38:44 mini kernel: sky2 eth0: MAC parity error
Aug 21 18:48:31 mini kernel: sky2 v1.5 addr 0x90200000 irq 17 Yukon-EC (0xb6) rev 2
Aug 21 18:48:31 mini kernel: sky2 eth0: addr 00:16:cb:a3:91:3c
Aug 21 18:48:32 mini kernel: sky2 eth0: enabling interface
Aug 21 18:48:32 mini kernel: sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
Aug 21 20:53:56 mini kernel: sky2 eth0: tx timeout
Aug 21 20:53:56 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:53:56 mini kernel: sky2 status report lost?
Aug 21 20:54:01 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:01 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:01 mini kernel: sky2 status report lost?
Aug 21 20:54:06 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:06 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:06 mini kernel: sky2 status report lost?
Aug 21 20:54:11 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:11 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:11 mini kernel: sky2 status report lost?
Aug 21 20:54:16 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:16 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:16 mini kernel: sky2 status report lost?
Aug 21 20:54:21 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:21 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:21 mini kernel: sky2 status report lost?
Aug 21 20:54:26 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:26 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:26 mini kernel: sky2 status report lost?
Aug 21 20:54:31 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:31 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:31 mini kernel: sky2 status report lost?
Aug 21 20:54:36 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:36 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:36 mini kernel: sky2 status report lost?
Aug 21 20:54:41 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:41 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:41 mini kernel: sky2 status report lost?
Aug 21 20:54:46 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:46 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:46 mini kernel: sky2 status report lost?
Aug 21 20:54:51 mini kernel: sky2 eth0: tx timeout
Aug 21 20:54:51 mini kernel: sky2 eth0: transmit ring 53 .. 30 report=54 done=54
Aug 21 20:54:51 mini kernel: sky2 status report lost?
Aug 21 20:56:17 mini kernel: sky2 v1.5 addr 0x90200000 irq 17 Yukon-EC (0xb6) rev 2
Aug 21 20:56:17 mini kernel: sky2 eth0: addr 00:16:cb:a3:91:3c
Aug 21 20:56:18 mini kernel: sky2 eth0: enabling interface
Aug 21 20:56:18 mini kernel: sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
This log messgaes are all related to the same problem. At the moment my
userland watchdog reboots the machine after 500 seconds:
(mini) [/var/log] grep watchdog-tg daemon.log
Aug 20 20:42:32 mini watchdog-tg[1763]: No PONG received from 192.168.0.3 (failure 1 of 50)
...
Aug 20 20:50:48 mini watchdog-tg[1763]: No PONG received from 192.168.0.3 (failure 50 of 50)
Aug 20 20:50:48 mini watchdog-tg[1763]: Telling init to reboot and no longer feed watchdog
Aug 21 18:38:49 mini watchdog-tg[1761]: No PONG received from 192.168.0.3 (failure 1 of 50)
...
Aug 21 18:47:07 mini watchdog-tg[1761]: No PONG received from 192.168.0.3 (failure 50 of 50)
Aug 21 18:47:07 mini watchdog-tg[1761]: Telling init to reboot and no longer feed watchdog
Aug 21 20:46:31 mini watchdog-tg[1755]: No PONG received from 192.168.0.3 (failure 1 of 50)
...
Aug 21 20:54:49 mini watchdog-tg[1755]: No PONG received from 192.168.0.3 (failure 50 of 50)
Aug 21 20:54:49 mini watchdog-tg[1755]: Telling init to reboot and no longer feed watchdog
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] IPV6 : segmentation offload not set correctly on TCP children
[not found] ` <20060821222634.GC21790@cip.informatik.uni-erlangen.de>
@ 2006-08-25 22:43 ` Stephen Hemminger
2006-08-25 22:56 ` David Miller
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Stephen Hemminger @ 2006-08-25 22:43 UTC (permalink / raw)
To: Thomas Glanzmann, David S. Miller, Herbert Xu; +Cc: netdev, linux-kernel
TCP over IPV6 would incorrectly inherit the GSO settings.
This would cause kernel to send Tcp Segmentation Offload packets for
IPV6 data to devices that can't handle it. It caused the sky2 driver
to lock http://bugzilla.kernel.org/show_bug.cgi?id=7050
and the e1000 would generate bogus packets. I can't blame the
hardware for gagging if the upper layers feed it garbage.
This was a new bug in 2.6.18 introduced with GSO support.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
--- linux-2.6.orig/net/ipv6/tcp_ipv6.c 2006-08-03 09:09:16.000000000 -0700
+++ linux-2.6/net/ipv6/tcp_ipv6.c 2006-08-25 15:30:31.000000000 -0700
@@ -944,7 +944,7 @@
* comment in that function for the gory details. -acme
*/
- sk->sk_gso_type = SKB_GSO_TCPV6;
+ newsk->sk_gso_type = SKB_GSO_TCPV6;
__ip6_dst_store(newsk, dst, NULL);
newtcp6sk = (struct tcp6_sock *)newsk;
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] IPV6 : segmentation offload not set correctly on TCP children
2006-08-25 22:43 ` [PATCH] IPV6 : segmentation offload not set correctly on TCP children Stephen Hemminger
@ 2006-08-25 22:56 ` David Miller
2006-08-25 23:06 ` Thomas Glanzmann
2006-08-25 23:59 ` Herbert Xu
2 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2006-08-25 22:56 UTC (permalink / raw)
To: shemminger; +Cc: sithglan, herbert, netdev, linux-kernel
From: Stephen Hemminger <shemminger@osdl.org>
Date: Fri, 25 Aug 2006 15:43:53 -0700
> TCP over IPV6 would incorrectly inherit the GSO settings.
> This would cause kernel to send Tcp Segmentation Offload packets for
> IPV6 data to devices that can't handle it. It caused the sky2 driver
> to lock http://bugzilla.kernel.org/show_bug.cgi?id=7050
> and the e1000 would generate bogus packets. I can't blame the
> hardware for gagging if the upper layers feed it garbage.
>
> This was a new bug in 2.6.18 introduced with GSO support.
>
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Good catch. Applied, thanks Stephen.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] IPV6 : segmentation offload not set correctly on TCP children
2006-08-25 22:43 ` [PATCH] IPV6 : segmentation offload not set correctly on TCP children Stephen Hemminger
2006-08-25 22:56 ` David Miller
@ 2006-08-25 23:06 ` Thomas Glanzmann
2006-08-25 23:24 ` Stephen Hemminger
2006-08-25 23:29 ` Stephen Hemminger
2006-08-25 23:59 ` Herbert Xu
2 siblings, 2 replies; 7+ messages in thread
From: Thomas Glanzmann @ 2006-08-25 23:06 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David S. Miller, Herbert Xu, netdev, linux-kernel
Hello Stephen,
thanks for the fix, it fixes the problem for me. I closed the bug. On
which hardware did you reproduce the bug and how did you found it? Did
you use git bisect?
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] IPV6 : segmentation offload not set correctly on TCP children
2006-08-25 23:06 ` Thomas Glanzmann
@ 2006-08-25 23:24 ` Stephen Hemminger
2006-08-25 23:29 ` Stephen Hemminger
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Hemminger @ 2006-08-25 23:24 UTC (permalink / raw)
To: Thomas Glanzmann; +Cc: David S. Miller, Herbert Xu, netdev, linux-kernel
On Sat, 26 Aug 2006 01:06:26 +0200
Thomas Glanzmann <sithglan@stud.uni-erlangen.de> wrote:
> Hello Stephen,
> thanks for the fix, it fixes the problem for me. I closed the bug. On
> which hardware did you reproduce the bug and how did you found it? Did
> you use git bisect?
>
> Thomas
Using sky2 on Intel motherboard and git bisect. But Jesse found same problem
on e1000. Bisect was relatively fast since it was either base net code or driver.
Starting with 2.6.17, everything worked, and latest was busted.
git bisect start net drivers/net/sky2.c
Test was ipv6 slogin, then run dmesg. If that worked then run top and cause
lots of other traffic by just doing a firefox open-tabs to blast lots of connections.
Wanted to induce tcp-ipv6 to get congested.
--
Stephen Hemminger <shemminger@osdl.org>
All non-trivial abstractions, to some degree, are leaky.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] IPV6 : segmentation offload not set correctly on TCP children
2006-08-25 23:06 ` Thomas Glanzmann
2006-08-25 23:24 ` Stephen Hemminger
@ 2006-08-25 23:29 ` Stephen Hemminger
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Hemminger @ 2006-08-25 23:29 UTC (permalink / raw)
To: Thomas Glanzmann; +Cc: David S. Miller, Herbert Xu, netdev, linux-kernel
On Sat, 26 Aug 2006 01:06:26 +0200
Thomas Glanzmann <sithglan@stud.uni-erlangen.de> wrote:
> Hello Stephen,
> thanks for the fix, it fixes the problem for me. I closed the bug. On
> which hardware did you reproduce the bug and how did you found it? Did
> you use git bisect?
>
> Thomas
Finding the line was luck. I spotted similar (but correct) code in
DCCP over IPV6.
--
Stephen Hemminger <shemminger@osdl.org>
All non-trivial abstractions, to some degree, are leaky.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] IPV6 : segmentation offload not set correctly on TCP children
2006-08-25 22:43 ` [PATCH] IPV6 : segmentation offload not set correctly on TCP children Stephen Hemminger
2006-08-25 22:56 ` David Miller
2006-08-25 23:06 ` Thomas Glanzmann
@ 2006-08-25 23:59 ` Herbert Xu
2 siblings, 0 replies; 7+ messages in thread
From: Herbert Xu @ 2006-08-25 23:59 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Thomas Glanzmann, David S. Miller, netdev, linux-kernel
On Fri, Aug 25, 2006 at 03:43:53PM -0700, Stephen Hemminger wrote:
> TCP over IPV6 would incorrectly inherit the GSO settings.
> This would cause kernel to send Tcp Segmentation Offload packets for
> IPV6 data to devices that can't handle it. It caused the sky2 driver
> to lock http://bugzilla.kernel.org/show_bug.cgi?id=7050
> and the e1000 would generate bogus packets. I can't blame the
> hardware for gagging if the upper layers feed it garbage.
>
> This was a new bug in 2.6.18 introduced with GSO support.
>
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Thanks for catching this Stephen!
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-08-26 0:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-21 21:22 sky2 doesn't receive any packages after I ssh in via ipv6 and edit a file in vim (reproducable) Thomas Glanzmann
[not found] ` <20060821150231.31a947d4@localhost.localdomain>
[not found] ` <20060821222634.GC21790@cip.informatik.uni-erlangen.de>
2006-08-25 22:43 ` [PATCH] IPV6 : segmentation offload not set correctly on TCP children Stephen Hemminger
2006-08-25 22:56 ` David Miller
2006-08-25 23:06 ` Thomas Glanzmann
2006-08-25 23:24 ` Stephen Hemminger
2006-08-25 23:29 ` Stephen Hemminger
2006-08-25 23:59 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®