From: Markus Niebel <list-09_linux-mmc@tqsc.de>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: linux-mmc@vger.kernel.org
Subject: Re: mmc: eMMC BKOPS status handling lock for non urgent case
Date: Mon, 15 Sep 2014 15:13:39 +0200 [thread overview]
Message-ID: <5416E603.7050406@tqsc.de> (raw)
In-Reply-To: <54125E48.7030603@samsung.com>
Hello,
Am 12.09.2014 um 04:45 schrieb Jaehoon Chung:
> Hi,
>
> On 09/08/2014 05:15 PM, Markus Niebel wrote:
>> Hello Jaehoon Chung
>>
>>>> Hello,
>>>>
>>>> experimenting with the current BKOPS code we found, that when triggering from BKOPS_LEVEL 1,
>>>> the status stored with mmc_card_set_doing_bkops is never reset preventing BKOPS from working.
>>> In now, bkops is working for upper case than LEVEL_2 (urgent case).
>>> Patch of LEVEL_1's case has sent at mailing, maybe you can found it.
>>
>> I will look for it.
>>
>>>
>>>>
>>>> Since I'm not an expert in the mmc subsystem I ask for a hint where to look for completion
>>>> and implement proper status reset.
>>>
>>> Could you explain to me more?
>>
>> If starting BKOPS with BKOPS_LEVEL 1 a switch (CMD6) without wait for completion (status polling)
>> is issued an a status variable is set. I did'nt find a place where this status is reset.
>
> You means when BKOPS_LEVEL_1 is set, this status didn't reset anywhere, right?
> I didn't know why this value needs to reset.
> Before starting BKOPS, always read the bkops-status from card's ext_csd register.
> Then it should be re-assigned to the new status value.
>
> we didn't refer to bkops-status for starting bkops or not.
>
in drivers/mmc/core/core.c:
void mmc_start_bkops(struct mmc_card *card, bool from_exception)
a driver internal status is checked with mmc_card_doing_bkops(card)
and in case the state is set nothing will be done
At the end of the function the state is set with mmc_card_set_doing_bkops(card)
for the non urgent case
The state is only reset from mmc_stop_bkops which is only called from _mmc_suspend
> Best Regards,
> Jaehoon Chung
Best Regards,
Markus Niebel
prev parent reply other threads:[~2014-09-15 13:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-29 16:49 mmc: eMMC BKOPS status handling lock for non urgent case Markus Niebel
2014-09-03 1:47 ` Jaehoon Chung
2014-09-08 8:15 ` Markus Niebel
2014-09-12 2:45 ` Jaehoon Chung
2014-09-15 13:13 ` Markus Niebel [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=5416E603.7050406@tqsc.de \
--to=list-09_linux-mmc@tqsc.de \
--cc=jh80.chung@samsung.com \
--cc=linux-mmc@vger.kernel.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 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.