From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932412AbcBYJ3y (ORCPT ); Thu, 25 Feb 2016 04:29:54 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:46198 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760377AbcBYJ2z (ORCPT ); Thu, 25 Feb 2016 04:28:55 -0500 From: John Garry To: , CC: , , , , John Garry Subject: [PATCH v2 0/6] hisi_sas: add abort and retry feature Date: Thu, 25 Feb 2016 17:42:09 +0800 Message-ID: <1456393335-38294-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.56CEC953.0093,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 5136bad4d5fd4971d29e3bddd3818d46 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces support to abort certain commands which have failed and retry. Certain errors require that the command be retried, like TRANS_TX_CREDIT_TIMEOUT_ERR in v1 hw. However, when these errors occur the IO may still be in the device, so the IO must first be aborted, and then retried. The HiSilicon SAS controller has no FW to do this work, so it needs to be done manually. Differences to v1: - check for tmf success result removed - remove query for task prior to abort - add flag to slot structure for task abort - add removal of superflous debug statement John Garry (6): hisi_sas: change tmf func complete check hisi_sas: add hisi_sas_slot_abort() hisi_sas: use slot abort in v1 hw hisi_sas: use slot abort in v2 hw hisi_sas: add hisi_sas_slave_configure() hisi_sas: update driver version to 1.3 drivers/scsi/hisi_sas/hisi_sas.h | 4 ++- drivers/scsi/hisi_sas/hisi_sas_main.c | 59 ++++++++++++++++++++++++++++++++-- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 13 ++++++++ drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 15 +++++++-- 4 files changed, 85 insertions(+), 6 deletions(-) -- 1.9.1