netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* forcedeth and kernel 2.6.5 has "no link"
@ 2004-04-16 18:38 John Wong
  2004-04-16 19:06 ` Manfred Spraul
  0 siblings, 1 reply; 3+ messages in thread
From: John Wong @ 2004-04-16 18:38 UTC (permalink / raw)
  To: netdev; +Cc: c-d.hailfinger.kernel.2004, manfred

Under kernel 2.6.4, ethtool reports:

Settings for eth0:
        Link detected: yes

This is with forcedeth 0.23

Under kernel 2.6.5, ethtool reports:

Settings for eth0:
        Supports Wake-on: g
        Wake-on: d
        Link detected: no

This is with forcedeth 0.25

With 2.6.5, it doesn't see an link but there is one.  The connection is
quite slow, so I'm thinking it may be using 10baseT-HD instead of
100baseTx-FD.  The forcedeth driver does not appear to support
autonegotiation.

http://bugzilla.kernel.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=OPEN&bug_status=ASSIGNED&bug_status=REOPENED&field0-0-0=product&type0-0-0=substring&value0-0-0=forcedeth&field0-0-1=component&type0-0-1=substring&value0-0-1=forcedeth&field0-0-2=short_desc&type0-0-2=substring&value0-0-2=forcedeth&field0-0-3=status_whiteboard&type0-0-3=substring&value0-0-3=forcedeth

I had submitted the bugzilla id 2283.  2496 is something that I am
experiencing too.

John

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

* Re: forcedeth and kernel 2.6.5 has "no link"
  2004-04-16 18:38 forcedeth and kernel 2.6.5 has "no link" John Wong
@ 2004-04-16 19:06 ` Manfred Spraul
  2004-04-17 20:20   ` John Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Manfred Spraul @ 2004-04-16 19:06 UTC (permalink / raw)
  To: John Wong; +Cc: c-d.hailfinger.kernel.2004, netdev

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

John Wong wrote:

>Under kernel 2.6.4, ethtool reports:
>
>Settings for eth0:
>        Link detected: yes
>
>This is with forcedeth 0.23
>
>Under kernel 2.6.5, ethtool reports:
>
>Settings for eth0:
>        Supports Wake-on: g
>        Wake-on: d
>        Link detected: no
>
>This is with forcedeth 0.25
>  
>
Odd. I'm not aware of any changes that might cause that difference. I'll 
check the diff.

>I had submitted the bugzilla id 2283.  2496 is something that I am
>experiencing too.
>  
>
Could you try the attached patch?


--
    Manfred

[-- Attachment #2: patch-forced-test --]
[-- Type: text/plain, Size: 607 bytes --]

--- 2.6/drivers/net/forcedeth.c	2004-04-10 09:52:45.000000000 +0200
+++ build-2.6/drivers/net/forcedeth.c	2004-04-13 18:58:59.000000000 +0200
@@ -1263,6 +1263,14 @@
 				dev->name, id1, id2, i);
 		np->phyaddr = i;
 
+		if (id1 == 0x0015 && (id2 &0xfff0) == 0xf440) {
+			printk(KERN_DEBUG "%s: open: Found ICS, applying workaround.\n", dev->name);
+        		/* workaround for ICS1893 PHY */
+            		mii_rw(dev, i, 0x0018, 0xD200);
+			set_current_state(TASK_UNINTERRUPTIBLE);
+			schedule_timeout(HZ);
+		}
+
 		spin_lock_irq(&np->lock);
 		nv_update_linkspeed(dev);
 		spin_unlock_irq(&np->lock);

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

* Re: forcedeth and kernel 2.6.5 has "no link"
  2004-04-16 19:06 ` Manfred Spraul
@ 2004-04-17 20:20   ` John Wong
  0 siblings, 0 replies; 3+ messages in thread
From: John Wong @ 2004-04-17 20:20 UTC (permalink / raw)
  To: Manfred Spraul; +Cc: c-d.hailfinger.kernel.2004, netdev

Hi,

After applying the patch to 2.6.5, I still get the timeouts:

NETDEV WATCHDOG: eth1: transmit timed out
eth1: tx_timeout: dead entries!
NETDEV WATCHDOG: eth1: transmit timed out
eth1: tx_timeout: dead entries!

John

On Fri, Apr 16, 2004 at 09:06:40PM +0200, Manfred Spraul wrote:
> John Wong wrote:
> 
> >Under kernel 2.6.4, ethtool reports:
> >
> >Settings for eth0:
> >       Link detected: yes
> >
> >This is with forcedeth 0.23
> >
> >Under kernel 2.6.5, ethtool reports:
> >
> >Settings for eth0:
> >       Supports Wake-on: g
> >       Wake-on: d
> >       Link detected: no
> >
> >This is with forcedeth 0.25
> > 
> >
> Odd. I'm not aware of any changes that might cause that difference. I'll 
> check the diff.
> 
> >I had submitted the bugzilla id 2283.  2496 is something that I am
> >experiencing too.
> > 
> >
> Could you try the attached patch?
> 
> 
> --
>    Manfred

> --- 2.6/drivers/net/forcedeth.c	2004-04-10 09:52:45.000000000 +0200
> +++ build-2.6/drivers/net/forcedeth.c	2004-04-13 18:58:59.000000000 +0200
> @@ -1263,6 +1263,14 @@
>  				dev->name, id1, id2, i);
>  		np->phyaddr = i;
>  
> +		if (id1 == 0x0015 && (id2 &0xfff0) == 0xf440) {
> +			printk(KERN_DEBUG "%s: open: Found ICS, applying workaround.\n", dev->name);
> +        		/* workaround for ICS1893 PHY */
> +            		mii_rw(dev, i, 0x0018, 0xD200);
> +			set_current_state(TASK_UNINTERRUPTIBLE);
> +			schedule_timeout(HZ);
> +		}
> +
>  		spin_lock_irq(&np->lock);
>  		nv_update_linkspeed(dev);
>  		spin_unlock_irq(&np->lock);

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

end of thread, other threads:[~2004-04-17 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 18:38 forcedeth and kernel 2.6.5 has "no link" John Wong
2004-04-16 19:06 ` Manfred Spraul
2004-04-17 20:20   ` John Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).