Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1582069
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] PM / wakeirq: report a wakeup_event on dedicated wekup irq |
| Date | 2017-02-16 01:00 +0100 |
| Message-ID | <tbhEn-6D9-49@gated-at.bofh.it> (permalink) |
| References | <tavJn-dK-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Monday, February 13, 2017 12:43:22 PM Tony Lindgren wrote:
> From: Grygorii Strashko <grygorii.strashko@ti.com>
>
> There are two reasons for reporting wakeup event when dedicated wakeup
> IRQ is triggered:
>
> - wakeup events accounting, so proper statistical data will be
> displayed in sysfs and debugfs;
>
> - there are small window when System is entering suspend during which
> dedicated wakeup IRQ can be lost:
>
> dpm_suspend_noirq()
> |- device_wakeup_arm_wake_irqs()
> |- dev_pm_arm_wake_irq(X)
> |- IRQ is enabled and marked as wakeup source
> [1]...
> |- suspend_device_irqs()
> |- suspend_device_irq(X)
> |- irqd_set(X, IRQD_WAKEUP_ARMED);
> |- wakup IRQ armed
>
> The wakeup IRQ can be lost if it's triggered at point [1]
> and not armed yet.
>
> Hence, fix above cases by adding simple pm_wakeup_event() call in
> handle_threaded_wake_irq().
>
> Fixes: 4990d4fe327b ("PM / Wakeirq: Add automated device wake IRQ
> handling")
> Cc: Brian Norris <briannorris@chromium.org>
> Cc: Tero Kristo <t-kristo@ti.com>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
> Tested-by: Keerthy <j-keerthy@ti.com>
> [tony@atomide.com: added missing return to avoid warnings]
> Tested-by: Tony Lindgren <tony@atomide.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
Applied (along with the other two wakeirq fixes).
Thanks,
Rafael
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] PM / wakeirq: report a wakeup_event on dedicated wekup irq Tony Lindgren <tony@atomide.com> - 2017-02-13 21:50 +0100 Re: [PATCH] PM / wakeirq: report a wakeup_event on dedicated wekup irq "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-02-16 01:00 +0100
csiph-web