Skip to contentSkip to conversation

net: skge breakage on 2.6.24-rc1

DISCUSSION Heikki Orsila 3 participants 5 messages Nov 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

After some bisecting, I found that net skge driver broke on

commit 7fb7ac241162dc51ec0f7644d4a97b2855213c32

My network card is:

0000:00:0e.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)

Linux cheradenine 2.6.24-rc1-dirty #15 Wed Nov 7 23:39:28 EET 2007 x86_64 GNU/Linux

Signature · 3 lines
Heikki Orsila			Barbie's law:
[email protected]		"Math is hard, let's go shopping!"
http://www.iki.fi/shd
#1 lore raw
Quoted 9 lines · Heikki Orsila

After some bisecting, I found that net skge driver broke on

commit 7fb7ac241162dc51ec0f7644d4a97b2855213c32

My network card is:

0000:00:0e.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)

Linux cheradenine 2.6.24-rc1-dirty #15 Wed Nov 7 23:39:28 EET 2007 x86_64 GNU/Linux

Sorry, forgot to say what the problem is. Doing

nc host port < /dev/zero

on a sending machine (not skge) to an skge machine that is receiving:

nc -l -p port >/dev/null

with ~60 MiB/s speed, causes the interface go malfunct. A slow transfer doesn't cause a problem.

Also, after some fiddling, I noticed that not changing the register write order on patch:

+       skge_write32(hw, RB_ADDR(q, RB_END), end);
        skge_write32(hw, RB_ADDR(q, RB_WP), start);
        skge_write32(hw, RB_ADDR(q, RB_RP), start);

- skge_write32(hw, RB_ADDR(q, RB_END), end);

fixes the visible effect.. Possibly not the root cause of the problem, but changing the order back fixes networking here.

Signature · 3 lines
Heikki Orsila			Barbie's law:
[email protected]		"Math is hard, let's go shopping!"
http://www.iki.fi/shd
#2 lore raw
Quoted 30 lines · Heikki Orsila
Quoted 9 lines · Heikki Orsila

After some bisecting, I found that net skge driver broke on

commit 7fb7ac241162dc51ec0f7644d4a97b2855213c32

My network card is:

0000:00:0e.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)

Linux cheradenine 2.6.24-rc1-dirty #15 Wed Nov 7 23:39:28 EET 2007 x86_64 GNU/Linux

Sorry, forgot to say what the problem is. Doing

nc host port < /dev/zero

on a sending machine (not skge) to an skge machine that is receiving:

nc -l -p port >/dev/null

with ~60 MiB/s speed, causes the interface go malfunct. A slow transfer doesn't cause a problem.

Also, after some fiddling, I noticed that not changing the register write order on patch:

(quoted diff) +1 -1
+       skge_write32(hw, RB_ADDR(q, RB_END), end);
        skge_write32(hw, RB_ADDR(q, RB_WP), start);
        skge_write32(hw, RB_ADDR(q, RB_RP), start);
-       skge_write32(hw, RB_ADDR(q, RB_END), end);
Quoted 2 lines

fixes the visible effect.. Possibly not the root cause of the problem, but changing the order back fixes networking here.

Please put all of the relevant information into the bugzilla entry at
http://bugzilla.kernel.org/show_bug.cgi?id=9321

Thanks,
Rafael

#3 lore raw
Quoted 6 lines · On Wed, 7 Nov 2007 23:50:30 +0100 "Rafael J. Wysocki" <[email protected]> wrote:
Quoted 4 lines · Heikki Orsila
Quoted 3 lines · Heikki Orsila

After some bisecting, I found that net skge driver broke on

commit 7fb7ac241162dc51ec0f7644d4a97b2855213c32

Thanks for doing the bisection. It's a good idea to cc the author of the offending patch after having done this.

Quoted 25 lines
Quoted 25 lines
Quoted 5 lines

My network card is:

0000:00:0e.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)

Linux cheradenine 2.6.24-rc1-dirty #15 Wed Nov 7 23:39:28 EET 2007 x86_64 GNU/Linux

Sorry, forgot to say what the problem is. Doing

nc host port < /dev/zero

on a sending machine (not skge) to an skge machine that is receiving:

nc -l -p port >/dev/null

with ~60 MiB/s speed, causes the interface go malfunct. A slow transfer doesn't cause a problem.

Also, after some fiddling, I noticed that not changing the register write order on patch:

(quoted diff) +1 -1
+       skge_write32(hw, RB_ADDR(q, RB_END), end);
        skge_write32(hw, RB_ADDR(q, RB_WP), start);
        skge_write32(hw, RB_ADDR(q, RB_RP), start);
-       skge_write32(hw, RB_ADDR(q, RB_END), end);
Quoted 5 lines
Quoted 2 lines

fixes the visible effect.. Possibly not the root cause of the problem, but changing the order back fixes networking here.

Please put all of the relevant information into the bugzilla entry at
http://bugzilla.kernel.org/show_bug.cgi?id=9321

Please cc [email protected] on networking-related discussions.

#4 lore raw
Quoted 10 lines · Andrew Morton
Quoted 6 lines · On Wed, 7 Nov 2007 23:50:30 +0100 "Rafael J. Wysocki" <[email protected]> wrote:
Quoted 4 lines · Heikki Orsila
Quoted 3 lines · Heikki Orsila

After some bisecting, I found that net skge driver broke on

commit 7fb7ac241162dc51ec0f7644d4a97b2855213c32

Thanks for doing the bisection. It's a good idea to cc the author of the offending patch after having done this.

Sorry, I just forgot this time. Just after the bug report I did mail the author in private (out of the list).

Signature · 3 lines
Heikki Orsila			Barbie's law:
[email protected]		"Math is hard, let's go shopping!"
http://www.iki.fi/shd