Skip to content

Fix a rare crash in the UFS driver

Bart Van Assche linux-scsi 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scsi: ufs: Declare ufshcd_mcq_poll_cqe_lock() oncedrivers/ufs/core/ufshcd-priv.h+0 -20 replies
2/4scsi: ufs: Make ufshcd_poll() complain about unsupported argumentsdrivers/ufs/core/ufshcd.c+1 -00 replies
3/4scsi: ufs: Make the polling code report which command has been completeddrivers/ufs/core/ufs-mcq.c drivers/ufs/core/ufshcd-priv.h drivers/ufs/core/ufshcd.c +3 more+52 -250 replies
4/4scsi: ufs: Check for completion from the timeout handlerdrivers/ufs/core/ufshcd.c+19 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Fix a rare crash in the UFS driver

Hi Martin,

Sporadic crashes have been observed with the UFS kernel driver if a timeout occurs. This patch series fixes these crashes. Please consider this patch series for the next merge window.

Thanks,

Bart.

Changes compared to v1: fixed a build error in the MediaTek driver.

Bart Van Assche (4):
scsi: ufs: Declare ufshcd_mcq_poll_cqe_lock() once
scsi: ufs: Make ufshcd_poll() complain about unsupported arguments
scsi: ufs: Make the polling code report which command has been
completed
scsi: ufs: Check for completion from the timeout handler

 drivers/ufs/core/ufs-mcq.c      | 25 +++++++++-----
 drivers/ufs/core/ufshcd-priv.h  |  6 ++--
 drivers/ufs/core/ufshcd.c       | 61 ++++++++++++++++++++++++++-------
 drivers/ufs/host/ufs-mediatek.c |  2 +-
 drivers/ufs/host/ufs-qcom.c     |  2 +-
 include/ufs/ufshcd.h            |  3 +-
 6 files changed, 72 insertions(+), 27 deletions(-)