* [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
@ 2023-03-14 20:58 Bart Van Assche
2023-03-15 12:41 ` Adrian Hunter
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Bart Van Assche @ 2023-03-14 20:58 UTC (permalink / raw)
To: Martin K . Petersen
Cc: Jaegeuk Kim, Avri Altman, Adrian Hunter, linux-scsi,
Bart Van Assche, James E.J. Bottomley, Bean Huo, Stanley Chu,
Asutosh Das
Neither UFS host controllers nor UFS devices require a ten second delay
after a host reset or after a bus reset. Hence this patch.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
drivers/ufs/core/ufshcd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 172d25fef740..ce7b765aa2af 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -8744,6 +8744,7 @@ static struct scsi_host_template ufshcd_driver_template = {
.max_sectors = (1 << 20) / SECTOR_SIZE, /* 1 MiB */
.max_host_blocked = 1,
.track_queue_depth = 1,
+ .skip_settle_delay = 1,
.sdev_groups = ufshcd_driver_groups,
.rpm_autosuspend_delay = RPM_AUTOSUSPEND_DELAY_MS,
};
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-14 20:58 [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay Bart Van Assche
@ 2023-03-15 12:41 ` Adrian Hunter
2023-03-15 13:43 ` Avri Altman
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Adrian Hunter @ 2023-03-15 12:41 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen
Cc: Jaegeuk Kim, Avri Altman, linux-scsi, James E.J. Bottomley,
Bean Huo, Stanley Chu, Asutosh Das
On 14/03/23 22:58, Bart Van Assche wrote:
> Neither UFS host controllers nor UFS devices require a ten second delay
> after a host reset or after a bus reset. Hence this patch.
>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> drivers/ufs/core/ufshcd.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 172d25fef740..ce7b765aa2af 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -8744,6 +8744,7 @@ static struct scsi_host_template ufshcd_driver_template = {
> .max_sectors = (1 << 20) / SECTOR_SIZE, /* 1 MiB */
> .max_host_blocked = 1,
> .track_queue_depth = 1,
> + .skip_settle_delay = 1,
> .sdev_groups = ufshcd_driver_groups,
> .rpm_autosuspend_delay = RPM_AUTOSUSPEND_DELAY_MS,
> };
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-14 20:58 [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay Bart Van Assche
2023-03-15 12:41 ` Adrian Hunter
@ 2023-03-15 13:43 ` Avri Altman
2023-03-15 15:53 ` Bart Van Assche
2023-03-17 3:11 ` Martin K. Petersen
2023-03-24 21:06 ` Martin K. Petersen
3 siblings, 1 reply; 9+ messages in thread
From: Avri Altman @ 2023-03-15 13:43 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, James E.J. Bottomley,
Bean Huo, Stanley Chu, Asutosh Das
>
> Neither UFS host controllers nor UFS devices require a ten second delay
> after a host reset or after a bus reset. Hence this patch.
Bus reset handler is not implemented for ufs.
Thanks,
Avri
>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---
> drivers/ufs/core/ufshcd.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 172d25fef740..ce7b765aa2af 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -8744,6 +8744,7 @@ static struct scsi_host_template
> ufshcd_driver_template = {
> .max_sectors = (1 << 20) / SECTOR_SIZE, /* 1 MiB */
> .max_host_blocked = 1,
> .track_queue_depth = 1,
> + .skip_settle_delay = 1,
> .sdev_groups = ufshcd_driver_groups,
> .rpm_autosuspend_delay = RPM_AUTOSUSPEND_DELAY_MS,
> };
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-15 13:43 ` Avri Altman
@ 2023-03-15 15:53 ` Bart Van Assche
2023-03-15 22:13 ` Avri Altman
0 siblings, 1 reply; 9+ messages in thread
From: Bart Van Assche @ 2023-03-15 15:53 UTC (permalink / raw)
To: Avri Altman, Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, James E.J. Bottomley,
Bean Huo, Stanley Chu, Asutosh Das
On 3/15/23 06:43, Avri Altman wrote:
>> Neither UFS host controllers nor UFS devices require a ten second delay
>> after a host reset or after a bus reset. Hence this patch.
>
> Bus reset handler is not implemented for ufs.
Hi Avri,
Do you perhaps want me to remove the reference to "bus reset" from the
patch description?
Thanks,
Bart.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-15 15:53 ` Bart Van Assche
@ 2023-03-15 22:13 ` Avri Altman
2023-03-16 0:01 ` Bart Van Assche
0 siblings, 1 reply; 9+ messages in thread
From: Avri Altman @ 2023-03-15 22:13 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, James E.J. Bottomley,
Bean Huo, Stanley Chu, Asutosh Das
> On 3/15/23 06:43, Avri Altman wrote:
> >> Neither UFS host controllers nor UFS devices require a ten second delay
> >> after a host reset or after a bus reset. Hence this patch.
> >
> > Bus reset handler is not implemented for ufs.
>
> Hi Avri,
>
> Do you perhaps want me to remove the reference to "bus reset" from the
> patch description?
Yes - this what I meant.
But aren’t we calling now scsi_report_bus_reset too soon?
Thanks,
Avri
>
> Thanks,
>
> Bart.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-15 22:13 ` Avri Altman
@ 2023-03-16 0:01 ` Bart Van Assche
2023-03-16 6:14 ` Avri Altman
0 siblings, 1 reply; 9+ messages in thread
From: Bart Van Assche @ 2023-03-16 0:01 UTC (permalink / raw)
To: Avri Altman, Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, James E.J. Bottomley,
Bean Huo, Stanley Chu, Asutosh Das
On 3/15/23 15:13, Avri Altman wrote:
> But aren’t we calling now scsi_report_bus_reset too soon?
Hi Avri,
I think that calling scsi_report_bus_reset() immediately after a host
reset has finished is fine. My understanding is that the purpose of the
reset settle delay is to prevent that commands get submitted to a SCSI
device while it is not responsive. I'm not aware of a need to wait after
a host reset has been submitted to a UFS device?
Thanks,
Bart.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-16 0:01 ` Bart Van Assche
@ 2023-03-16 6:14 ` Avri Altman
0 siblings, 0 replies; 9+ messages in thread
From: Avri Altman @ 2023-03-16 6:14 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen
Cc: Jaegeuk Kim, Adrian Hunter, linux-scsi, James E.J. Bottomley,
Bean Huo, Stanley Chu, Asutosh Das
> On 3/15/23 15:13, Avri Altman wrote:
> > But aren’t we calling now scsi_report_bus_reset too soon?
>
> Hi Avri,
>
> I think that calling scsi_report_bus_reset() immediately after a host reset has
> finished is fine. My understanding is that the purpose of the reset settle delay
> is to prevent that commands get submitted to a SCSI device while it is not
> responsive. I'm not aware of a need to wait after a host reset has been
> submitted to a UFS device?
OK. Thanks.
Avri
>
> Thanks,
>
> Bart.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-14 20:58 [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay Bart Van Assche
2023-03-15 12:41 ` Adrian Hunter
2023-03-15 13:43 ` Avri Altman
@ 2023-03-17 3:11 ` Martin K. Petersen
2023-03-24 21:06 ` Martin K. Petersen
3 siblings, 0 replies; 9+ messages in thread
From: Martin K. Petersen @ 2023-03-17 3:11 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, Jaegeuk Kim, Avri Altman, Adrian Hunter,
linux-scsi, James E.J. Bottomley, Bean Huo, Stanley Chu,
Asutosh Das
Bart,
> Neither UFS host controllers nor UFS devices require a ten second delay
> after a host reset or after a bus reset. Hence this patch.
Applied to 6.4/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay
2023-03-14 20:58 [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay Bart Van Assche
` (2 preceding siblings ...)
2023-03-17 3:11 ` Martin K. Petersen
@ 2023-03-24 21:06 ` Martin K. Petersen
3 siblings, 0 replies; 9+ messages in thread
From: Martin K. Petersen @ 2023-03-24 21:06 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, Jaegeuk Kim, Avri Altman, Adrian Hunter,
linux-scsi, James E.J. Bottomley, Bean Huo, Stanley Chu,
Asutosh Das
On Tue, 14 Mar 2023 13:58:12 -0700, Bart Van Assche wrote:
> Neither UFS host controllers nor UFS devices require a ten second delay
> after a host reset or after a bus reset. Hence this patch.
>
>
Applied to 6.4/scsi-queue, thanks!
[1/2] scsi: ufs: core: Disable the reset settle delay
https://git.kernel.org/mkp/scsi/c/fb5ea4f5202b
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-03-24 21:07 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 20:58 [PATCH 1/2] scsi: ufs: core: Disable the reset settle delay Bart Van Assche
2023-03-15 12:41 ` Adrian Hunter
2023-03-15 13:43 ` Avri Altman
2023-03-15 15:53 ` Bart Van Assche
2023-03-15 22:13 ` Avri Altman
2023-03-16 0:01 ` Bart Van Assche
2023-03-16 6:14 ` Avri Altman
2023-03-17 3:11 ` Martin K. Petersen
2023-03-24 21:06 ` 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.