From: Oliver Neukum <oneukum-IBi9RG/b67k@public.gmane.org>
To: Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>
Cc: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Micky Ching <micky_ching-kXabqFNEczNtrwSWzY7KCg@public.gmane.org>,
Wei WANG <wei_wang-kXabqFNEczNtrwSWzY7KCg@public.gmane.org>,
Roger Tseng <rogerable-Rasf1IRRPZFBDgjK7y7TUQ@public.gmane.org>,
Ritesh Raj Sarraf <rrs-7WuBAv+fczCJ8c2fQYRYNw@public.gmane.org>,
linux-mmc <linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
USB list <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] mmc: rtsx_usb_sdmmc: Handle runtime PM while changing led
Date: Wed, 21 Sep 2016 11:50:50 +0200 [thread overview]
Message-ID: <1474451450.2675.13.camel@suse.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1609201009470.1459-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
On Tue, 2016-09-20 at 10:12 -0400, Alan Stern wrote:
> On Tue, 20 Sep 2016, Oliver Neukum wrote:
> That shouldn't be an issue in this case, at least, not with the current
> code. The sdmmc and memstick drivers block autosuspend if media is
> present.
Good.
>
> > > Which means that autosuspend matters only when a card isn't present,
> > > and the host is polled every second or so to see whether a card has
> > > been inserted.
> > >
> > > Under those circumstances you probably don't want to use
> > > autosuspend.
> > > That is, resuming before each poll and suspending afterward may use
> > > less energy than staying at full power all the time.
> >
> > Is that based on concrete figures about power consumption?
>
> No.
Well, I have no idea how to improve this much without hideous
overengineering.
> > And it seems to me that we need a way to indicate that the heuristics
> > should not be used, but a device immediately suspended. The timer
> > is sensible only if the next wakeup is unknown.
>
> The driver can always turn off autosuspend if it wants to.
Yes, but this is not the point. A heuristic with a timeout makes
sense only if the uses are unpredictable. If you know with a high
degree of probability when the next activity comes, you ought to either
suspend now or not all until the next activity.
Likewise the heuristic is appropriate for leaf nodes. You get nothing
from a delay on inner nodes. Any storage (generic sense) device
is an inner node. It should suspend immediately after the block
device which is the leaf node.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-09-21 9:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-17 10:14 [PATCH] mmc: rtsx_usb_sdmmc: Handle runtime PM while changing led Ulf Hansson
[not found] ` <1474107278-3271-1-git-send-email-ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-18 2:30 ` Alan Stern
2016-09-19 9:24 ` Ulf Hansson
[not found] ` <CAPDyKFpFObRkvUC5kOKznE3FAGL6H_Hufa7ZEFWpmB694AY9ow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-19 18:02 ` Alan Stern
2016-09-20 9:34 ` Ulf Hansson
[not found] ` <CAPDyKFq2Y1vn1OjNJJg7hocbzFo-QUpezLSMWnF_1cSJ9Ot3NQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-20 14:09 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1609200951500.1459-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2016-09-21 10:39 ` Ulf Hansson
[not found] ` <CAPDyKFqgfhsOdrz5ncTh5Z_OZ6tvnMVoQ_2g7ZyM02aaVzGQWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-21 14:45 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1609211038270.1996-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2016-09-22 10:13 ` Ulf Hansson
[not found] ` <CAPDyKFozTL9h3HXoimHc4X3jeWQtJaedrfExVq1A5g7-JzcNLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-22 13:56 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1609191348440.1458-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2016-09-20 9:40 ` Oliver Neukum
2016-09-20 14:12 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1609201009470.1459-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2016-09-21 9:50 ` Oliver Neukum [this message]
[not found] ` <1474451450.2675.13.camel-IBi9RG/b67k@public.gmane.org>
2016-09-21 14:35 ` Alan Stern
2016-09-22 13:24 ` Oliver Neukum
[not found] ` <1474550656.11364.32.camel-IBi9RG/b67k@public.gmane.org>
2016-09-22 14:00 ` Alan Stern
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=1474451450.2675.13.camel@suse.com \
--to=oneukum-ibi9rg/b67k@public.gmane.org \
--cc=linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=micky_ching-kXabqFNEczNtrwSWzY7KCg@public.gmane.org \
--cc=rogerable-Rasf1IRRPZFBDgjK7y7TUQ@public.gmane.org \
--cc=rrs-7WuBAv+fczCJ8c2fQYRYNw@public.gmane.org \
--cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org \
--cc=ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=wei_wang-kXabqFNEczNtrwSWzY7KCg@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