linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@ti.com>
To: Peter Barada <peter.barada@gmail.com>
Cc: Linux OMAP list <linux-omap@vger.kernel.org>
Subject: Re: Question regarding suspend/resume
Date: Tue, 15 Mar 2011 13:11:42 -0700	[thread overview]
Message-ID: <87wrk0gn41.fsf@ti.com> (raw)
In-Reply-To: <4D7FBD31.6050806@gmail.com> (Peter Barada's message of "Tue, 15 Mar 2011 15:25:37 -0400")

Peter Barada <peter.barada@gmail.com> writes:

> Is there any reference how to decode the output of
> /debug/pm_debug/count?  I'm trying to figure out when I resume why it
> says the core_pwrdm didn't enter the target state, and I'm assuming
> because a clock used is not disabled in the suspend path, but as fars
> as I can tell there's no output in the pm_debug code that tells which
> clocks in a power domain are active at the time of a suspend.

You're right.

What you need the patch in my pm-wip/debug branch from my pm tree[1].
With that patch, it takes a snapshot of the PRCM registers just before
and after suspend.

When you come back from suspend, view the register snapshot just before
suspend:

# cat /debug/pm_debug/register/1  

and the register snapshot just after

# cat /debug/pm_debug/register/2

the snapshot just before suspend is useful for debugging problems like
yours, and the snapshot just after can be useful for debugging wakeups.

Feel free to post the register dump if you want some help deciphering
it.  If you do, please post more details on what kernel you're using as
well as the bootloader etc.

One of the common root causes for a problem like yours is a bootloader
that leaves a particular module in a state that it cannot properly
idle.  If the kernel is not using that particular device and/or has not
reset that device, the result is the powerdomain for that device can not
hit idle and you'll have a problem like yours.

Kevin

[1] git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git

  reply	other threads:[~2011-03-15 20:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 19:25 Question regarding suspend/resume Peter Barada
2011-03-15 20:11 ` Kevin Hilman [this message]
2011-03-31 20:17   ` Peter Barada
2011-03-31 20:48     ` Kevin Hilman
2011-04-01  5:05       ` Hiremath, Vaibhav
2011-04-04 14:31         ` Peter Barada
2011-04-04 15:26           ` Hiremath, Vaibhav
2011-04-04 14:40       ` Peter Barada
2011-04-04 15:12         ` Kevin Hilman

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=87wrk0gn41.fsf@ti.com \
    --to=khilman@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.barada@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).