From: Tony Lindgren <tony@atomide.com>
To: Ran Shalit <ranshalit@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Fail to enter retention
Date: Mon, 17 Nov 2014 08:22:10 -0800 [thread overview]
Message-ID: <20141117162209.GE7046@atomide.com> (raw)
In-Reply-To: <CAJ2oMh+jALrwq8sOf84+zK-0=vSS790jsW-jjgZtBCXvJDuG4w@mail.gmail.com>
* Ran Shalit <ranshalit@gmail.com> [141116 12:13]:
> Hello,
>
> I'm using OMAP3530 with custom board. I have enabled all power mode
> features as described in PSP wiki, but it still fails to enter any
> state different from state0.
Works for me with pretty much all omap3 boards I have here with
mainline kernel since v3.17 using omap2plus_defconfig. And the
following script to idle uarts and enable off-idle (or retention).
USB needs to be disconnected and EHCI probably still cannot be
enabled.
> The next thing was trying to get the uart to sleep (though there might
> be also problems with other domains ?) .
>
> On trying to enable uart as wakeup source I get the following:
>
> echo enabled > /sys/devices/platform/omap/omap_uart.2/power/wakeup
>
> cat /sys/devices/platform/omap/omap_uart.2/power/wakeup
>
> #> disabled (?????)
>
> echo 1 > /sys/devices/platform/omap/omap_uart.2/sleep_timeout
> ~ # [ 85.006622] omap_device: omap_uart.2: new worst case deactivate
> latency 0: 61035
> [ 85.559844] omap_device: omap_uart.2: new worst case activate
> latency 0: 61035
> [ 982.415161] omap_device: omap_uart.2: new worst case deactivate
> latency 0: 91552
>
> < console hangs here >
Sounds like you need to enable the wake-up interrupt for the UART.
See the interrupts-extended entry for many omap3-*.dts files:
interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
If you get it working, care to update the instructions in the wiki
too?
Regards,
Tony
8< ----------------------
#!/bin/bash
uarts=$(find /sys/class/tty/tty[SO]*/device/power/ -type d)
for uart in $uarts; do
echo 3000 > $uart/autosuspend_delay_ms 2>&1
done
uarts=$(find /sys/class/tty/ttyO*/power/ -type d 2>/dev/null)
for uart in $uarts; do
echo enabled > $uart/wakeup 2>&1
echo auto > $uart/control 2>&1
done
echo 1 > /sys/kernel/debug/pm_debug/enable_off_mode
next prev parent reply other threads:[~2014-11-17 16:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-16 20:10 Fail to enter retention Ran Shalit
2014-11-17 16:22 ` Tony Lindgren [this message]
2014-11-17 17:12 ` Ran Shalit
2014-11-17 18:09 ` Tony Lindgren
2014-11-17 19:46 ` Ran Shalit
2014-11-17 20:38 ` Tony Lindgren
2014-11-17 21:09 ` Ran Shalit
2014-11-18 8:21 ` Ran Shalit
2014-11-18 8:25 ` Ran Shalit
2014-11-18 15:45 ` Tony Lindgren
[not found] ` <CAJ2oMhJUNsKtP1VYF+6dWDfmAEF3qvfbN7ahhVBdDBgZt7thGA@mail.gmail.com>
2014-11-18 21:47 ` Ran Shalit
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=20141117162209.GE7046@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=ranshalit@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