public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: merez@codeaurora.org
To: Seungwon Jeon <tgih.jun@samsung.com>
Cc: merez@codeaurora.org, svenkatr@ti.com, linux-mmc@vger.kernel.org,
	'Chris Ball' <cjb@laptop.org>,
	linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
	kgene.kim@samsung.com, dh.han@samsung.com
Subject: RE: [PATCH] mmc: core: Add packed command for eMMC4.5 device
Date: Sun, 20 Nov 2011 11:41:04 -0800 (PST)	[thread overview]
Message-ID: <c55cd0ae6258c1db111aa0bd229d0e86.squirrel@www.codeaurora.org> (raw)
In-Reply-To: <004b01cca4cf$dd318f60$9794ae20$%jun@samsung.com>

> Maya Erez wrote:
>>
>> > +			if (reqs >= 2) {
>> > +				mmc_blk_packed_hdr_wrq_prep(mq->mqrq_cur, card, mq, reqs);
>> > +				if (rq_data_dir(rqc) == READ) {
>> > +					areq = &mq->mqrq_cur->mmc_active;
>> > +					mmc_wait_for_req(card->host, areq->mrq);
>> Packing read requests requires preparation of two requests. After
>> sending
>> the header we wait for its completion before sending the next request
>> (mmc_wait_for_req is used). Therefore, if we try to pack 2 read requests
>> we might end up with worse performance in comparison to sending each
>> request by itself (which allows the preparation of one request while the
>> other is sent).
>> I suggest to check the size of the packed commands list and in case it
>> is
>> less than 3 send the requests one by one. If you move
>> mmc_blk_chk_packable
>> to queue.c after the first fetch this change should be very easy and can
>> be done by removing the requests from the packed_list and calling
>> issue_fn
>> for each one of them.
>
> Sending header for packed read which doesn't require nand program
> unlike normal data, so it may not spend long time.
> Which point you think is the overhead of packed two-requests
> in comparison to individual request?
When you send the packed commands you have to send an additional sector.
When you have only 2 or even 3 requests to send this might not be
negligible.
I think it's worth checking how often we send 2-3 requests in the packed
commands and if it's better to send it separately or packed. According to
the results you can decide if it's worth handling such cases.

Thanks,
Maya Erez
Consultant for Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
>>
>>
>>
>>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>



  reply	other threads:[~2011-11-20 19:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 11:51 [PATCH] mmc: core: Add packed command for eMMC4.5 device merez
2011-11-17  2:23 ` Seungwon Jeon
2011-11-20 19:41   ` merez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-10-27 10:54 Seungwon Jeon
2011-10-27 13:22 ` S, Venkatraman
2011-10-28  5:44   ` Seungwon Jeon
2011-11-16 11:15 ` Sahitya Tummala
2011-11-17  9:20   ` Seungwon Jeon

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=c55cd0ae6258c1db111aa0bd229d0e86.squirrel@www.codeaurora.org \
    --to=merez@codeaurora.org \
    --cc=cjb@laptop.org \
    --cc=dh.han@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=svenkatr@ti.com \
    --cc=tgih.jun@samsung.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