Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755246AbYFCGRf (ORCPT ); Tue, 3 Jun 2008 02:17:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754359AbYFCGRF (ORCPT ); Tue, 3 Jun 2008 02:17:05 -0400 Received: from yumi.tdiedrich.de ([85.10.210.183]:43330 "EHLO mx.tdiedrich.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753364AbYFCGQx (ORCPT ); Tue, 3 Jun 2008 02:16:53 -0400 Date: Tue, 3 Jun 2008 08:16:19 +0200 From: Tobias Diedrich To: Alan Stern Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ayaz Abdulla , "Rafael J. Wysocki" , Stephen Hemminger , David Brownell , linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org Subject: Re: [linux-pm] [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems Message-ID: <20080603061618.GB9301@yamamaya.is-a-geek.org> Mail-Followup-To: Tobias Diedrich , Alan Stern , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ayaz Abdulla , "Rafael J. Wysocki" , Stephen Hemminger , David Brownell , linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org References: <20080601074935.GA2529@yamamaya.is-a-geek.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 26594 Lines: 476 Alan Stern wrote: > On Sun, 1 Jun 2008, Tobias Diedrich wrote: > > > > > (BTW I first thought the 'immediate reboot because of usb wake' effect is > > > > caused by the optical mouse generating a wake event, but it rather > > > > seems to be a problem with a flaky secondary usb host controller, > > > > which sees a connected device where nothing is attached) > > > > > > Can you provide debugging information (i.e., CONFIG_USB_DEBUG) with the > > > details on this bogus wakeup? > > > > Sure. > > Here is the complete log of one boot and two s2disk_platform cycles > > captured using the serial console (in the first s2disk I forgot to > > remove the 'turn off /sys/bus/usb/device/usb?/power/wakeup' part). > > > > Interestingly even with power/wakeup disabled for usb1 and usb2, > > which I assume to be the usb root ports, I could wake up the system > > by pressing a key on my keyboard (which didn't work before turning > > on CONFIG_USB_SUSPEND). > > > > On the second suspend the system rebooted immediately as expected > > (I power/wakeup for usb1 and usb2 back on and disabled the part in > > the script). > > > > I think this might be some general usb hw flakiness, since it seems > > to detect (and has so for a long time) a non-existing device: > > > > lsusb output: > > Bus 002 Device 003: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0 > > Bus 002 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical > > Bus 002 Device 001: ID 1d6b:0001 > > Bus 001 Device 001: ID 1d6b:0002 > > > > bogus device?: > > [14316046.469949] usb 2-4: new full speed USB device using ohci_hcd and address 12 > > [14316046.679951] usb 2-4: device descriptor read/64, error -62 > > [14316046.986619] usb 2-4: device descriptor read/64, error -62 > > [14316047.263284] usb 2-4: new full speed USB device using ohci_hcd and address 13 > > [14316047.476614] usb 2-4: device descriptor read/64, error -62 > > [14316047.786618] usb 2-4: device descriptor read/64, error -62 > > [14316048.063282] usb 2-4: new full speed USB device using ohci_hcd and address 14 > > [14316048.499945] usb 2-4: device not accepting address 14, error -62 > > [14316048.669950] usb 2-4: new full speed USB device using ohci_hcd and address 15 > > [14316049.106612] usb 2-4: device not accepting address 15, error -62 > > [14316049.112960] hub 2-0:1.0: unable to enumerate USB device on port 4 > > It's possible. Maybe there's a builtin broken USB device, or maybe the > D+ pin on port 4 is wired to a positive voltage source. One of the ports on the back of the board seems to be broken (Maybe esd?), the other three work fine, but nothing happens when I plug a device into that one, so I guess that's the culprit. > The log didn't reveal anything. Perhaps you can learn more by looking > at the "registers" file for that OHCI controller in debugfs. Ok, I can try that this evening... > Also, you should run "lspci -vv" as root to see what wakeup signals the > USB controllers are issuing. 00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a1) Subsystem: ASUSTeK Computer Inc. Unknown device 8239 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr+ DiscTmrStat- DiscTmrSERREn+ Capabilities: [b8] Subsystem: nVidia Corporation Unknown device cb84 Capabilities: [8c] HyperTransport: MSI Mapping Enable+ Fixed- Mapping Address Base: 00000000fee00000 00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2) Subsystem: ASUSTeK Computer Inc. Unknown device 81f6 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: [40] Subsystem: nVidia Corporation Unknown device 0000 Capabilities: [48] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable- Address: 0000000000000000 Data: 0000 Capabilities: [60] HyperTransport: MSI Mapping Enable+ Fixed- Mapping Address Base: 00000000fee00000 Capabilities: [80] Express (v1) Root Port (Slot+), MSI 00 DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <4us ExtTag- RBE+ FLReset- DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+ RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 512 bytes DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend- LnkCap: Port #5, Speed 2.5GT/s, Width x8, ASPM L0s L1, Latency L0 <512ns, L1 <4us ClockPM- Suprise- LLActRep+ BwNot- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive+ BWMgmt- ABWMgmt- SltCap: AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surpise- Slot # 0, PowerLimit 0.000000; Interlock- NoCompl- SltCtl: Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg- Control: AttnInd Off, PwrInd On, Power- Interlock- SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock- Changed: MRL- PresDet+ LinkState+ RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible- RootCap: CRSVisible- RootSta: PME ReqID 0000, PMEStatus- PMEPending- Kernel driver in use: pcieport-driver 00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: [40] Subsystem: nVidia Corporation Unknown device 0000 Capabilities: [48] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable- Address: 0000000000000000 Data: 0000 Capabilities: [60] HyperTransport: MSI Mapping Enable+ Fixed- Mapping Address Base: 00000000fee00000 Capabilities: [80] Express (v1) Root Port (Slot+), MSI 00 DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <4us ExtTag- RBE+ FLReset- DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+ RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 512 bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend- LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <4us ClockPM- Suprise- LLActRep+ BwNot- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled+ Retrain- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt- SltCap: AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surpise- Slot # 0, PowerLimit 0.000000; Interlock- NoCompl- SltCtl: Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg- Control: AttnInd Off, PwrInd On, Power- Interlock- SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock- Changed: MRL- PresDet+ LinkState+ RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible- RootCap: CRSVisible- RootSta: PME ReqID 0000, PMEStatus- PMEPending- Kernel driver in use: pcieport-driver 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Kernel driver in use: k8temp Kernel modules: k8temp 01:08.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07) Subsystem: Creative Labs SBLive! 5.1 Model SB0100 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-