Public bug reported:

Binary package hint: linux-source-2.6.20

You need system with r8169 card (Realtek Gigabit card)
1. start system with ethernet cable _disconnected_
2. connect ethernet cable 
- system says no link detected - not true

To overcome this you have to 
1) unload driver - rmmod r8169
2) load the driver again - modprobe r8169
after that opreations driver sees  link

important pieces from dmesg:
loading driver
[    4.184000] r8169 Gigabit Ethernet driver 2.2LK loaded
[    4.184000] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 18 (level, low) -> 
IRQ 17
[    4.184000] PCI: Setting latency timer of device 0000:03:00.0 to 64
[    4.184000] eth0: RTL8168b/8111b at 0xf88b8000, 00:18:f3:ee:2f:2a, IRQ 17

init driver (ethernet disconnected) 
[   16.372000] r8169: eth0: link down
[   17.252000] NET: Registered protocol family 10
[   17.252000] lo: Disabled Privacy Extensions
[   17.252000] ADDRCONF(NETDEV_UP): eth0: link is not ready
at this point ethtool says that there is no link detected (machine at the other 
side of the cable says otherwise)


unloading driver:
[ 5641.472000] ACPI: PCI interrupt for device 0000:03:00.0 disabled

and loading it again:
 5644.756000] r8169 Gigabit Ethernet driver 2.2LK loaded
[ 5644.756000] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 18 (level, low) -> 
IRQ 17
[ 5644.756000] PCI: Setting latency timer of device 0000:03:00.0 to 64
[ 5644.756000] eth0: RTL8168b/8111b at 0xf8d42000, 00:18:f3:ee:2f:2a, IRQ 17
[ 5644.804000] r8169: eth0: link down
[ 5644.804000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5646.380000] r8169: eth0: link up
[ 5646.380000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 5656.756000] eth0: no IPv6 routers present

and now link is properly detected


important lspci -vvnn piece

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. 
RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 01)
        Subsystem: ASUSTeK Computer Inc. Unknown device [1043:11f5]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 17
        Region 0: I/O ports at c800 [size=256]
        Region 2: Memory at fe1ff000 (64-bit, non-prefetchable) [size=4K]
        Expansion ROM at fe1e0000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
PME(D0-,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [48] Vital Product Data
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 
Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [60] Express Endpoint IRQ 0
                Device: Supported: MaxPayload 1024 bytes, PhantFunc 0, ExtTag-
                Device: Latency L0s unlimited, L1 unlimited
                Device: AtnBtn+ AtnInd+ PwrInd+
                Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
                Device: RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                Device: MaxPayload 128 bytes, MaxReadReq 512 bytes
                Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 0
                Link: Latency L0s unlimited, L1 unlimited
                Link: ASPM Disabled RCB 64 bytes CommClk+ ExtSynch-
                Link: Speed 2.5Gb/s, Width x1
        Capabilities: [84] Vendor Specific Information


uname -a 
Linux ali 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux


My system is Asus A8Jn laptop

** Affects: linux-source-2.6.20 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
r8169 driver does not detect link
https://launchpad.net/bugs/86798

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to