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: 154271 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5092338ljp; Wed, 19 Dec 2018 07:56:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/WB2Cg070EgxiwOr6IRQDDbrnMrmpW1fLat+lVi6Y13iM/zQ/VQntVz/ef788sd7sdEu9uk X-Received: by 2002:a62:7086:: with SMTP id l128mr20870073pfc.68.1545234960075; Wed, 19 Dec 2018 07:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545234960; cv=none; d=google.com; s=arc-20160816; b=W60CZkBQA/QxnqKejoFK3RJYP/UF8QhGEESomkDZU3bW3yo3PORqfUdA5hATZw7z9a eikx7ez3XZNGXbDAEescb0PJmj9pzcB+gWdwtg7O6m0WfUqruSUwQY6U451OIB//9/WA Do1Joxr2FLm34XyRHh/YPg2fxx/+2cEdYP30WKdbb64lIp5M08tdoezIL/I513aSetQF ifmuAhJKiiKVKdNJmQZgTTNa1Hw1j//wEsaDLMPnqdTG/S2s4e4t2gKh4cCQtYbRpoi8 NKqhe4Ffni/vD/3m7ODBACj+pQ2om+LSvMomPdavTraiJibrPn7G9CoqJYPML94DKGLq lszw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6Tywx+ZISveT/oC5kfyEElMV2umQ2X9kUUCVJ0ojB4Q=; b=yjqSNc1wjeVaiSZ1846edRkD7I1ckFVMTJ6KtfM0+ykhQWlfimGferbc7cn7kS1WyY 3jq3cUEA9P8c8krDrq2Gt6UNaUviX0iUP5BuGEXnTPq1cCUZ1L8OGbFyo8C7Y5Gz0MV/ li14faKrSLcbvfegCSfUvQV9TfmXizk6ryYDr1LGoEy3IhXRRVyLC6OcIN6qT2hDUoAd RbGvUC21yuoz20aa9JjGQrV8CspUwElA7B9ypuzj1rjEqVeG1k2ilpK0sSMuMy2PLx1L Te3zxokFILLS7tSOltdchblX/hMRkc22oZL0s2AHqD2onEgwlp4zqtPBSeVx0cXQVNge Bv6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si15627065plr.31.2018.12.19.07.55.59; Wed, 19 Dec 2018 07:56:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730418AbeLSPz5 (ORCPT + 31 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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