[PATCH 0/8] hisi_sas: debugfs support

From: John Garry
Date: Wed Dec 19 2018 - 10:56:00 EST


This patchset adds debugfs support for capturing driver state for
particular times when the HW has malfunctioned (and we must reset the HW).

Every controller HW version has had bugs. These bugs have been very
painful to debug. One useful tool to debug these is being able to capture
and export HW registers and driver control structures at point of failure.

This feature has been maintained out-of-tree for some time, so add it now.

Luo Jiaxing (8):
scsi: hisi_sas: Create root and device debugfs directories
scsi: hisi_sas: Alloc debugfs snapshot buffer memory for all registers
scsi: hisi_sas: Take debugfs snapshot for all regs
scsi: hisi_sas: Debugfs global register create file and add file
operations
scsi: hisi_sas: Add debugfs for port registers
scsi: hisi_sas: Add debugfs CQ file and add file operations
scsi: hisi_sas: Add debugfs DQ file and add file operations
scsi: hisi_sas: Add debugfs IOST file and add file operations

drivers/scsi/hisi_sas/hisi_sas.h | 47 ++-
drivers/scsi/hisi_sas/hisi_sas_main.c | 508 +++++++++++++++++++++++++++++++++
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 9 +-
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 174 ++++++++++-
4 files changed, 732 insertions(+), 6 deletions(-)

--
1.9.1