]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Alloc debugfs snapshot buffer memory for all registers
authorLuo Jiaxing <luojiaxing@huawei.com>
Wed, 19 Dec 2018 15:56:40 +0000 (23:56 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:58:37 +0000 (21:58 -0500)
commitd87db8f82c1e7b93e4be815512ab26855aebe3a6
tree681108cfb12d67f95e3299b5e030f562d3e51b72
parent11dd9404707adfc6f5358f18018b09cc60d016df
scsi: hisi_sas: Alloc debugfs snapshot buffer memory for all registers

This patch allocates snapshot memory for global reg, port regs, CQ, DQ,
IOST, ITCT.

When we fail to allocate memory for some registers, we free the memory
and set hisi_sas_debugfs_enable as 0 to stop loading debugfs from running.

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