From: Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: Michael Nazzareno Trimarchi
<michael-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>,
USB list <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux OMAP Mailing List
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Discussions about the Letux Kernel
<letux-kernel-S0jZdbWzriLCfDggNXIi3w@public.gmane.org>,
Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
Subject: Re: power management problems in ehci-omap
Date: Tue, 6 Feb 2018 19:03:47 +0100 [thread overview]
Message-ID: <20180206185452.34d01d77@aktux> (raw)
In-Reply-To: <20180206171737.GB21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2895 bytes --]
On Tue, 6 Feb 2018 09:17:37 -0800
Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> wrote:
> * Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> [180206 16:56]:
> > On Tue, 6 Feb 2018 08:04:52 -0800
> > Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> wrote:
> >
> > > * Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> [180206 06:42]:
> > > > rechecked with a board with really nothing connected there
> > > > Same behaviour
> > >
> > > I've just verified that my test board power consumption goes
> > > back to normal after rmmod ehci-omap with v4.15.
> > >
> > yes, for me too, I initially used a test script which does an
> > echo rmmod ehci-omap
> >
> > without a real
> > rmmod ehci-omap
>
> Ah OK :)
>
> > It just seems to be consistent with my observations in a fully booted
> > system (where many things can play a role). Sorry for that confusion.
>
> Try with a minimal set of modules first, then modprobe and rmmod one
> at a time until you find the module breaking PM?
>
Yes, that is basically what I do with this script:
https://misc.andi.de1.cc/measure4.sh
and
https://misc.andi.de1.cc/measure5.sh
I start from a bare kernel, check currents, load ehci-omap (I have also
debugged many other pm things that way)
check currents again.
But since my rough observations with a fully loaded system
seem to match with the
echo rmmod behaviour, I did not notice my mistake.
> You probably know this already, but just in case it helps..
>
> First idle the UARTs and enable off mode with something like:
>
> 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/tty[SO]*/power/ -type d 2>/dev/null)
> for uart in $uarts; do
> echo enabled > $uart/wakeup 2>&1
> echo auto > $uart/control 2>&1
> done
>
hmm, this looks a bit like runtime suspend.
I mean suspend aka echo mem >/sys/power/state
> echo -n 1 > /sys/kernel/debug/pm_debug/enable_off_mode
>
In earlier times this just caused trouble and a little lower current,
maybe it is time to check again.
> Then if using omap3, the attached debug hack patch can be used to
> see which devices are not idling:
>
Yes, I will try out. It it about detecting whether the soc itself went
into low power mode. But it does not check e.g. whether the phy is put
into low power mode correctly. So ehci-usb in soc might be powered off
and phy is still on.
When I go to suspend, I get this message:
"Successfully put all powerdomains to target state"
@Nikolaus: Can you check IR at the end of the suspend time in
https://misc.andi.de1.cc/measure5.sh
the second suspend compared with the first whether the phy (the USB
2233) stays on.
Regards,
Andreas
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-06 18:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-03 23:03 power management problems in ehci-omap Andreas Kemnade
[not found] ` <20180204000335.29812776-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org>
2018-02-03 23:10 ` Michael Nazzareno Trimarchi
[not found] ` <CAOf5uw=6RCJBPZd1fCi6+xb23THLRmXcfqsNtiZQeM=oKx0VvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-04 8:38 ` Andreas Kemnade
[not found] ` <20180204093831.44322452-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org>
2018-02-04 8:43 ` Michael Nazzareno Trimarchi
[not found] ` <CAOf5uwnoQtS+PnPO0t7Mf1qP9u_BgLPAX0h4EhiXfY7380QXng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-04 10:50 ` Andreas Kemnade
[not found] ` <20180204115052.2fe3e1db-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org>
2018-02-04 10:55 ` Michael Nazzareno Trimarchi
[not found] ` <CAOf5uwk_CYNBavy=miFEskAOdr9Hpa9jesJbXWRMLAEKseg8vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-04 11:07 ` H. Nikolaus Schaller
[not found] ` <6A0B83EE-3453-4BC4-8CB0-94EE83E2E1E7-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2018-02-04 11:34 ` Michael Nazzareno Trimarchi
[not found] ` <CAOf5uwm1iWtn=xqm9LwCgjqBMPt0c-vr24X_Da0NbB0TP1NY5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-04 13:43 ` H. Nikolaus Schaller
2018-02-05 8:23 ` Andreas Kemnade
2018-02-06 6:42 ` Andreas Kemnade
2018-02-06 16:04 ` Tony Lindgren
[not found] ` <20180206160452.GA21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-02-06 16:55 ` Andreas Kemnade
2018-02-06 17:17 ` Tony Lindgren
[not found] ` <20180206171737.GB21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-02-06 18:03 ` Andreas Kemnade [this message]
2018-02-06 18:16 ` Tony Lindgren
[not found] ` <20180206181623.GC21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-02-06 18:40 ` Andreas Kemnade
2018-02-07 9:21 ` Roger Quadros
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=20180206185452.34d01d77@aktux \
--to=andreas-clv4z9elz06zuzbka8ofvg@public.gmane.org \
--cc=letux-kernel-S0jZdbWzriLCfDggNXIi3w@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=michael-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org \
--cc=rogerq-l0cyMroinI0@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.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 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).