linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson@stericsson.com>
To: Chris Ball <cjb@laptop.org>
Cc: Ulf HANSSON <ulf.hansson@stericsson.com>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Per FORLIN <per.forlin@stericsson.com>,
	Johan RUDHOLM <johan.rudholm@stericsson.com>,
	Lee Jones <lee.jones@linaro.org>,
	vitalywool@gmail.com
Subject: Re: [PATCH V2 0/2] mmc: Minimize resume time for sd/mmc
Date: Tue, 3 Jan 2012 16:24:34 +0100	[thread overview]
Message-ID: <4F031DB2.7010808@stericsson.com> (raw)
In-Reply-To: <1323875170-7103-1-git-send-email-ulf.hansson@stericsson.com>

Hi Chris,

I have received some great comments some Vitaly Wool around the patch 2
"mmc: Minimize resume-time by deferring resume".

It would be interesting to hear if you or someone else has any thinking 
around these patches. Vitaly were mainly thinking of a pm_qos approach, 
which still is a bit unclear to me how to implement.

Any suggestion would be great! :-)

Regarding patch 1:
mmc: block: Remove use of mmc_blk_set_blksize
This patch could be discussed separately without patch 2. Do you want me 
to push this patch on it's own?


BR
Ulf Hansson



Ulf HANSSON wrote:
> Typically an sd/mmc card takes around 200 - 1100 ms to
> initialize when the power to the card has been cut, which
> is what happens during a suspend/resume sequence.
> 
> All device's resume time adds up to the total kernel resume
> time. Some use cases requires the kernel to be resumed fast,
> to be able to meet deadlines. One use case example is WLAN
> SOFT_AP, but there are certainly more.
> 
> This patch serie deferres the resume for mmc/sd cards into
> a delayed work to be able to respond quickly on the suspend
> request. Earlier the blkdev were issuing a set_blksize as a
> part of the blkdev resume, which right now is removed since
> it is not needed. In future, if other block sizes than 512
> bytes is used, this needs to be re-implemented in a different
> manner.
> 
> A deferred resume feature has been discussed on the mmc-list
> previously but did not end up in a final patch/solution.
> 
> Ulf Hansson (2):
>   mmc: block: Remove use of mmc_blk_set_blksize
>   mmc: Minimize resume-time by deferring resume
> 
>  drivers/mmc/card/block.c |   35 +++++++++--------------------------
>  drivers/mmc/core/core.c  |   36 +++++++++++++++++++++++++++++++++++-
>  drivers/mmc/core/core.h  |    1 +
>  drivers/mmc/core/host.c  |    1 +
>  include/linux/mmc/host.h |   16 ++++++++++++++++
>  5 files changed, 62 insertions(+), 27 deletions(-)
> 


      parent reply	other threads:[~2012-01-03 15:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14 15:06 [PATCH V2 0/2] mmc: Minimize resume time for sd/mmc Ulf Hansson
2011-12-14 15:06 ` [PATCH V2 1/2] mmc: block: Remove use of mmc_blk_set_blksize Ulf Hansson
2011-12-14 15:06 ` [PATCH V2 2/2] mmc: Minimize resume-time by deferring resume Ulf Hansson
     [not found]   ` <CAMJBoFNU_+Ah8oxXy2Smr5L5oZ4wjZ1m8v6sp-kVcxgk4kYmNg@mail.gmail.com>
2011-12-14 15:29     ` Ulf Hansson
     [not found]       ` <CAMJBoFM9v9ugDL8gtNJ+AMCKmvOsUQHEmEf13VDXko41AkFfFA@mail.gmail.com>
     [not found]         ` <CAMJBoFPcBzezFDRXpL36zJZTttGgUFzDCUaFC69Pxg+gEWcAOw@mail.gmail.com>
2011-12-14 16:43           ` Ulf Hansson
     [not found]             ` <CAMJBoFPSEtM1rQ7Rq8d+Y6Qgd_GKq2o4p=vk60wZdbJ_Mhk_Gw@mail.gmail.com>
2011-12-15  9:22               ` Ulf Hansson
     [not found]                 ` <CAMJBoFN5tub+Lv5p2Ae3UQY48G2TMBBmdkdsA1TNDqf2stDGVg@mail.gmail.com>
2011-12-19 11:03                   ` Ulf Hansson
     [not found]                   ` <4EEF0541.6070306@stericsson.com>
2011-12-19 12:21                     ` Ulf Hansson
2012-01-03 15:24 ` Ulf Hansson [this message]

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=4F031DB2.7010808@stericsson.com \
    --to=ulf.hansson@stericsson.com \
    --cc=cjb@laptop.org \
    --cc=johan.rudholm@stericsson.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=per.forlin@stericsson.com \
    --cc=vitalywool@gmail.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 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).