From patchwork Fri Sep 6 12:55:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 173224 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp600048oce; Fri, 6 Sep 2019 05:58:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyyYl676OJ9EyxWkzgWz1XQCICRg5Ku78KPmIvTIwXwz+C0M7hf3g8B0EfPliMJ0ZttKcD X-Received: by 2002:a17:90a:3aa6:: with SMTP id b35mr9560138pjc.94.1567774693374; Fri, 06 Sep 2019 05:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567774693; cv=none; d=google.com; s=arc-20160816; b=MaKUMsHVR6ypG2yv7feNVohowX1rDxDRBnU7R3aW5VFIdc4RE2yJr1YTXGhYLctwgo 6ENOwfxDjGARNTd+q4E08GWbzRe0wzWVBZLrvfNUj/DdVqnuaof2ncxRsGVB9VCMLbUq otni5npfPxmgs6y8ko7Onb9OZtIHvGUomwVsAOiiXE6ZJQsJy9m71pXJH/RbDNmRpUnM hr7VI5/QbHj2rnufJBd/vtPRvDW5giPNRSAeos+u0qcneYtRZj+C9B3ni+0JkdeaGGaS adwiGfMY9R9Drk35ZcWQ4OCnVWce1Vvr3Ovdi/H63TOj8TciFgZuia5Ag6X386yG/W4F ME0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=k8+WxB6sncMqMKKAOu8K75Y/KBOInZgwdxYG4WM8Bok=; b=qVrRCnVZRyg7vj6oYUqFfMeCzIjQlRUvYbQNHaQOljgPX+o/QJrolqdtIopFeEMG0X RI/rLnEzg6TIl+piyXEkL8V7aucOOrEAHaG/NFEEQaPp91lf3eVAw6NvEUUPYeedmOkR VtBeizvN2Q5uc86x5vmbPCQjPFihwFDVPWGMnQD73D4P1W0fRMx6BZ2FrYMbo/WYyoXK A/JnCvwldhhDZBuCzptx4jdLIuCbUbffitQVxgCl+APlUnwIllV4HAsJAiF8UH8y7Uek 4mJrIMnh3t3iWabkpCskZb4vtggOhe8Xx/3NVhOqD6eUqs1ggAFnhvN+0stWQQHv74qW XD4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-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 c25si4254261pgm.73.2019.09.06.05.58.13 for ; Fri, 06 Sep 2019 05:58:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404887AbfIFM6M (ORCPT ); Fri, 6 Sep 2019 08:58:12 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7132 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404861AbfIFM6M (ORCPT ); Fri, 6 Sep 2019 08:58:12 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CEEA82A4FE2AF703E393; Fri, 6 Sep 2019 20:58:10 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Sep 2019 20:58:00 +0800 From: John Garry To: , CC: , , , Luo Jiaxing , "John Garry" Subject: [PATCH 01/13] scsi: hisi_sas: add debugfs auto-trigger for internal abort time out Date: Fri, 6 Sep 2019 20:55:25 +0800 Message-ID: <1567774537-20003-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1567774537-20003-1-git-send-email-john.garry@huawei.com> References: <1567774537-20003-1-git-send-email-john.garry@huawei.com> 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 From: Luo Jiaxing This trigger is add at _hisi_sas_internal_task_abort() Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index d60eaaa4c5e8..03e953862412 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -2060,6 +2060,9 @@ _hisi_sas_internal_task_abort(struct hisi_hba *hisi_hba, /* Internal abort timed out */ if ((task->task_state_flags & SAS_TASK_STATE_ABORTED)) { + if (hisi_sas_debugfs_enable && hisi_hba->debugfs_itct) + queue_work(hisi_hba->wq, &hisi_hba->debugfs_work); + if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { struct hisi_sas_slot *slot = task->lldd_task;