You are not logged in.

#1 2010-10-09 20:44:18

matt_garman
Member
Registered: 2010-02-15
Posts: 9

Gigabit NIC reverts to 100mbs after suspend/resume

My motherboard has an integrated Realtek Gigabit ethernet controller, using the r8169 driver.  See lspci output below.

It works fine, except after a suspend-resume cycle, it reverts to 100Mb/s rather than 1000Mb/s.  It still works in 100mbs mode, just significantly slower.  I can manually fix it back to GigE via "ethtool -s eth0 speed 1000".  But I'd prefer to not have to do this.

Is there somewhere I should hard-code the ethtool settings, or should I modify a resume pm script?  Or is there another solution?

Thanks!
Matt

ethtool output after suspend/resume:

ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes

lspsi output:

04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
        Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 45
        Region 0: I/O ports at d000 [size=256]
        Region 2: Memory at e9110000 (64-bit, prefetchable) [size=4K]
        Region 4: Memory at e9100000 (64-bit, prefetchable) [size=64K]
        [virtual] Expansion ROM at e9120000 [disabled] [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

Offline

#2 2010-10-25 22:13:28

matt_garman
Member
Registered: 2010-02-15
Posts: 9

Re: Gigabit NIC reverts to 100mbs after suspend/resume

Bump... anyone?

Offline

#3 2010-10-28 20:53:10

tkdfighter
Member
From: Switzerland
Registered: 2009-01-28
Posts: 126

Re: Gigabit NIC reverts to 100mbs after suspend/resume

Hi Matt,

same problem here. I've had this for several months now. Usually I don't even notice, because I don't transfer large files all that regularly.
A quick look on the kernel.org bug tracker turned this up: https://bugzilla.kernel.org/show_bug.cgi?id=10130 Seems like this is a fairly old issue.

ethtool gives me the exact same output as you've posted. I'm using the same chip and driver, but different motherboard:

# lspci -s 02:00.0 -v
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
        Subsystem: ASUSTeK Computer Inc. Device 82c6
        Flags: bus master, fast devsel, latency 0, IRQ 42
        I/O ports at e800 [size=256]
        Memory at fbfff000 (64-bit, non-prefetchable) [size=4K]
        Memory at faff0000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at fbfc0000 [disabled] [size=128K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable- Count=2 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-ec-10-68-81
        Kernel driver in use: r8169
        Kernel modules: r8169

Offline

#4 2010-10-29 10:19:19

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Gigabit NIC reverts to 100mbs after suspend/resume

A workaround will be to create a pm hook to solve that, see here https://wiki.archlinux.org/index.php/Pm … _own_hooks


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB