public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* TG3 doesn't work in kernel 2.4.27
@ 2004-08-14 16:53 Tetsuo Handa
  2004-08-15 19:57 ` Marcelo Tosatti
  0 siblings, 1 reply; 7+ messages in thread
From: Tetsuo Handa @ 2004-08-14 16:53 UTC (permalink / raw)
  To: linux-kernel

Hello,

I'm using tg3.o with DHCP and PXE boot environment
and I updated from 2.4.26 to 2.4.27,
but tg3.o became not working with IBM BladeCenter.

I think tg3.o in 2.4.27 is generating something broken arp.
When I run 'arp' in the DHCP server (who doesn't use tg3.o),
the entry with <incomplete> status appears.
The IP address which has the <incomplete> status is
the DHCP client's (who is using tg3.o in 2.4.27).

The workaround I took is to replace tg3.h and tg3.c
in 2.4.27 with the files in 2.4.26, and it seems working fine.

Thanks.

--
Tetsuo Handa

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TG3 doesn't work in kernel 2.4.27
  2004-08-14 16:53 TG3 doesn't work in kernel 2.4.27 Tetsuo Handa
@ 2004-08-15 19:57 ` Marcelo Tosatti
  2004-08-15 21:59   ` David S. Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Marcelo Tosatti @ 2004-08-15 19:57 UTC (permalink / raw)
  To: Tetsuo Handa; +Cc: linux-kernel, davem

On Sun, Aug 15, 2004 at 01:53:49AM +0900, Tetsuo Handa wrote:
> Hello,
> 
> I'm using tg3.o with DHCP and PXE boot environment
> and I updated from 2.4.26 to 2.4.27,
> but tg3.o became not working with IBM BladeCenter.
> 
> I think tg3.o in 2.4.27 is generating something broken arp.
> When I run 'arp' in the DHCP server (who doesn't use tg3.o),
> the entry with <incomplete> status appears.
> The IP address which has the <incomplete> status is
> the DHCP client's (who is using tg3.o in 2.4.27).
> 
> The workaround I took is to replace tg3.h and tg3.c
> in 2.4.27 with the files in 2.4.26, and it seems working fine.

David Miller is the tg3 maintainer, he will help you.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TG3 doesn't work in kernel 2.4.27
  2004-08-15 19:57 ` Marcelo Tosatti
@ 2004-08-15 21:59   ` David S. Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David S. Miller @ 2004-08-15 21:59 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: a5497108, linux-kernel

On Sun, 15 Aug 2004 16:57:58 -0300
Marcelo Tosatti <marcelo.tosatti@cyclades.com> wrote:

> On Sun, Aug 15, 2004 at 01:53:49AM +0900, Tetsuo Handa wrote:
> > Hello,
> > 
> > I'm using tg3.o with DHCP and PXE boot environment
> > and I updated from 2.4.26 to 2.4.27,
> > but tg3.o became not working with IBM BladeCenter.
> > 
> > I think tg3.o in 2.4.27 is generating something broken arp.
> > When I run 'arp' in the DHCP server (who doesn't use tg3.o),
> > the entry with <incomplete> status appears.
> > The IP address which has the <incomplete> status is
> > the DHCP client's (who is using tg3.o in 2.4.27).
> > 
> > The workaround I took is to replace tg3.h and tg3.c
> > in 2.4.27 with the files in 2.4.26, and it seems working fine.
> 
> David Miller is the tg3 maintainer, he will help you.

Does manual IP configuration work?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TG3 doesn't work in kernel 2.4.27
       [not found] <20040817110002.32088.38168.Mailman@linux.us.dell.com>
@ 2004-08-17 12:30 ` Tetsuo Handa
  2004-08-17 14:03   ` John W. Linville
  2004-08-17 18:02   ` David S. Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Tetsuo Handa @ 2004-08-17 12:30 UTC (permalink / raw)
  To: davem, marcelo.tosatti, linux-kernel

Hello, David.

On Mon, 16 Aug 2004 14:38:24 -0700
"David S. Miller" wrote:
> On Mon, 16 Aug 2004 20:51:03 +0900
> Tetsuo Handa <a5497108@anet.ne.jp> wrote:
> 
> >  From 2.4.26 till 2.4.27-rc3 were all OK.
> > This trouble happens with 2.4.27-rc4 and later.
> 
> It's Sun's buggy 5704 Fiber auto-negotiation changes.
> 
> Here is a hacky possible fix, can you try it?
> 
> ===== drivers/net/tg3.c 1.190 vs edited =====

I compiled as a UP kernel but it wasn't the cause.
Also, I patched the above fix on 2.4.27-rc4 and
compiled as a UP kernel, but didn't work.

Now I would like to mail to Marcelo Tosatti, too.

Current Status:
 * The driver is tg3.o
 * The problem began with 2.4.27-rc4.
 * DHCP fails.
 * Static IP assignment shows no error, but network is still unreachable.
   ('ifconfig' and 'route add default gw' by hand)
 * DHCP packets are unreachable to DHCP server.
   (I don't know which options are used for tcpdump.
    I hear that 2.4.26 worked but 2.4.27 didn't. PXE's DHCP works. )
 * 'arp' at DHCP server shows a line with <incomplete> status.
 * Compiling as a UP kernel didn't solve the problem.
   (The box is Xeon 3.2 GHz / 1 CPU with hyper-threading)
 * Compiling as a UP kernel with the above fix didn't solve.
 * The error message "HW autoneg failed" appears.
   (But (I think) this message doesn't exist in tg3.c for 2.4.26,
    so I don't know autoneg were successful or not in 2.4.26,
    if helpful I will insert printk() and try.
    The link ups (if 2.4.26) 1000Mbps full duplex, off for TX and off for RX.)

Regards...
---
Tetsuo Handa

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TG3 doesn't work in kernel 2.4.27
  2004-08-17 12:30 ` Tetsuo Handa
@ 2004-08-17 14:03   ` John W. Linville
  2004-08-17 17:45     ` David S. Miller
  2004-08-17 18:02   ` David S. Miller
  1 sibling, 1 reply; 7+ messages in thread
From: John W. Linville @ 2004-08-17 14:03 UTC (permalink / raw)
  To: dev_null; +Cc: davem, marcelo.tosatti, linux-kernel

Tetsuo Handa wrote:

> I compiled as a UP kernel but it wasn't the cause.
> Also, I patched the above fix on 2.4.27-rc4 and
> compiled as a UP kernel, but didn't work.
> 

Testsuo,

Please send the output of `lspci -vv`.  It might be helpful to know 
exactly which device is involved.

David,

FWIW, I think I'm seeing the same problem with the BCM5751 built-in to 
my HP xw4200...

John

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TG3 doesn't work in kernel 2.4.27
  2004-08-17 14:03   ` John W. Linville
@ 2004-08-17 17:45     ` David S. Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David S. Miller @ 2004-08-17 17:45 UTC (permalink / raw)
  To: John W. Linville; +Cc: dev_null, marcelo.tosatti, linux-kernel

On Tue, 17 Aug 2004 10:03:34 -0400
"John W. Linville" <linville@tuxdriver.com> wrote:

> Tetsuo Handa wrote:
> 
> > I compiled as a UP kernel but it wasn't the cause.
> > Also, I patched the above fix on 2.4.27-rc4 and
> > compiled as a UP kernel, but didn't work.
> > 
> 
> Testsuo,
> 
> Please send the output of `lspci -vv`.  It might be helpful to know 
> exactly which device is involved.
> 
> David,
> 
> FWIW, I think I'm seeing the same problem with the BCM5751 built-in to 
> my HP xw4200...

This bug can only affect 5704 chips with fiber interfaces.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TG3 doesn't work in kernel 2.4.27
  2004-08-17 12:30 ` Tetsuo Handa
  2004-08-17 14:03   ` John W. Linville
@ 2004-08-17 18:02   ` David S. Miller
  1 sibling, 0 replies; 7+ messages in thread
From: David S. Miller @ 2004-08-17 18:02 UTC (permalink / raw)
  To: dev_null; +Cc: a5497108, marcelo.tosatti, linux-kernel

On Tue, 17 Aug 2004 21:30:06 +0900
Tetsuo Handa <a5497108@anet.ne.jp> wrote:

> I compiled as a UP kernel but it wasn't the cause.
> Also, I patched the above fix on 2.4.27-rc4 and
> compiled as a UP kernel, but didn't work.

Just add this patch, it will fix the problem but it
is not the nicest fix.  I'll work on a better one.

It just disables the new Sun code, and uses the old
fiber handling for 5704.

===== drivers/net/tg3.c 1.193 vs edited =====
--- 1.193/drivers/net/tg3.c	2004-08-16 18:01:30 -07:00
+++ edited/drivers/net/tg3.c	2004-08-16 18:46:58 -07:00
@@ -5415,13 +5398,13 @@
 	 * is enabled.
 	 */
 	tw32_f(MAC_LOW_WMARK_MAX_RX_FRAME, 2);
-
+#if 0
 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
 	    (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
 		/* Use hardware link auto-negotiation */
 		tp->tg3_flags2 |= TG3_FLG2_HW_AUTONEG;
 	}
-
+#endif
 	err = tg3_setup_phy(tp, 1);
 	if (err)
 		return err;

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-17 18:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-14 16:53 TG3 doesn't work in kernel 2.4.27 Tetsuo Handa
2004-08-15 19:57 ` Marcelo Tosatti
2004-08-15 21:59   ` David S. Miller
     [not found] <20040817110002.32088.38168.Mailman@linux.us.dell.com>
2004-08-17 12:30 ` Tetsuo Handa
2004-08-17 14:03   ` John W. Linville
2004-08-17 17:45     ` David S. Miller
2004-08-17 18:02   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox