All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Feeney <james@nurealm.net>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: Realtek and the Linux r8169 crew <netdev@vger.kernel.org>
Subject: Re: r8169 - it's dead jim
Date: Wed, 27 Nov 2013 21:02:58 -0700	[thread overview]
Message-ID: <5296C072.4070000@nurealm.net> (raw)
In-Reply-To: <20131124005022.GA6299@electric-eye.fr.zoreil.com>

Hi Francois

> Which one exactly ?

Sorry - just based upon a Google search, this problem with the card not
recognizing that a cable has been plugged into the interface, seems to have come
up off and on for a while, many years.

> blah ?

"<blah>" - referring to the network interface name, in my case "enp22s0".  This
interface is a Netgear "Gigabit PC Card", model GA511, into a Thinkpad T60,
acting as a router.

> The r8169 driver is the same in v3.12 and v3.12.1. Either some userspace
> application works in your back or your device experienced a runtime
> suspend / resume cycle where it previously didn't.

That would seem to make sense.  After some more problems with the interface, I
later noticed that having the card come-up at 1000Mb/s and Full duplex was not
enough to indicate that the card was working.  When the interface was just
handling ping packets it seemed to work fine.  But then, whenever there was a
file transfer - downloading some email or a large file, for instance - the
interface seems to "choke".  Watching a repeated "ethtool enp22s0", the link
speed and duplex would change constantly, dropping down to 10Mb/s and Half
duplex, then up to 100Mb/s and Full duplex, than back down.  If the file
transfers were halted, so that nothing more than ping was going through the
interface, the speed and duplex would come back up, to 1000Mb/s and Full duplex.
 Practically, the interface was unusable, and I swapped-out the card for an
Intel Pro 100, which works fine.   So the problem would then seem to have
nothing to do with the PC Card hardware on the Thinkpad.

> What do you want exactly ? 10 Mb/s, 100 Mb/s ? Limited / no advertising ?

Well, according to "ethtool", the card advertises up to 1000Mb/s, Full duplex,
and Auto-negotiation.  It just seems that it should not constantly try to
re-configure itself.  I have not studied the code to find-out what would trigger
a re-negotiation, or trigger a suspend/resume.

> The patch is badly broken.

Sorry - I haven't tried to re-compile the driver, since it was easier to just
swap-out the card, for another with a different driver.

Maybe there is a simple way to modify the driver to "lock" the configuration?
Or ... ?

If you have another patch, I can plug the card back in and try it out.


Thanks

James

  parent reply	other threads:[~2013-11-28  4:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-23 19:46 r8169 - it's dead jim James Feeney
2013-11-24  0:07 ` Holger Hoffstaette
2013-11-24  0:50 ` Francois Romieu
2013-11-27 23:14   ` Francois Romieu
2013-11-28  4:02   ` James Feeney [this message]
2013-11-30 20:39     ` Francois Romieu
2013-11-30 21:06       ` David Miller
2013-11-30 22:18         ` Francois Romieu

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=5296C072.4070000@nurealm.net \
    --to=james@nurealm.net \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.