* rtl8139too in 2.4.5
@ 2001-06-02 12:30 Andries.Brouwer
2001-06-02 12:36 ` Jeff Garzik
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andries.Brouwer @ 2001-06-02 12:30 UTC (permalink / raw)
To: jgarzik, linux-kernel
My RTL8139 (Identified 8139 chip type 'RTL-8139A')
was fine in 2.4.3 and doesnt work in 2.4.5.
Copying the 2.4.3 version of 8139too.c makes things work again.
Since lots of people complained about this, I have not tried to
debug - maybe a fixed version already exists?
One remark:
2.4.5 says "eth1: media is unconnected, link down, or incompatible connection"
coming from 8139too.c line 1367. The code there is
if (mii_reg5) {
printk(KERN_INFO"%s: Setting %s%s-duplex based on"
" auto-negotiated partner ability %4.4x.\n", dev->name,
mii_reg5 == 0 ? "" :
(mii_reg5 & 0x0180) ? "100mbps " : "10mbps ",
tp->full_duplex ? "full" : "half", mii_reg5);
} else {
printk(KERN_INFO"%s: media is unconnected, link down, "
"or incompatible connection\n",
dev->name);
}
where mii_reg5 is tested against zero inside a conditional
where we know that it is nonzero.
Probably the outer test is wrong.
Andries
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtl8139too in 2.4.5
2001-06-02 12:30 rtl8139too in 2.4.5 Andries.Brouwer
@ 2001-06-02 12:36 ` Jeff Garzik
2001-06-02 16:30 ` Jaswinder Singh
2001-06-03 16:41 ` Rogier Wolff
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2001-06-02 12:36 UTC (permalink / raw)
To: Andries.Brouwer; +Cc: linux-kernel
Andries.Brouwer@cwi.nl wrote:
>
> My RTL8139 (Identified 8139 chip type 'RTL-8139A')
> was fine in 2.4.3 and doesnt work in 2.4.5.
> Copying the 2.4.3 version of 8139too.c makes things work again.
>
> Since lots of people complained about this, I have not tried to
> debug - maybe a fixed version already exists?
>
> One remark:
> 2.4.5 says "eth1: media is unconnected, link down, or incompatible connection"
> coming from 8139too.c line 1367. The code there is
>
> if (mii_reg5) {
> printk(KERN_INFO"%s: Setting %s%s-duplex based on"
> " auto-negotiated partner ability %4.4x.\n", dev->name,
> mii_reg5 == 0 ? "" :
> (mii_reg5 & 0x0180) ? "100mbps " : "10mbps ",
> tp->full_duplex ? "full" : "half", mii_reg5);
> } else {
> printk(KERN_INFO"%s: media is unconnected, link down, "
> "or incompatible connection\n",
> dev->name);
> }
>
> where mii_reg5 is tested against zero inside a conditional
> where we know that it is nonzero.
> Probably the outer test is wrong.
good spotting, though, it's the inner test that's wrong, and surrounding
logic. If the link partner is not advertising anything at all, mii_reg5
will be zero. But, if we are forcing media type, mii_reg5 might be zero
and we don't care, so people get a misinformative message. Not the core
problem (working on it) but a bug nonetheless.
Jeff
--
Jeff Garzik | Echelon words of the day, from The Register:
Building 1024 | FRU Lebed HALO Spetznaz Al Amn al-Askari Glock 26
MandrakeSoft | Steak Knife Kill the President anarchy echelon
| nuclear assassinate Roswell Waco World Trade Center
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtl8139too in 2.4.5
2001-06-02 12:30 rtl8139too in 2.4.5 Andries.Brouwer
2001-06-02 12:36 ` Jeff Garzik
@ 2001-06-02 16:30 ` Jaswinder Singh
2001-06-03 16:41 ` Rogier Wolff
2 siblings, 0 replies; 4+ messages in thread
From: Jaswinder Singh @ 2001-06-02 16:30 UTC (permalink / raw)
To: Andries.Brouwer, linux-kernel; +Cc: Jaswinder Singh
<Andries.Brouwer@cwi.nl> wrote :
> My RTL8139 (Identified 8139 chip type 'RTL-8139A')
> was fine in 2.4.3 and doesnt work in 2.4.5.
> Copying the 2.4.3 version of 8139too.c makes things work again.
>
but my old RTL8139 is working fine under 2.4.5 , without any changes.
Jaswinder.
--
These are my opinions not 3Di.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtl8139too in 2.4.5
2001-06-02 12:30 rtl8139too in 2.4.5 Andries.Brouwer
2001-06-02 12:36 ` Jeff Garzik
2001-06-02 16:30 ` Jaswinder Singh
@ 2001-06-03 16:41 ` Rogier Wolff
2 siblings, 0 replies; 4+ messages in thread
From: Rogier Wolff @ 2001-06-03 16:41 UTC (permalink / raw)
To: Andries.Brouwer; +Cc: jgarzik, linux-kernel
Andries.Brouwer@cwi.nl wrote:
> My RTL8139 (Identified 8139 chip type 'RTL-8139A')
> was fine in 2.4.3 and doesnt work in 2.4.5.
> Copying the 2.4.3 version of 8139too.c makes things work again.
>
> Since lots of people complained about this, I have not tried to
> debug - maybe a fixed version already exists?
We upgraded to 2.4.5-ac2 for some test, noted that the ethernet card
was agian in 6-packets-per-second mode (i.e. very slow) and then
continued to 2.4.5-ac4 where the driver was reverted to the one in
2.4.3. That worked.
Roger.
--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots.
* There are also old, bald pilots.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-06-03 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-02 12:30 rtl8139too in 2.4.5 Andries.Brouwer
2001-06-02 12:36 ` Jeff Garzik
2001-06-02 16:30 ` Jaswinder Singh
2001-06-03 16:41 ` Rogier Wolff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox