From: Gianluca Anzolin <gianluca@sottospazio.it>
To: Andreas Mohr <andi@lisas.de>
Cc: Zhang Rui <rui.zhang@intel.com>, linux-acpi@vger.kernel.org
Subject: Re: Debugging spurious wakeup
Date: Mon, 22 Jun 2015 21:48:55 +0200 [thread overview]
Message-ID: <20150622194855.GA16269@sottospazio.it> (raw)
In-Reply-To: <20150620215441.GA32242@rhlx01.hs-esslingen.de>
Hello,
On Sat, Jun 20, 2015 at 11:54:41PM +0200, Andreas Mohr wrote:
> Hi,
>
> [managed to gather proper In-Reply-To from spinics.net
> rather than broken lkml.org]
>
> I'm having a very similar issue with my PCI FireWire card:
> whenever shutting down or even suspending,
> I'm getting immediate spurious wakeup; currently most strongly suspecting
> Firewire PHY-related IRQ event wakeups.
I don't know if the issue is the same as mine. In that case it wouldn't
be driver related. As explained before, for me the spontaneous wakeups
occur after a Wake-on-Lan but not when powering up the system by other
means (i.e. power button).
As suggested I asked on netdev but got no reply at all, so I'm on my own
right now.
Thank you for sharing your experience, the document about GPE and PME
seems useful to pinpoint the issue: as explained in another email, I
found a difference in lspci when the undesired wakeup occurs and it
involves PME signals:
- RootSta: PME ReqID 0000, PMEStatus- PMEPending-
+ RootSta: PME ReqID 0400, PMEStatus- PMEPending-
The problem is, these difference is not related to the network PCI
device but to the PCI bridge behind which the network device sits.
If I find something useful (unlikely, but never lose the hope) I'll send
an update :)
Thank you,
Gianluca
>
> I collected the following items so far:
> - asked for help (having the system properly record / retain the actual
> reason for system-global wakeup):
> "pm: record / retain actual reason of last system wakeup??"
> https://lkml.org/lkml/2015/6/2/625
> - figured out that it can be silenced with *general* (ouch)
> BIOS PCI wakeup disable, yet that if not disabled
> (which is *very* desirable, obviously, to retain WOL capability etc.)
> it's actually already in a broken state directly post-BIOS-init,
> at LILO prompt (i.e., **NOT** in Linux, NOT a Linux driver issue!
> However perhaps we *might* be able to do something about it in Linux...):
> "fw-ohci: ALi M52xx unsupported"
> https://bugzilla.kernel.org/show_bug.cgi?id=10935
> (contains reference to http://www.tonymacx86.com/general-help/65531-gigabyte-uefi-bios-startech-firewire-pcie-card-sleep-wake-shutdown-restart-issues-thread-8.html
> where tons of people have issues with various FireWire cards -
> so it seems that this is an issue that's pretty much inherent
> to / associated with FireWire hardware behaviour)
> - found 074_GPE_Routing.doc which explains these GPE / PME things
> (this *is* the stuff that's broken/problematic here, right??)
> in pretty detailed form
> - "Re: PME# for add-on cards"
> http://markmail.org/message/7uuzqbtrpswzrezz
> mentions that probably BIOS forgot to do PME masking
> directly prior to activating hardware shutdown
> (well, at least in my case, where wakeup happens completely instantly,
> as opposed to your case where it will wakeup after a couple seconds)
>
> No amount of fumbling (~1 hour) with CAP_PM register range
> (PME_EN etc.; "setpci -v -s ${dst} CAP_PM+4.b=XX")
> or e.g. setting the "remove" sysfs attribute of PCI (sub) devices
> (this would then be a nicely controlled i.e. fine-grained manner)
> so far managed to disable this behaviour.
> I suspect that we might be talking
> of simple complete signal level mal-functioning of the card
> irrespective of how it's actually configured
> to generate or not generate events...
> (shutdown --> power change --> floating signals on PME# --> wakeup)
> I also tried to completely mask all FireWire event types in driver-side
> suspend handler, with no success (but given that this is a combo card
> with various USB host controllers FireWire may not be the sub device to
> be blamed after all - here we are again at dearly needing
> system-provided information about the *maximally precise* reason
> of last wakeup - PME ReqID [not available on my Conventional PCI system]
> seems to be a prime candidate). But given that the Mac forum reports issues
> with many FireWire cards, faulty USB sub device seems less likely.
>
> So, I'm still quite far from possibly(!) being able
> to create a device-specific PCI quirk entry (drivers/pci/quirks.c)
> or to create driver-side workarounds
> for FireWire cards which have this issue.
>
> HTH,
>
> Andreas Mohr
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
next prev parent reply other threads:[~2015-06-22 19:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 6:58 Debugging spurious wakeup Gianluca Anzolin
2015-05-13 7:46 ` Zhang, Rui
2015-05-13 8:12 ` Gianluca Anzolin
2015-05-13 8:13 ` Zhang, Rui
2015-05-13 8:26 ` Gianluca Anzolin
2015-05-13 8:30 ` Zhang, Rui
2015-05-13 9:03 ` Gianluca Anzolin
2015-05-13 9:42 ` Zhang, Rui
2015-05-13 10:17 ` Gianluca Anzolin
2015-05-13 10:51 ` Gianluca Anzolin
2015-05-14 12:51 ` Gianluca Anzolin
2015-05-15 7:52 ` Gianluca Anzolin
2015-05-15 7:54 ` Daniel Lezcano
2015-05-15 8:35 ` Gianluca Anzolin
2015-05-15 8:49 ` Daniel Lezcano
2015-06-20 21:54 ` Andreas Mohr
2015-06-22 19:48 ` Gianluca Anzolin [this message]
2015-06-23 6:36 ` Gianluca Anzolin
2015-06-23 8:32 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150622194855.GA16269@sottospazio.it \
--to=gianluca@sottospazio.it \
--cc=andi@lisas.de \
--cc=linux-acpi@vger.kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.