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

2020-07-31 Thread Stanley Chu
Hi Can, On Fri, 2020-07-31 at 16:58 +0800, Can Guo wrote: > Hi Stanley, > > On 2020-07-31 16:22, Stanley Chu wrote: > > Hi Can, > > > > On Mon, 2020-07-27 at 15:30 +0800, Can Guo wrote: > >> Hi Stanley, > >> > >> On 2020-07-24 22:01, Stanley Chu wrote: > >> > Currently I/O request could be stil

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

2020-07-31 Thread Stanley Chu
Hi Can, On Mon, 2020-07-27 at 15:30 +0800, Can Guo wrote: > Hi Stanley, > > On 2020-07-24 22:01, 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 v4] scsi: ufs: Quiesce all scsi devices before shutdown

2020-07-27 Thread Can Guo
Hi Stanley, On 2020-07-24 22:01, 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, specifi

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

2020-07-24 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, specifically quiesce all SCSI devices before UFS shutdown to b