mbox series

[0/8] hisi_sas: debugfs support

Message ID 1545235006-151716-1-git-send-email-john.garry@huawei.com
Headers show
Series hisi_sas: debugfs support | expand

Message

John Garry Dec. 19, 2018, 3:56 p.m. UTC
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

Comments

Martin K. Petersen Jan. 4, 2019, 5:54 a.m. UTC | #1
John,

> 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.


Applied to 4.22/scsi-queue, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering