From: Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org>
To: Michael Nazzareno Trimarchi
<michael-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
Cc: 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>
Subject: Re: power management problems in ehci-omap
Date: Mon, 5 Feb 2018 09:23:30 +0100 [thread overview]
Message-ID: <20180205092330.51fe397a@aktux> (raw)
In-Reply-To: <CAOf5uwk_CYNBavy=miFEskAOdr9Hpa9jesJbXWRMLAEKseg8vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3310 bytes --]
On Sun, 4 Feb 2018 11:55:02 +0100
Michael Nazzareno Trimarchi <michael-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> wrote:
> Hi Andreas
>
> On Sun, Feb 4, 2018 at 11:50 AM, Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> wrote:
> > Hi,
> >
> > On Sun, 4 Feb 2018 09:43:45 +0100
> > Michael Nazzareno Trimarchi <michael-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> wrote:
> >
> >> Hi Andreas
> >>
> >> On Sun, Feb 4, 2018 at 9:38 AM, Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> wrote:
> >> > On Sun, 4 Feb 2018 00:10:50 +0100
> >> > Michael Nazzareno Trimarchi <michael-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> wrote:
> >> >
> >> >> Hi
> >> >>
> >> >> On Sun, Feb 4, 2018 at 12:03 AM, Andreas Kemnade <andreas@kemnade.info> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > I booted a 4.15 kernel without udev and loaded modules piece by piece to analyze
> >> >> > pm problems. modprobe ehci-omap increases current by around 35mA and
> >> >> > also rmmod ehci-omap does not let it go down at all.
> >> >> >
> >> >> > I expect that removing hardware does the same thing
> >> > nonsense sentence from me, was to tired. I would expect that removing the modules
> >> > properly powers down the device.
> >> >> >
> >> >> > Also suspend current increases by around 15mA if that module is loaded.
> >> >> > I tested with having everything disabled which is attached to that usb bus.
> >> >> >
> >> >>
> >> >> Do you have an LTE connected to the usb?
> >> >>
> >> > Yes, there is a UMTS modem attached, but it was off during the tests.
> >> > It did not enumerate on the modem.
> >> >
> >>
> >> Just to understand if the suspend current drop was connected to the
> >> suspend of lte modem on your side.
> >> So you don't have anything connected on usb bus?
> >>
> > Suspend current is increased when the ehci-omap module is loaded
> > in comparison to the state. I tested with the modem disabled, so there
> > is nothing on the bus. Increased suspend current is one thing,
> > current_before_modprobe_ehci_omap != current_after_rmmod_ehci_omap.
> >
> > I am testing with init=some_testscript.sh, so no userspace
> > is doing strange things. No module autoload or something.
> >
Ok, there is some heavy EBCAK involved. I just did an
echo rmmod
without a real rmmod. But the suspend thing is still valid.
Sorry for the confusion.
To avoid further confusion I have uploaded these two scripts
I have given to the kernel.
http://misc.andi.de1.cc/measure4.sh
output from that:
no modules: cur: 61047 delta: 61047
before: 423462
after: 421326
average 25632 uA over 300 seconds
cur: 60333 delta: -714
+ehci-omap cur: 93712 delta: 33379
-ehci-omap cur: 60511 delta: -33201
before: 420792
after: 418656
average 25632 uA over 300 seconds
http://misc.andi.de1.cc/measure5.sh
output from that:
no modules: cur: 61225 delta: 61225
before: 427734
after: 425598
average 25717 uA over 299 seconds
cur: 59797 delta: -1428
+ehci-omap cur: 93712 delta: 33915
before: 425242
after: 421860
average 40719 uA over 299 seconds
The 40mA is too high. We have had measurements below 30mA even with
modem enabled with some pre-dt setup (Kernel 3.7)
Regards,
Andreas
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-02-05 8:23 UTC|newest]
Thread overview: 23+ 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 [this message]
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
2018-02-06 17:17 ` Tony Lindgren
[not found] ` <20180206171737.GB21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-02-06 18:03 ` Andreas Kemnade
2018-02-06 18:03 ` Andreas Kemnade
2018-02-06 18:16 ` Tony Lindgren
2018-02-06 18:16 ` Tony Lindgren
[not found] ` <20180206181623.GC21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-02-06 18:40 ` Andreas Kemnade
2018-02-06 18:40 ` Andreas Kemnade
2018-02-07 9:21 ` Roger Quadros
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=20180205092330.51fe397a@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 \
/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.