From patchwork Wed Mar 22 17:25:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 95785 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp334618qgd; Wed, 22 Mar 2017 09:58:07 -0700 (PDT) X-Received: by 10.84.209.203 with SMTP id y69mr56420740plh.179.1490201887615; Wed, 22 Mar 2017 09:58:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si2442204pgk.180.2017.03.22.09.58.07; Wed, 22 Mar 2017 09:58:07 -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 S1760791AbdCVQ6F (ORCPT + 1 other); Wed, 22 Mar 2017 12:58:05 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4366 "EHLO dggrg02-dlp.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1760780AbdCVQ6F (ORCPT ); Wed, 22 Mar 2017 12:58:05 -0400 Received: from 172.30.72.57 (EHLO DGGEML402-HUB.china.huawei.com) ([172.30.72.57]) by dggrg02-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id AKI19566; Thu, 23 Mar 2017 00:54:46 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEML402-HUB.china.huawei.com (10.3.17.38) with Microsoft SMTP Server id 14.3.301.0; Thu, 23 Mar 2017 00:54:36 +0800 From: John Garry To: , CC: , , , , , John Garry Subject: [PATCH 00/23] hisi_sas: error handling and other misc fixes and improvements Date: Thu, 23 Mar 2017 01:25:16 +0800 Message-ID: <1490203539-228029-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.58D2AC57.03A0, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0f7db50967e0dcd22573eaef626a6f40 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This patchset introduces a range of error handling and other misc improvements for the HiSilicon SAS controller, including: - controller reset function - softreset for SATA error handling - fixes for slot free'ing - v2 hw error handling improvements - and other misc, more minor stuff John Garry (14): scsi: hisi_sas: add to_hisi_sas_port() scsi: hisi_sas: move PHY init to hisi_sas_scan_start() scsi: hisi_sas: remove hisi_sas_port_deformed() scsi: hisi_sas: error hisi_sas_task_prep() when port down scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET scsi: hisi_sas: modify hisi_sas_abort_task() for SSP scsi: hisi_sas: hardreset for SATA disk in LU reset scsi: hisi_sas: check for SAS_TASK_STATE_ABORTED in slot complete scsi: hisi_sas: fix some sas_task.task_state_lock locking scsi: hisi_sas: remove task free'ing for timeouts scsi: hisi_sas: some modifications to v2 hw reg init values scsi: hisi_sas: rename hisi_sas_link_timeout_{enable, disable}_link scsi: hisi_sas: add hisi_sas_clear_nexus_ha() scsi: hisi_sas: check hisi_sas_lu_reset() error message Xiang Chen (7): scsi: hisi_sas: add controller reset scsi: hisi_sas: add softreset function for SATA disk scsi: hisi_sas: modify error handling for v2 hw scsi: hisi_sas: free slots after hardreset scsi: hisi_sas: process error codes according to their priority scsi: hisi_sas: release SMP slot in lldd_abort_task scsi: hisi_sas: use dev_is_sata to identify SATA or SAS disk Xiaofei Tan (2): scsi: hisi_sas: handle PHY UP+DOWN simultaneous irq scsi: hisi_sas: add is_sata_phy_v2_hw() drivers/scsi/hisi_sas/Kconfig | 2 +- drivers/scsi/hisi_sas/hisi_sas.h | 15 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 436 +++++++++++++----- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 19 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 789 ++++++++++++++++++++++++--------- 5 files changed, 925 insertions(+), 336 deletions(-) -- 1.9.1