Messages in this thread | | | Date | Mon, 18 Aug 2014 19:19:58 -0700 | Subject | Re: [RFC][PATCH 1/2] PM: Print pending wakeup IRQ preventing suspend to dmesg | From | Todd Poynor <> |
| |
On Fri, Aug 1, 2014 at 9:30 AM, Amit Pundir <amit.pundir@linaro.org> wrote: > From: Todd Poynor <toddpoynor@google.com> > > Currently when a pending wakeup irq stops suspend, it can be difficult > to determine why suspend was prevented and which IRQ was actually > responsible. > > In order to help debug these situations, this patch prints the IRQ > number and action name of that pending wakeup irq which prevents suspend. > This patch comes from the Android patch set, where its been used to debug > suspend problems.
This info is sometimes useful to debugging Android suspend / battery life problems, such as to detect a driver that is failing to service or clear a wakeup interrupt condition.
In general, we intend to fold reporting of suspend abort reasons (wakeup IRQ pending, wakelock grabbed, task refusing to freeze...) into the wakeup reason reporting API to userspace previously discussed on the linux-pm list (and also revive discussion of how to rework that for mainline acceptance soon).
Thanks,
Todd
| |