Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Tri Vo
On Wed, Jul 31, 2019 at 2:19 PM Rafael J. Wysocki wrote: > > On Wed, Jul 31, 2019 at 7:14 PM Stephen Boyd wrote: > > > > Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > > > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Rafael J. Wysocki
On Wed, Jul 31, 2019 at 7:14 PM Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > > > > > > > > We can run into the same problem when t

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Greg Kroah-Hartman
On Wed, Jul 31, 2019 at 10:13:57AM -0700, Stephen Boyd wrote: > Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > > > > > > > > We can run into the same proble

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Stephen Boyd
Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > > > > > We can run into the same problem when two buses name their devices the > > > same name and then we attemp

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Rafael J. Wysocki
On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > Quoting Rafael J. Wysocki (2019-07-30 16:05:55) > > > On Wed, Jul 31, 2019 at 12:26 AM Stephen Boyd wrote: > > > > > > > > Quoting Rafael J. Wysocki (2019-07-30 15:1

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Rafael J. Wysocki
On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2019-07-30 16:05:55) > > On Wed, Jul 31, 2019 at 12:26 AM Stephen Boyd wrote: > > > > > > Quoting Rafael J. Wysocki (2019-07-30 15:17:55) > > > > On Tuesday, July 30, 2019 8:48:09 PM CEST Stephen Boyd wrote: > > >

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Stephen Boyd
Quoting Rafael J. Wysocki (2019-07-30 16:05:55) > On Wed, Jul 31, 2019 at 12:26 AM Stephen Boyd wrote: > > > > Quoting Rafael J. Wysocki (2019-07-30 15:17:55) > > > On Tuesday, July 30, 2019 8:48:09 PM CEST Stephen Boyd wrote: > > > > > > > > Using the same prefix for the class and the device name

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Tri Vo
On Tue, Jul 30, 2019 at 4:06 PM Rafael J. Wysocki wrote: > > On Wed, Jul 31, 2019 at 12:26 AM Stephen Boyd wrote: > > > > Quoting Rafael J. Wysocki (2019-07-30 15:17:55) > > > On Tuesday, July 30, 2019 8:48:09 PM CEST Stephen Boyd wrote: > > > > Quoting Tri Vo (2019-07-30 11:39:34) > > > > > On M

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Rafael J. Wysocki
On Wed, Jul 31, 2019 at 12:26 AM Stephen Boyd wrote: > > Quoting Rafael J. Wysocki (2019-07-30 15:17:55) > > On Tuesday, July 30, 2019 8:48:09 PM CEST Stephen Boyd wrote: > > > Quoting Tri Vo (2019-07-30 11:39:34) > > > > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki > > > > wrote: > > > >

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Stephen Boyd
Quoting Rafael J. Wysocki (2019-07-30 15:17:55) > On Tuesday, July 30, 2019 8:48:09 PM CEST Stephen Boyd wrote: > > Quoting Tri Vo (2019-07-30 11:39:34) > > > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki > > > wrote: > > > > > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > > > -

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Rafael J. Wysocki
On Tuesday, July 30, 2019 8:48:09 PM CEST Stephen Boyd wrote: > Quoting Tri Vo (2019-07-30 11:39:34) > > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki > > wrote: > > > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > > - Device registering the wakeup source is now the parent of the

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Tri Vo
On Mon, Jul 29, 2019 at 11:47 PM Greg KH wrote: > > On Mon, Jul 29, 2019 at 07:43:09PM -0700, Tri Vo wrote: > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > blocking wakeup sources over device's boot cycle. This information can > > then be used (1) for power-specifi

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Greg Kroah-Hartman
On Tue, Jul 30, 2019 at 11:48:09AM -0700, Stephen Boyd wrote: > Quoting Tri Vo (2019-07-30 11:39:34) > > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki > > wrote: > > > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > > - Device registering the wakeup source is now the parent of the

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Greg Kroah-Hartman
On Tue, Jul 30, 2019 at 11:39:34AM -0700, Tri Vo wrote: > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki wrote: > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > > > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > > blocking wakeup sources over device'

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Stephen Boyd
Quoting Tri Vo (2019-07-30 11:39:34) > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki wrote: > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > - Device registering the wakeup source is now the parent of the wakeup > > > source. > > > Updated wakeup_source_register()'s signature a

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-30 Thread Tri Vo
On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki wrote: > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > blocking wakeup sources over device's boot cycle. This information can > > then be used (1) for power-sp

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-29 Thread Greg KH
On Mon, Jul 29, 2019 at 07:43:09PM -0700, Tri Vo wrote: > Userspace can use wakeup_sources debugfs node to plot history of suspend > blocking wakeup sources over device's boot cycle. This information can > then be used (1) for power-specific bug reporting and (2) towards > attributing battery consu

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-29 Thread Rafael J. Wysocki
On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > Userspace can use wakeup_sources debugfs node to plot history of suspend > blocking wakeup sources over device's boot cycle. This information can > then be used (1) for power-specific bug reporting and (2) towards > attributing battery consumption

[PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-29 Thread Tri Vo
Userspace can use wakeup_sources debugfs node to plot history of suspend blocking wakeup sources over device's boot cycle. This information can then be used (1) for power-specific bug reporting and (2) towards attributing battery consumption to specific processes over a period of time. However, de