Re: [PATCH] scsi: ufs-qcom: Fix scheduling while atomic issue

2020-05-26 Thread Martin K. Petersen
On Mon, 25 May 2020 13:41:25 -0700, Jeffrey Hugo wrote: > ufs_qcom_dump_dbg_regs() uses usleep_range, a sleeping function, but can > be called from atomic context in the following flow: > > ufshcd_intr -> ufshcd_sl_intr -> ufshcd_check_errors -> > ufshcd_print_host_regs -> ufshcd_vops_dbg_registe

Re: [PATCH] scsi: ufs-qcom: Fix scheduling while atomic issue

2020-05-26 Thread Bean Huo
On Tue, 2020-05-26 at 06:25 +, Avri Altman wrote: > > > ufs_qcom_dump_dbg_regs() uses usleep_range, a sleeping function, > > but can > > be called from atomic context in the following flow: > > > > ufshcd_intr -> ufshcd_sl_intr -> ufshcd_check_errors -> > > ufshcd_print_host_regs -> ufshcd_v

RE: [PATCH] scsi: ufs-qcom: Fix scheduling while atomic issue

2020-05-25 Thread Avri Altman
> ufs_qcom_dump_dbg_regs() uses usleep_range, a sleeping function, but can > be called from atomic context in the following flow: > > ufshcd_intr -> ufshcd_sl_intr -> ufshcd_check_errors -> > ufshcd_print_host_regs -> ufshcd_vops_dbg_register_dump -> > ufs_qcom_dump_dbg_regs > > This causes a b