From patchwork Thu Oct 24 14:08:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 177499 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2247281ill; Thu, 24 Oct 2019 07:11:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjVIGZojfyYmbcCqRCOLzs1LTuvII/5h87UY7bcQQ0xf0ZwCfc4aS+nkWXttiv3MO6HLHX X-Received: by 2002:aa7:db43:: with SMTP id n3mr43375607edt.176.1571926302362; Thu, 24 Oct 2019 07:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571926302; cv=none; d=google.com; s=arc-20160816; b=mV70MK8dQXZbwo8cIqsYGWQogggsgs+c2Vu0w4UxkC1EysV+ahmjTiiukcO2kyKC08 6o0STbxCWQmag2r2s4+nbFUjC4gvxOt4eUf6K8iWk3QCr/4/JWmjIsQ3irc6Dyn2l4YN v21Buv1UdvIfgOqNET7FZzuLyh5WTWRi5V8uTpu+NCP9IWO7hZa9cg62pGbvIAaYyINV Ds6VPlEye9v3OSmlQoMS3xpGstItrHZHPkd0w5Lk3pPDV3QcF49jTQBfMGPq+yhBixwx GIRpkAD89so74afJWgTlJ+bWYnPNUh/h6XUYikZbXbCnOvAF72O9HJTHrx/qXt/YHpXh 5XWA== 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=t/PDa20exUQBZI5E7vA2QX7h3P5G2OaGHUol0OWHpNo=; b=SIpLgVTUhz3B5bTZh3Q15fPf1J4kfyZzy8rm6gE0OgCifLbsEtzdHKJqpkk4/MlwOs 3xI8o3G7jsWaz+zysDqXAa3lReOThObJUswGk3eLKYXZ4ynDjdy+iGf2dqgcFsyCY6VP MHxKnNdZhlANBlePAcI6wsbb0lEjMJfT+9uaFodcM8ZQXQLc8Ysu+oj0thqz9KISWSaP RSxI+hu/H34m0D+C8+nvmBpE0cG7V3gZCIiJBEHxcHKCGeWT4ToPZu22rIgCOkrdAxpR wPMyUWGwiLxDkeuvSSSnz8zgDF5n6zb1y5ovKq79ZF0IYlaijabL+c3+ddcwoMpd1imP pGeA== 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 f2si6105075eda.339.2019.10.24.07.11.42; Thu, 24 Oct 2019 07:11:42 -0700 (PDT) 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 S2409366AbfJXOLh (ORCPT + 26 others); Thu, 24 Oct 2019 10:11:37 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5156 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390869AbfJXOLg (ORCPT ); Thu, 24 Oct 2019 10:11:36 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4F47F56D21EF97D0B288; Thu, 24 Oct 2019 22:11:30 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Thu, 24 Oct 2019 22:11:23 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH v2 00/18] hisi_sas: Misc patches, mostly debugfs Date: Thu, 24 Oct 2019 22:08:07 +0800 Message-ID: <1571926105-74636-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces a couple of minor improvements in the main driver, and mostly changes in the driver debugfs support. The main change in the driver debugfs support is the ability to take multiple memory dumps, which was not available previously. And the bulk of the changes here is to create new structures for this purpose. We also add a new debugfs feature to report PHY down events, which seem to be useful to some people. Difference from v1: - fix compile error for 64b div on i386 Luo Jiaxing (14): scsi: hisi_sas: Add timestamp for a debugfs dump scsi: hisi_sas: Add debugfs file structure for CQ scsi: hisi_sas: Add debugfs file structure for DQ scsi: hisi_sas: Add debugfs file structure for registers scsi: hisi_sas: Add debugfs file structure for port scsi: hisi_sas: Add debugfs file structure for IOST scsi: hisi_sas: Add debugfs file structure for ITCT scsi: hisi_sas: Add debugfs file structure for IOST cache scsi: hisi_sas: Add debugfs file structure for ITCT cache scsi: hisi_sas: Allocate memory for multiple dumps of debugfs scsi: hisi_sas: Add module parameter for debugfs dump count scsi: hisi_sas: Add ability to have multiple debugfs dumps scsi: hisi_sas: Delete the debugfs folder of hisi_sas when the probe fails scsi: hisi_sas: Record the phy down event in debugfs Xiang Chen (4): scsi: hisi_sas: Don't create debugfs dump folder twice scsi: hisi_sas: Set the BIST init value before enabling BIST scsi: hisi_sas: use wait_for_completion_timeout() when clearing ITCT scsi: hisi_sas: Replace in_softirq() check in hisi_sas_task_exec() drivers/scsi/hisi_sas/hisi_sas.h | 67 ++++- drivers/scsi/hisi_sas/hisi_sas_main.c | 369 ++++++++++++++++--------- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 6 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 13 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 26 +- 5 files changed, 333 insertions(+), 148 deletions(-) -- 2.17.1