Bug 166490 - gentoo-sources 2.6.20-r2 incorrectly detects speed of line of network card
Bug#: 166490 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dsd@gentoo.org Reported By: eero@pronics.com
Component: Core system
URL: 
Summary: gentoo-sources 2.6.20-r2 incorrectly detects speed of line of network card
Keywords:  
Status Whiteboard: linux-2.6.20-regression
Opened: 2007-02-12 12:06 0000
Description:   Opened: 2007-02-12 12:06 0000
Network card is rtl-8169 which is gigabit ethernet card, but in this kernel
it is impossible use faster speed because line is detected of 10mbps.

This might be upstream bug, but I have no contact to kernel developers.

Reproducible: Always

------- Comment #1 From Daniel Drake 2007-02-24 18:27:23 0000 -------
Please post some evidence of the error (e.g. kernel logs or whereever you are
reading the speed from).
Is this reproducible on the latest development kernel, currently 2.6.21-rc1?

------- Comment #2 From Eero Volotinen 2007-02-25 07:29:19 0000 -------
Well. I got speed from "switch", since it connects only 10mbps connection on
that kernel.

It works on .19 so, I switched back to it before this is corrected.

------- Comment #3 From Daniel Drake 2007-03-06 18:55:07 0000 -------
Please reopen when you have tested the latest development kernel, currently
2.6.21-rc2

------- Comment #4 From Eero Volotinen 2007-03-06 20:12:19 0000 -------
well. rc2 is too buggy to even compile on my system.

------- Comment #5 From Daniel Drake 2007-03-06 20:37:50 0000 -------
Put this patch on top:
http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.21-rc2-git4.bz2

If it still doesn't compile, post the compile error and attach your kernel
config

------- Comment #6 From Eero Volotinen 2007-03-07 08:02:47 0000 -------
tried with git5, but still does not work, so this is bug in 
vanilla kernel too?

Linespeed is detected as 10mbps, not 100 and 1000 at it should.

This works on gentoo 2.6.19-r2 and machine is amilo pro v2085
and network card is :
02:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit
Ethernet (rev 10)

very annoying, since it is almost impossible to use if networks card only works
with 10mbps

------- Comment #7 From Eero Volotinen 2007-03-07 12:39:44 0000 -------
Created an attachment (id=112395) [details]
patch-from-maintainer-to-fix-problem

patch from maintainer to fix problem. should be applied to gentoo sources

------- Comment #8 From Daniel Drake 2007-03-07 13:17:16 0000 -------
Thanks for following up :)
Will include in next release provided it's heading upstream

------- Comment #9 From Daniel Drake 2007-03-10 04:39:43 0000 -------
Fixed in gentoo-sources-2.6.20-r2, thanks for supplying the patch