From: Andreas Kemnade <andreas@kemnade.info>
To: Tony Lindgren <tony@atomide.com>
Cc: Adam Ford <aford173@gmail.com>, Linux-OMAP <linux-omap@vger.kernel.org>
Subject: Re: DM3730 Suspend-Resume with 5.11-rc6
Date: Mon, 8 Feb 2021 11:27:35 +0100 [thread overview]
Message-ID: <20210208112735.02e85c3f@aktux> (raw)
In-Reply-To: <YCEBRBcfZa2D6J6X@atomide.com>
On Mon, 8 Feb 2021 11:15:48 +0200
Tony Lindgren <tony@atomide.com> wrote:
> * Adam Ford <aford173@gmail.com> [210206 22:22]:
> > On Sat, Feb 6, 2021 at 3:57 PM Adam Ford <aford173@gmail.com> wrote:
> > >
> > > I am having issues with suspend on a DM3730 running 5.11-rc6, and it
> > > seems like core_pwrdm may be the issue.
>
> That probably just means you did not configure off mode for idle.
>
hmm, do you still need to configure anything for off mode? I rather
think it might be a misbehaving peripheral, not a general off mode
problem. So maybe try it with less modules loaded and add them step by
step to find out the misbehaving one.
> Suspend and resume still works for me based on a quick try with -rc7.
> I use the following test script to enable idle FYI, then suspend,
> and wake-up the system to a key press on serial console.
>
> Also modprobe rtc-twl and rtcwake -m mem -s 5 worked.
>
> Regards,
>
> Tony
>
> 8< -------------
> #!/bin/bash
>
> # Detach kernel serial console
> consoles=$(find /sys/bus/platform/devices/4*.serial/ -name console)
> for console in ${consoles}; do
> echo -n N > ${console}
> done
>
> # Configure PM runtime autosuspend
> uarts=$(find /sys/bus/platform/devices/4*.serial/power/ -type d)
> for uart in $uarts; do
> echo -n 3000 > $uart/autosuspend_delay_ms
> echo -n enabled > $uart/wakeup
> echo -n auto > $uart/control
> done
>
> # Configure wake-up from suspend
> uarts=$(find /sys/class/tty/tty[SO]*/power/ -type d 2>/dev/null)
> for uart in $uarts; do
> echo -n enabled > $uart/wakeup
> done
>
> echo -n 1 > /sys/kernel/debug/pm_debug/enable_off_mode
>
Is this line still needed? I thought I had patched it away.
Regards,
Andreas
next prev parent reply other threads:[~2021-02-08 10:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-06 21:57 DM3730 Suspend-Resume with 5.11-rc6 Adam Ford
2021-02-06 22:20 ` Adam Ford
2021-02-08 9:15 ` Tony Lindgren
2021-02-08 10:27 ` Andreas Kemnade [this message]
2021-02-08 17:54 ` Tony Lindgren
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=20210208112735.02e85c3f@aktux \
--to=andreas@kemnade.info \
--cc=aford173@gmail.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.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.