From patchwork Wed Dec 19 15:56:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 10737541 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1ABD214DE for ; Wed, 19 Dec 2018 15:57:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AC132B434 for ; Wed, 19 Dec 2018 15:57:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F301D2B48D; Wed, 19 Dec 2018 15:57:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A95492B434 for ; Wed, 19 Dec 2018 15:57:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729498AbeLSPz5 (ORCPT ); Wed, 19 Dec 2018 10:55:57 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:16159 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727767AbeLSPz5 (ORCPT ); Wed, 19 Dec 2018 10:55:57 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 121F6E015B4C5; Wed, 19 Dec 2018 23:55:51 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Wed, 19 Dec 2018 23:55:43 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH 0/8] hisi_sas: debugfs support Date: Wed, 19 Dec 2018 23:56:38 +0800 Message-ID: <1545235006-151716-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)