[PATCH v2] ufs: core: clear cmd if abort success in mcq mode
Martin K. Petersen
martin.petersen at oracle.com
Fri Nov 24 18:53:35 PST 2023
On Wed, 15 Nov 2023 21:10:24 +0800, peter.wang at mediatek.com wrote:
> In mcq mode, if cmd is pending in device and abort success, response
> will not return from device. So we need clear this cmd right now,
> else command timeout happen and next time use same tag will have
> warning. WARN_ON(lrbp->cmd).
>
> Below is error log:
> <3>[ 2277.447611][T21376] ufshcd-mtk 112b0000.ufshci: ufshcd_try_to_abort_task: cmd pending in the device. tag = 7
> <3>[ 2277.476954][T21376] ufshcd-mtk 112b0000.ufshci: Aborting tag 7 / CDB 0x2a succeeded
> <6>[ 2307.551263][T30974] ufshcd-mtk 112b0000.ufshci: ufshcd_abort: Device abort task at tag 7
> <4>[ 2307.623264][ T327] WARNING: CPU: 5 PID: 327 at source/drivers/ufs/core/ufshcd.c:3021 ufshcd_queuecommand+0x66c/0xe34
>
> [...]
Applied to 6.7/scsi-fixes, thanks!
[1/1] ufs: core: clear cmd if abort success in mcq mode
https://git.kernel.org/mkp/scsi/c/93e6c0e19d5b
--
Martin K. Petersen Oracle Linux Engineering
More information about the Linux-mediatek
mailing list