Bug 711197

Summary: runtime PM wreaks havoc with r8169
Product: [Fedora] Fedora Reporter: Tomasz Torcz <tomek>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-13 08:59:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomasz Torcz 2011-06-06 19:24:11 UTC
Description of problem:
Shortly after enabling in powertop runtime-PM for network cards, they start up/down dance, rendering any communication impossible:

[86896.554579] r8169 0000:04:00.0: p19p1: link up
[86896.565384] r8169 0000:04:00.0: PME# disabled
[86896.566275] r8169 0000:04:00.0: p19p1: link down
[86896.573281] r8169 0000:04:00.0: p19p1: link down
[86896.666300] r8169 0000:04:00.0: PME# enabled
[86898.231927] r8169 0000:04:00.0: p19p1: link up
[86898.242215] r8169 0000:04:00.0: PME# disabled
[86898.243106] r8169 0000:04:00.0: p19p1: link down
[86898.250119] r8169 0000:04:00.0: p19p1: link down
[86898.343127] r8169 0000:04:00.0: PME# enabled
[86899.990690] r8169 0000:05:00.0: p20p1: link up
[86899.990808] ADDRCONF(NETDEV_CHANGE): p20p1: link becomes ready
[86900.004958] r8169 0000:05:00.0: PME# enabled
[86900.026917] r8169 0000:05:00.0: PME# disabled
[86900.030854] r8169 0000:05:00.0: p20p1: link down
[86900.030889] r8169 0000:05:00.0: p20p1: link down
[86900.030941] ADDRCONF(NETDEV_UP): p20p1: link is not ready
[86900.035414] ADDRCONF(NETDEV_UP): p20p1: link is not ready

Disabling runtime pm for r8169 fixes thats.

Version-Release number of selected component (if applicable):
2.6.38.7-30.fc15.i686.PAE

How reproducible:
Always.

Steps to Reproduce:
1. Run powertop
2. Enable runtime PM foe r1869 network cards.
3.
  

Additional info:
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

May be related to bug #538920

Comment 1 Dave Jones 2011-08-04 18:22:58 UTC
does this still happen with the 2.6.40 update ?

Comment 2 Tomasz Torcz 2011-08-05 08:01:19 UTC
12 hours after enabling runtime PM problem did not appear. Previously it took few seconds.  It seems fixed with 2.6.40 (knock on wood).

Comment 3 Tomasz Torcz 2011-09-13 08:59:14 UTC
Fixed in kernel 3.0/2.6.40.