scsi: hisi_sas: Snapshot HW cache of IOST and ITCT at debugfs
authorLuo Jiaxing <luojiaxing@huawei.com>
Mon, 5 Aug 2019 13:48:01 +0000 (21:48 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 02:13:14 +0000 (22:13 -0400)
commitbbe0a7b348b336625292092c74fc7817aeb8d30b
tree7d8bacc8270fc99e25e91af17504695f1fe5b511
parentbee0cf25c030776a8ecfc3c951d3b73259dc6839
scsi: hisi_sas: Snapshot HW cache of IOST and ITCT at debugfs

The value of IOST/ITCT is updated to cache first, and then synchronize to
DDR periodically. So the value in IOST/ITCT cache is the latest data and
it's important for debugging.

So, the HW cache of IOST and ITCT should be snapshot at debugfs.

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