[PATCH v1] ufs: core: support updating device command timeout

Peter Wang (王信友) peter.wang at mediatek.com
Fri May 9 09:11:49 PDT 2025


On Fri, 2025-05-09 at 08:07 -0700, Bart Van Assche wrote:
> Does this happen with all UFS devices or only with some UFS devices?
> Is
> this behavior perhaps a firmware bug? Processing of device commands
> shouldn't be postponed until SCSI command processing has finished.

Hi Bart,

We inquired with three UFS device vendors. Samsung and SKHynix
will need 30 seconds, while Micron does not have a specific number.


> This change makes it impossible to reduce the device command timeout
> below 1.5 seconds. I think that setting lower values can be useful
> for
> error injection purposes.
> 
> Thanks,
> 
> Bart.

Do you have a recommended number? Would min value 1 ms be acceptable?

Thanks.
Peter


More information about the Linux-mediatek mailing list