lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 07 Jul 2014 22:09:28 +0200
From:	"Rafael J. Wysocki" <rjw@...ysocki.net>
To:	John Stultz <john.stultz@...aro.org>
Cc:	Ruchi Kandoi <kandoiruchi@...gle.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
	ghackmann@...gle.com, toddpoynor@...gle.com,
	Amit Kucheria <amit.kucheria@...aro.org>
Subject: Re: [PATCH v4] power: add an API to log wakeup reasons

On Monday, July 07, 2014 03:02:18 PM John Stultz wrote:
> On Thu, Mar 13, 2014 at 6:05 PM, Ruchi Kandoi <kandoiruchi@...gle.com> wrote:
> > For power management diagnostic purposes, it is often useful to know
> > what interrupts are frequently waking the system from low power
> > suspend mode, especially on battery-powered consumer electronics
> > devices that are expected to spend much of their time in low-power
> > suspend while not in active use.  For example, reduced battery life on
> > a mobile phone may be caused in part by frequent wakeups by broadcast
> > traffic on a busy wireless LAN even while the screen is off and the
> > phone not in active use.
> >
> > Add API log_wakeup_reason() exposes it to userspace via the sysfs path
> > /sys/kernel/wakeup_reasons/last_resume_reason. This API would be called
> > from the paltform specific, or from the driver for the interrupt controller,
> > when the system resumes because of an IRQ. It logs the reasons which caused
> > the system to wakeup from the low-power mode.
> >
> > This information can be collected by userspace as part of the accounting
> > kept on power consumption.
> 
> Rafael,
>    I realize its been awhile here, but seeing as discussion on this
> petered out somewhat ambiguously, I was curious if your thoughts on
> using wakeup_sources for this was considered a prereq for further
> discussion or if it was a softer thought experiment?

It really was softer at that time, but today that we have the "freeze"
sleep state where wakeup sources really are used for wakeup it would make
more sense to used them here too.

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ