All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Adam Ford <aford173@gmail.com>
Cc: Linux-OMAP <linux-omap@vger.kernel.org>
Subject: Re: DM3730 Suspend-Resume with 5.11-rc6
Date: Mon, 8 Feb 2021 11:15:48 +0200	[thread overview]
Message-ID: <YCEBRBcfZa2D6J6X@atomide.com> (raw)
In-Reply-To: <CAHCN7xKvUx7q0GL+JV8O7MEYo1zb8g2ePbHKQg8SxRmmsj+b6g@mail.gmail.com>

* 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.

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

  reply	other threads:[~2021-02-08  9:20 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 [this message]
2021-02-08 10:27     ` Andreas Kemnade
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=YCEBRBcfZa2D6J6X@atomide.com \
    --to=tony@atomide.com \
    --cc=aford173@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    /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.