* [PATCH] scsi: ufs: Increase fDeviceInit poll frequency
@ 2022-04-21 0:24 Bart Van Assche
2022-04-24 6:42 ` Avri Altman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bart Van Assche @ 2022-04-21 0:24 UTC (permalink / raw)
To: Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, Konstantin Vyshetsky,
Bart Van Assche
From: Konstantin Vyshetsky <vkon@google.com>
UFS devices are expected to clear fDeviceInit flag in single digit
milliseconds. Current values of 5 to 10 millisecond sleep add to
increased latency during the initialization and resume path. This CL
lowers the sleep range to 500 to 1000 microseconds.
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
drivers/scsi/ufs/ufshcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 3f9caafa91bf..ba9c7f9ec424 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -4438,7 +4438,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba)
QUERY_FLAG_IDN_FDEVICEINIT, 0, &flag_res);
if (!flag_res)
break;
- usleep_range(5000, 10000);
+ usleep_range(500, 1000);
} while (ktime_before(ktime_get(), timeout));
if (err) {
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH] scsi: ufs: Increase fDeviceInit poll frequency
2022-04-21 0:24 [PATCH] scsi: ufs: Increase fDeviceInit poll frequency Bart Van Assche
@ 2022-04-24 6:42 ` Avri Altman
2022-04-26 2:35 ` Martin K. Petersen
2022-05-03 0:51 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Avri Altman @ 2022-04-24 6:42 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, Konstantin Vyshetsky
> From: Konstantin Vyshetsky <vkon@google.com>
>
> UFS devices are expected to clear fDeviceInit flag in single digit milliseconds.
> Current values of 5 to 10 millisecond sleep add to increased latency during
> the initialization and resume path. This CL lowers the sleep range to 500 to
> 1000 microseconds.
>
> Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Avri Altman <avri.altman@wdc.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] scsi: ufs: Increase fDeviceInit poll frequency
2022-04-21 0:24 [PATCH] scsi: ufs: Increase fDeviceInit poll frequency Bart Van Assche
2022-04-24 6:42 ` Avri Altman
@ 2022-04-26 2:35 ` Martin K. Petersen
2022-05-03 0:51 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2022-04-26 2:35 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, Jaegeuk Kim, Adrian Hunter, linux-scsi,
Konstantin Vyshetsky
Bart,
> UFS devices are expected to clear fDeviceInit flag in single digit
> milliseconds. Current values of 5 to 10 millisecond sleep add to
> increased latency during the initialization and resume path. This CL
> lowers the sleep range to 500 to 1000 microseconds.
Applied to 5.19/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] scsi: ufs: Increase fDeviceInit poll frequency
2022-04-21 0:24 [PATCH] scsi: ufs: Increase fDeviceInit poll frequency Bart Van Assche
2022-04-24 6:42 ` Avri Altman
2022-04-26 2:35 ` Martin K. Petersen
@ 2022-05-03 0:51 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2022-05-03 0:51 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, Konstantin Vyshetsky, Jaegeuk Kim,
linux-scsi, Adrian Hunter
On Wed, 20 Apr 2022 17:24:29 -0700, Bart Van Assche wrote:
> From: Konstantin Vyshetsky <vkon@google.com>
>
> UFS devices are expected to clear fDeviceInit flag in single digit
> milliseconds. Current values of 5 to 10 millisecond sleep add to
> increased latency during the initialization and resume path. This CL
> lowers the sleep range to 500 to 1000 microseconds.
>
> [...]
Applied to 5.19/scsi-queue, thanks!
[1/1] scsi: ufs: Increase fDeviceInit poll frequency
https://git.kernel.org/mkp/scsi/c/a4e6496fca3f
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-04 5:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 0:24 [PATCH] scsi: ufs: Increase fDeviceInit poll frequency Bart Van Assche
2022-04-24 6:42 ` Avri Altman
2022-04-26 2:35 ` Martin K. Petersen
2022-05-03 0:51 ` Martin K. Petersen
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.