RE:(2) [PATCH] scsi: ufs: core: fix devfreq deadlocks
From: Jinyoung CHOI
Date: Thu Jan 05 2023 - 21:27:56 EST
>> On 1/4/23 06:10, Asutosh Das wrote:
>> > Load based toggling of WB seemed fine to me then.
>> > I haven't thought about another method to toggle WriteBooster yet.
>> > Let me see if I can come up with something.
>> > IMT if you have a mechanism in mind, please let me know.
>>
>> Hi Asutosh,
>>
>> Which UFS devices need this mechanism? All UFS devices I'm familiar with can
>> achieve wire speed for large write requests without enabling the WriteBooster.
>This feature assures SLC-performance for writes to the WriteBooster buffer.
>So enabling it is advantageous as far as write performance.
I agree with you. Also, it can be used in various ways.
>As for the toggling functionality, compared to e.g. enabling it on init and leave it on,
>some flash vendors require it because of device health considerations.
>This is not the case for us, so let others to comment.
In our case, it does not matter whether to toggle or not.
To make the code simple, it seems to be a good way to enable it on init and leave it on.
Considering device health, WB can be disabled through lifetime check.
Thanks,
Jinyoung.
>
>Thanks,
>Avri
>>
>> Thanks,
>>
>> Bart.