From: Jaehoon Chung <jh80.chung@samsung.com>
To: Sebastian Rasmussen <sebras@gmail.com>
Cc: Per Forlin <per.lkml@gmail.com>, linux-mmc@vger.kernel.org
Subject: Re: [PATCH] mmc: support BKOPS feature for eMMC
Date: Fri, 28 Oct 2011 20:01:18 +0900 [thread overview]
Message-ID: <4EAA8B7E.1040203@samsung.com> (raw)
In-Reply-To: <CAAgDR1PJFX1c3xexgv7=Ccm3HGRtu0VMDy6APWUExSHOO3aE4A@mail.gmail.com>
Hi Sebastian.
I have some question..
Maybe i think that my-patch should be worked only level-2/3..right?
Because URGENT_BKOPS bit in the EXCEPTION_EVENTS_STATUS is set whenever is either 2 or 3.
In this case, host control with R1-type response.
But in level-0/1 case, need to check BKOPS_STATUS periodically.
How did you understand that "periodically" means?
If host need to get BKOPS_STATUS periodically, maybe send CMD8 periodically.
How periodically?
Best Regards,
Jaehoon Chung
On 10/28/2011 05:51 AM, Sebastian Rasmussen wrote:
> Hi!
>
>> This patch only starts BKOPS if it's urgent or critical.
>
> Almost, it starts BKOPS when it is urgent, which per spec means level
> 2 or 3, i.e. when performance is impacted or when it is critical.
> Better use the specs terminology as far as possible to relieve
> everyone of confusion.
>
>> I would be preferable to run bkops periodically and only when
>> the card is idle to minimize the risk of reaching URGENT.
>
> Well, you kind of need both. If the eMMC is kept busy to such an
> extent that the block device is never idling then you would definitely
> require this patch, right? Otherwise you may end up wasting the time
> between the last command sent and when the device has been deemed to
> be idle for long enough.
>
> So basically the OP's patch fixes the case where, e.g. sustained
> (re-)writing, keeps the block device busy until and after it reaches
> the critical BKOPS level, while your proposal takes care of the other
> case where the block device is not accessed all the time.
>
>> The specs says:
>> -----
>> Hosts shall still read the full status from the BKOPS_STATUS byte periodically
>> and start background operations as needed.
>> -----
>
> Sure, if there is idle time to do it, then why not.
> If there is no idle time and URGENT_BKOPS is asserted, then the
> framework can not wait until the next idle period, but should issue
> BKOPS as soon as possible after the current command is finished.
>
>> I'm thinking of checking BKOPS_STATUS when the card is idle and then run bkops
>> even if level is only 1 (Operations outstanding – non critical). Would this make
>> sense?
>
> I guess this boils down to how you define idle..? Does it mean
> immediately after the current command has been fully serviced, or does
> it mean some arbitrary time after the last sent command has been fully
> serviced? My assumption is that you are refering to the latter, in
> which case certain access patterns may cause problems. So, how do
> _you_ define idle? :)
>
> / Sebastian
> --
> 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
>
next prev parent reply other threads:[~2011-10-28 11:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 11:10 [PATCH] mmc: support BKOPS feature for eMMC Jaehoon Chung
2011-10-27 11:37 ` Dong, Chuanxiao
2011-10-27 12:56 ` Kyungmin Park
2011-10-27 20:33 ` Sebastian Rasmussen
2011-10-27 20:31 ` Sebastian Rasmussen
2011-10-28 3:10 ` Dong, Chuanxiao
2011-10-27 19:26 ` Sebastian Rasmussen
2011-10-28 7:25 ` Jaehoon Chung
2011-10-27 19:35 ` Per Forlin
2011-10-27 20:51 ` Sebastian Rasmussen
2011-10-27 21:47 ` Per Forlin
2011-10-27 22:25 ` Sebastian Rasmussen
2011-11-04 15:17 ` Per Forlin
2011-10-28 11:01 ` Jaehoon Chung [this message]
2011-10-28 14:42 ` Sebastian Rasmussen
2011-10-28 17:13 ` S, Venkatraman
2011-10-28 5:14 ` Jaehoon Chung
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=4EAA8B7E.1040203@samsung.com \
--to=jh80.chung@samsung.com \
--cc=linux-mmc@vger.kernel.org \
--cc=per.lkml@gmail.com \
--cc=sebras@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 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.