Re: [PATCH v8] mmc: support BKOPS feature for eMMC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi Konstantin.
>
> On 05/10/2012 11:46 PM, kdorfman@xxxxxxxxxxxxxx wrote:
>
>> Hi Jaehoon,
>> I see 2 issues with new patch:
>> 1. New code starts BKOPS always with waiting for BUSY. (see comment
>> below
>> in the code)
>> 2. Runtime suspend (mmc_suspend_host) do not checks that BKOPS is in
>> progress,
>> this means, that CMD5 (slee) will fail.
>
> You're right. it needs to check in progress.
> I will add them.
OK, I will send you patch for runtime suspend flow (it is good to do righ
before calling ops->suspend callback in mmc_suspend_host() function.
>
>>
>>
>> In your previous patch (v7) was code:
>>
>> -	cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC;
>> +	cmd.flags = MMC_CMD_AC;
>> +	if (index == EXT_CSD_BKOPS_START &&
>> +	    card->ext_csd.raw_bkops_status < EXT_CSD_BKOPS_LEVEL_2)
>> +		cmd.flags |= MMC_RSP_SPI_R1 | MMC_RSP_R1;
>> +	else
>> +		cmd.flags |= MMC_RSP_SPI_R1B | MMC_RSP_R1B;
>>
>> When level of raw_bkops_status is not critical, the host controller
>> flags
>> used
>> without waiting for BUSY line release. This means, that mmc queue thread
>> will continue
>> to fetch requests while BKOPS still running on the card.
>> Without this code, BKOPS will always be blocking till BKOPS done and
>> using
>> HPI for interrupt BKOPS on
>> new request is not need.
>> Why you removed this code?
>
> You're right. it's my mistake. Actually i modified to use with
> __mmc_switch().
> As I remember, maybe you mentioned this point. right?
> So i tried to use based on your review. it's missing in this patch.
>
yes

> Thank you for your comment. any other comments?
> If you have others, let me know, plz.
I will check the patch and update you about it.

Thanks,
Kostya

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux