Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1137802pxm; Thu, 3 Mar 2022 11:02:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiRvpWQY3zE7dEiENBIAUowmrGczFBmVXeXvnPSP2RJWEICBmjF8WuvLOxWsBLFGCkYN/b X-Received: by 2002:a17:906:4443:b0:6cf:6a7d:5f9b with SMTP id i3-20020a170906444300b006cf6a7d5f9bmr28150066ejp.12.1646334179346; Thu, 03 Mar 2022 11:02:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646334179; cv=none; d=google.com; s=arc-20160816; b=mhHK0UFBszLvdRiN9vIiHJhfmE5/4ynEj02UbE7C6UdcGwTpccVnv1PoEKzuvNm07/ ZxNYMrUDnT5ogbYS+DRtNMs2ze7BKEWqZfHnI6Wl6Iq5LFoiEZvqTTdpXGm1Q0o6j2q2 xEXaPNgFTHSgCl2zJwt0eWs+FRRDsYKkgoLtPpTX3Svr5og+1Eaupp7ud77GJOlUawtJ NyQNEU1PTw/vU4nQ2+wMLUXmhlSpmvtaRS0l07wDKArH1D/OkkfkGAGggFSJpcTosXLM JvkLAfFKearqK5Q+GavTTSgAsH8o8fci+dGYkfmrFbqNXTOTGAyiFOxFSgSRjNn6imea n0Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=FfbAH4fnjtBmkgYaPDX95QxHbBdm2W7Zb1pf73gZCZI=; b=UMb+24j45RMVFQL8xQwVCgM6PQXkq9zPgxK02MwAZAHIMYuMwRse+T5dBFIVe3kUpp gSsZ/4zLqMpApVtRRojj+lVL/CwtHMiFCyn473026st+kaOS3m/rK+v/+cghRsLElqYW Oc5IFUasHo7Z2tR+UFhZkj89xCGl0HJ7DMW5HuvT/Zq3ZkovVf8SKYGiAMT8gIUcmSZ9 oAamHFxoAgg/RINkdi/zew792kWDok7KksuBeDVEMM+UH3tt5jOkE8/OP9XEsCPy3xOn VgCbvBK5vbpfNZcCvlCoSJB7/KEpK1IDzVsYSZyeljziXXgGU/aSInNhWIp6jfDcFlvP Ef/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020aa7db4f000000b004132c0a3964si1771232edt.113.2022.03.03.11.02.16; Thu, 03 Mar 2022 11:02:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233218AbiCCMZX (ORCPT + 99 others); Thu, 3 Mar 2022 07:25:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233191AbiCCMZT (ORCPT ); Thu, 3 Mar 2022 07:25:19 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F6FF1186; Thu, 3 Mar 2022 04:24:32 -0800 (PST) Received: from fraeml707-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K8VXf75N1z67x9f; Thu, 3 Mar 2022 20:24:18 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml707-chm.china.huawei.com (10.206.15.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 13:24:29 +0100 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 3 Mar 2022 12:24:25 +0000 From: John Garry To: , , , CC: , , , , , , , , John Garry Subject: [PATCH 0/4] scsi: libsas and users: Factor out internal abort code Date: Thu, 3 Mar 2022 20:18:46 +0800 Message-ID: <1646309930-138960-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow-on from the series to factor out the TMF code shared between libsas LLDDs. The hisi_sas and pm8001 have an internal abort feature to abort pending commands in the host controller, prior to being sent to the target. The driver support implementation is naturally quite similar, so factor it out. Again, testing and review would be appreciated. This is based on mkp-scsi 5.18 staging queue @ commit f2ddbbea7780 John Garry (4): scsi: libsas: Add sas_execute_internal_abort_single() scsi: libsas: Add sas_execute_internal_abort_dev() scsi: pm8001: Use libsas internal abort support scsi: hisi_sas: Use libsas internal abort support drivers/scsi/hisi_sas/hisi_sas.h | 8 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 453 +++++++++---------------- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 11 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 18 +- drivers/scsi/libsas/sas_scsi_host.c | 89 +++++ drivers/scsi/pm8001/pm8001_hwi.c | 27 +- drivers/scsi/pm8001/pm8001_hwi.h | 5 - drivers/scsi/pm8001/pm8001_sas.c | 186 ++++------ drivers/scsi/pm8001/pm8001_sas.h | 6 +- drivers/scsi/pm8001/pm80xx_hwi.h | 5 - include/scsi/libsas.h | 24 ++ include/scsi/sas.h | 2 + 12 files changed, 368 insertions(+), 466 deletions(-) -- 2.26.2