]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/scsi/ufs/ufshcd.c
scsi: ufs: Add history of fatal events
authorStanley Chu <stanley.chu@mediatek.com>
Wed, 10 Jul 2019 13:38:21 +0000 (21:38 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 22 Jul 2019 20:44:06 +0000 (16:44 -0400)
commit8808b4e9dcdc908e1d48b1809416c5f80af9c87e
treee3d895928b00c6399d6e2dda4fa21d42013dd197
parentc5397f13fc744b15fc9ad5df27172885e2303c39
scsi: ufs: Add history of fatal events

Currently only "interrupt-based" errors have their own history, however
there are some "non-interrupt-based" errors or events which need history
to improve debugging or help know the health status of UFS devices.

Example of fatal errors:

 - Link startup error

 - Suspend error

 - Resume error

Example of abnormal events:

 - Task or request abort

 - Device reset (now equals to Logical Unit Reset)

 - Host reset

This patch tries to track above errors and events by existed UFS error
history mechanism.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h