]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Directly snapshot registers when executing a reset
authorJianqin Xie <xiejianqin@hisilicon.com>
Tue, 6 Apr 2021 11:48:29 +0000 (19:48 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Apr 2021 03:21:26 +0000 (23:21 -0400)
commit36d313eeb2159aad32f67d41006f16d5b302b9a5
tree48060c7d0ce56cba4078fcd8e1c1af364d149b07
parent8087f22aaf97368ecd13ff780b4a71debdbd7fdb
scsi: hisi_sas: Directly snapshot registers when executing a reset

The debugfs snapshot should be executed before the reset occurs to ensure
that the register contents are saved properly.

As such, it is incorrect to queue the debugfs dump when running a reset as
the reset will occur prior to the snapshot work item is handler.

Therefore, directly snapshot registers in the reset work handler.

Link: https://lore.kernel.org/r/1617709711-195853-5-git-send-email-john.garry@huawei.com
Signed-off-by: Jianqin Xie <xiejianqin@hisilicon.com>
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c