All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Govindraj.R" <govindraj.raja@ti.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>, Paul Walmsley <paul@pwsan.com>,
	Kevin Hilman <khilman@ti.com>
Cc: linux-omap@vger.kernel.org, linux-pm@lists.linux-foundation.org,
	Vishwanath Sripathy <vishwanath.bs@ti.com>,
	Partha Basak <p-basak2@ti.com>, Felipe Balbi <balbi@ti.com>,
	Santosh Shilimkar <santosh.shilimkar@ti.com>,
	Rajendra Nayak <rnayak@ti.com>, Benoit Cousson <b-cousson@ti.com>,
	Tero Kristo <t-kristo@ti.com>,
	Govindraj R <govindraj.raja@ti.com>,
	Keshava Munegowda <keshava_mgowda@ti.com>
Subject: Issue: Runtime API usage in wake-up device irq_handler during wakeup from system-wide-suspend.
Date: Fri, 26 Aug 2011 18:31:33 +0530	[thread overview]
Message-ID: <1314363693-20831-1-git-send-email-govindraj.raja@ti.com> (raw)

Hello,

During system_wide_suspend pm runtime is disabled.
I.e. __pm_runtime_disable is called from __device_suspend.
Now, if a wakeup interrupt is triggered and the wakeup device irq handler
is called even before device_resume and pm_runtime_enable happens,
the device irq_handler proceeds to enable clock with runtime API to
handle wakeup event.
 
Wouldn't this result in system wide abort since the pm_runtime is not enabled
yet from dpm_resume?
As we end up accessing regs after doing runtime get_sync.
 
Looks like this scenario is not handled currently.
Or Am I missing something here?

--
Thanks,
Govindraj.R


             reply	other threads:[~2011-08-26 13:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 13:01 Govindraj.R [this message]
2011-08-26 18:36 ` [linux-pm] Issue: Runtime API usage in wake-up device irq_handler during wakeup from system-wide-suspend Alan Stern
2011-08-27  6:30   ` Santosh
2011-08-27  6:30   ` [linux-pm] " Santosh
2011-08-27 14:01     ` Alan Stern
2011-08-27 14:49       ` Santosh
2011-08-27 19:42         ` Alan Stern
2011-09-07 15:48           ` Tero Kristo
2011-09-07 15:48           ` [linux-pm] " Tero Kristo
2011-09-07 17:59             ` Kevin Hilman
2011-09-08  4:58               ` Tero Kristo
2011-09-08  4:58               ` [linux-pm] " Tero Kristo
2011-09-08 13:51                 ` Kevin Hilman
2011-09-08 13:51                 ` Kevin Hilman
2011-09-07 17:59             ` Kevin Hilman
2011-08-27 19:42         ` Alan Stern
2011-08-27 14:49       ` Santosh
2011-08-27 14:01     ` Alan Stern
2011-08-26 18:36 ` Alan Stern
2011-08-26 20:52 ` Rafael J. Wysocki
2011-08-26 20:52 ` Rafael J. Wysocki
2011-08-26 13:01 Govindraj.R

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=1314363693-20831-1-git-send-email-govindraj.raja@ti.com \
    --to=govindraj.raja@ti.com \
    --cc=b-cousson@ti.com \
    --cc=balbi@ti.com \
    --cc=keshava_mgowda@ti.com \
    --cc=khilman@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=p-basak2@ti.com \
    --cc=paul@pwsan.com \
    --cc=rjw@sisk.pl \
    --cc=rnayak@ti.com \
    --cc=santosh.shilimkar@ti.com \
    --cc=t-kristo@ti.com \
    --cc=vishwanath.bs@ti.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.