public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: "S, Venkatraman" <svenkatr@ti.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	linux-mmc <linux-mmc@vger.kernel.org>,
	Chris Ball <cjb@laptop.org>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Hanumath Prasad <hanumath.prasad@stericsson.com>,
	Per FORLIN <per.forlin@stericsson.com>,
	Sebastian Rasmussen <sebras@gmail.com>,
	"Dong, Chuanxiao" <chuanxiao.dong@intel.com>,
	Konstantin Dorfman <kdorfman@codeaurora.org>
Subject: Re: [PATCH v6] mmc: support BKOPS feature for eMMC
Date: Fri, 20 Jan 2012 16:50:23 +0900	[thread overview]
Message-ID: <4F191CBF.4080005@samsung.com> (raw)
In-Reply-To: <4F19183D.6080105@intel.com>

On 01/20/2012 04:31 PM, Adrian Hunter wrote:

> On 19/01/12 17:32, S, Venkatraman wrote:
>> On Thu, Jan 19, 2012 at 5:14 PM, Adrian Hunter <adrian.hunter@intel.com> wrote:
>>> On 19/01/12 13:33, Jaehoon Chung wrote:
>>>> Hi Adrian.
>>>>
>>>> On 01/19/2012 07:21 PM, Adrian Hunter wrote:
>>>>
>>>>> On 19/01/12 07:29, Jaehoon Chung wrote:
>>>>>> Enable eMMC background operations (BKOPS) feature.
>>>>>>
>>>>>> If URGENT_BKOPS is set after a response, note that BKOPS
>>>>>> are required. After all I/O requests are finished, run
>>>>>> BKOPS if required. Should read/write operations be requested
>>>>>> during BKOPS, first issue HPI to interrupt the ongoing BKOPS
>>>>>> and then service the request.
>>>>>
>>>>> This still does not seem to address my earlier comment which was:
>>>>>
>>>>> The main problem with bkops is:
>>>>>
>>>>>      If the status is at level 3 ("critical"), some operations
>>>>>      may extend beyond their original timeouts due to maintenance
>>>>>      operations which cannot be delayed anymore.
>>>>>
>>>>> This means:
>>>>>
>>>>>      1. at level 3 either bkops are run or the timeout of the next
>>>>>      (data?) operation is extended
>>>>>
>>>>>      2. at level 3 either the bkops must not be interrupted or the
>>>>>      level must be rechecked after interruption and bkops run again
>>>>>      if the level is still 3, or the timeout of the next (data?)
>>>>>      operation is extended
>>>>>
>>>>
>>>> This patch didn't issue the HPI when bkops-status is level2-3
>>>> (URGENT_BKOPS case).
>>>> I didn't understand that must be recheck?? it's case of using HPI..?
>>>> If HPI didn't issue,though must be recheck bkops status?
>>>> And level-1 control should be considered for future-work.
>>>> I will also modify the patch comment..it's confused something.
>>>
>>> 1. Say there are 2 write requests queued and after the first write request
>>> the bkops level is 3.  That means the 2nd write request may timeout because
>>> the normal timeout rules do not apply.
>>>
>>> Thus:
>>>        1. at level 3 either bkops are run or the timeout of the next
>>>        (data?) operation is extended
>>>
>>> 2. Say you are running bkops because the level was 3 and a write request
>>> arrives.  You use HPI to interrupt the bkops, but the bkops level may still
>>> be 3, so the write request may timeout.  Hence:
>>>
>>>        2. at level 3 either the bkops must not be interrupted or the
>>>        level must be rechecked after interruption and bkops run again
>>>        if the level is still 3, or the timeout of the next (data?)
>>>        operation is extended
>>>
>>
>> A naive question perhaps, but don't the current timeout values include
>> sufficient
>> buffer to do implicit garbage collection anyways ?
> 
> Maybe, but the problem is the JEDEC specification says otherwise.  This bit
> is a quote:
> 
> 	If the status is at level 3 ("critical"), some operations
> 	may extend beyond their original timeouts due to maintenance
> 	operations which cannot be delayed anymore.
> 
> I think level 3 is a very rare case so I would just run bkops and wait for
> it to finish without interruption.

Yes..JEDEC spec say those..but I think not bad that wait for bkops-done..
actually i didn't know how long time run the bkops...
so i think the use the hpi command..then re-check the bkops-status until clear status.
(i think the request's priority is higher than any bkops status)

it would be open to interpretation that sentence.

Best Regards,
Jaehoon Chung

> --
> 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:[~2012-01-20  7:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-19  5:29 [PATCH v6] mmc: support BKOPS feature for eMMC Jaehoon Chung
2012-01-19 10:21 ` Adrian Hunter
2012-01-19 11:33   ` Jaehoon Chung
2012-01-19 11:44     ` Adrian Hunter
2012-01-19 14:22       ` Jae hoon Chung
2012-01-19 15:32       ` S, Venkatraman
2012-01-20  7:31         ` Adrian Hunter
2012-01-20  7:50           ` Jaehoon Chung [this message]
2012-01-20 11:30             ` Adrian Hunter
2012-01-20 13:37               ` Jae hoon 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=4F191CBF.4080005@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=adrian.hunter@intel.com \
    --cc=chuanxiao.dong@intel.com \
    --cc=cjb@laptop.org \
    --cc=hanumath.prasad@stericsson.com \
    --cc=kdorfman@codeaurora.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=per.forlin@stericsson.com \
    --cc=sebras@gmail.com \
    --cc=svenkatr@ti.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