Re: [PATCH v6] scsi: ufs: Quiesce all scsi devices before shutdown

2020-08-03 Thread Stanley Chu
Hi Can, On Mon, 2020-08-03 at 13:03 +0800, Can Guo wrote: > Hi Stanley, > > On 2020-08-03 12:25, Stanley Chu wrote: > > Currently I/O request could be still submitted to UFS device while > > UFS is working on shutdown flow. This may lead to racing as below > > scenarios and finally system may cra

Re: [PATCH v6] scsi: ufs: Quiesce all scsi devices before shutdown

2020-08-02 Thread Can Guo
Hi Stanley, On 2020-08-03 12:25, Stanley Chu wrote: Currently I/O request could be still submitted to UFS device while UFS is working on shutdown flow. This may lead to racing as below scenarios and finally system may crash due to unclocked register accesses. To fix this kind of issues, in ufsh

[PATCH v6] scsi: ufs: Quiesce all scsi devices before shutdown

2020-08-02 Thread Stanley Chu
Currently I/O request could be still submitted to UFS device while UFS is working on shutdown flow. This may lead to racing as below scenarios and finally system may crash due to unclocked register accesses. To fix this kind of issues, in ufshcd_shutdown(), 1. Use pm_runtime_get_sync() instead of