linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ion Badulescu <ionut@cs.columbia.edu>
To: Tom Sightler <ttsig@tuxyturvy.com>
Cc: <linux-kernel@vger.kernel.org>, <arjan@fenrus.demon.nl>
Subject: Re: xircom_cb problems
Date: Thu, 7 Jun 2001 01:31:26 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.33.0106070118320.22593-100000@age.cs.columbia.edu> (raw)
In-Reply-To: <991884643.3b1ef5637fca7@eargle.com>

On Wed, 6 Jun 2001, Tom Sightler wrote:

> At home where I have a 10Mb half-duplex hub connection all of the drivers work
> properly.

All right, that's expected.

> At work where I have a 10/100Mb full-duplex switch connection the drivers work
> exactly as I described before:
> 
> 2.4.4-ac11 -- mostly works fine -- minor problems awaking from sleep

Can you run some performance testing with this driver, though? The speed
of ftp transfers in both directions would be a good measure. The reason
I'm asking is because we saw really poor performance on 100Mb full-duplex,
something like 200-300KB/s when receiving.

> 2.4.5-ac9 -- keeps logging "Link is absent" then "Linux is 100 mbit" over and
> over when trying to pull an IP address via dhcp using pump or dhcpcd. 

pump likes to bring the interface up and down and up and down, so those 
messages are not necessarily unusual.

Hmm. I have an idea though. In set_half_duplex, we shouldn't touch the MII 
if the new autoneg value is the same as the old one. It should certainly 
help with things like pump. Arjan, what do you think?

> Interestingly manually setting an IP address seems to work fine with
> this driver.

That's very good to know. So most likely the repeated up/down that pump's 
doing is upsetting the card.

> I'll do this tomorrow morning when I get in and report back.  Thanks
> for the help, I'd really like to see this card get stable as we have
> it in a lot of our laptops here at work.

And we'd like to thank you for your patience and for your help diagnosing 
the problem. Let's hope we can solve it quickly..

I'm attaching a small patch that does what I proposed above -- can you 
give it a try as well?

Thanks,
Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.
------------------------
--- linux-2.4-ac/drivers/net/pcmcia/xircom_cb.c.old	Thu Jun  7 01:27:07 2001
+++ linux-2.4-ac/drivers/net/pcmcia/xircom_cb.c	Thu Jun  7 01:28:13 2001
@@ -1092,13 +1092,15 @@
 
 	/* tell the MII not to advertise 10/100FDX */
 	tmp = mdio_read(card, 0, 4);
-	printk("xircom_cb: capabilities changed from %#x to %#x\n",
-	       tmp, tmp & ~0x140);
-	tmp &= ~0x140;
-	mdio_write(card, 0, 4, tmp);
-	/* restart autonegotiation */
-	tmp = mdio_read(card, 0, 0);
-	mdio_write(card, 0, 0, tmp | 0x1200);
+	if (tmp != tmp & ~0x140) {
+		printk("xircom_cb: capabilities changed from %#x to %#x\n",
+		       tmp, tmp & ~0x140);
+		tmp &= ~0x140;
+		mdio_write(card, 0, 4, tmp);
+		/* restart autonegotiation */
+		tmp = mdio_read(card, 0, 0);
+		mdio_write(card, 0, 0, tmp | 0x1200);
+	}
 
 	if (rx)
 		activate_receiver(card);


  reply	other threads:[~2001-06-07  8:32 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-05 22:49 Linux 2.4.5-ac9 Alan Cox
2001-06-06  2:03 ` Keith Owens
2001-06-06  4:32 ` David Ford
2001-06-06  4:39   ` Jeff Garzik
2001-06-06  4:55     ` David Ford
2001-06-06  5:25       ` Keith Owens
2001-06-06  6:08   ` SCSI is as SCSI don't Alan Olsen
2001-06-06  5:39     ` Greg KH
2001-06-06  8:04       ` Alan Olsen
2001-06-06  6:20     ` Alan Olsen
2001-06-06  7:49     ` Alan Cox
2001-06-07  0:00       ` Alan Olsen
2001-06-06  9:15 ` Linux 2.4.5-ac9 Thomas Sailer
2001-06-06 21:43   ` Alan Cox
2001-06-06 10:51 ` Christoph Hellwig
2001-06-06 11:41   ` Thomas Sailer
2001-06-06 13:40     ` Christoph Hellwig
2001-06-06 14:49 ` Chris Liebman
2001-06-06 17:20 ` Tom Sightler
2001-06-06 21:54   ` Ion Badulescu
2001-06-07  3:30     ` xircom_cb problems Tom Sightler
2001-06-07  8:31       ` Ion Badulescu [this message]
2001-06-07 18:40         ` Tom Sightler
2001-06-07 20:29           ` Ion Badulescu
2001-06-08 14:11             ` Tom Sightler
2001-06-08 20:34               ` Ion Badulescu
2001-06-09  1:36                 ` Tom Sightler
2001-06-06 22:44   ` Linux 2.4.5-ac9 arjan
2001-06-08 17:45 xircom_cb problems Tom Sightler
2001-06-08 17:58 ` Arjan van de Ven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.33.0106070118320.22593-100000@age.cs.columbia.edu \
    --to=ionut@cs.columbia.edu \
    --cc=arjan@fenrus.demon.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ttsig@tuxyturvy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).