Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp557243lfg; Fri, 11 Mar 2022 13:11:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8X/tavd9xdtqFyHr8hrBluMWpwk0PjFdNWLV5KGANdQOiwREDWDH8fdzC//rHILrCmTsP X-Received: by 2002:a17:903:181:b0:153:153:3536 with SMTP id z1-20020a170903018100b0015301533536mr12615349plg.123.1647033066849; Fri, 11 Mar 2022 13:11:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647033066; cv=none; d=google.com; s=arc-20160816; b=zDFJpge8o+6BmQUXYIOk+gPR1Pd+2FCeyLFnJkU3r+Cjf1oitn0T7fP0pyjIEmQFl/ qhGwvDUSP7Ch6QQP26d0aWsvpmkns8PJtxRvju596gzslt4yPZ155VKcyS3gUOUqQvEt A87ggQJmmCQg6UzshotjhvMXhYOvQV/SW2VddyfXQZ0NeXSP0vq+xCKcQm69T9NLzHBf dpwmiIkI3gV78dgMibbJYj3srLVx5VzejFtHeRkiskMPPTqJwm1qP6kwRxZVbI5znWnc /unCKyG2M2bVAJuHhhJgRuRIZb9nqUSViExveZZwscZ6xUx2z7osFRKAyt3o1ECazfJO 3MEQ== 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=Umfp8Hz31ikGttMSPY8o3jArCbWFOxRTy+GmHk/bKN4=; b=gc1Yt3ndMlQwGF5OBnfJLNn1efppvTx8oU7VnvPQt6tqbnDQi2aD12l8Drtr20aAqV 2x+p69NJ7fLgTvPxrVqJM+RxrsY/xolC+/iU84BM5nUgC6WerO+1oinHeO+xGyWep5vW qufrJkC5i9y/nPwqNuEmV3aKJ5nyFCBn9CEIn3J+EPVXf0zmjpJXPQf1qY15OG4jSncv 0JJIzwgCggmnlaD4WbAEJK7dGq6xvTnE2sXFQWqekhzUL3/XaMqjvzXY/wUj5bIiKQab SO72qHoUfjwtb5ri6A5lOXap+fkvFY+ef3wxjcbAoa3vqvSexcrTRLZc1QWjnbhJ++Um 24cw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i18-20020a631312000000b0037888936273si8756896pgl.812.2022.03.11.13.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:11:06 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7ABDA43391; Fri, 11 Mar 2022 12:52:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348452AbiCKMaq (ORCPT + 99 others); Fri, 11 Mar 2022 07:30:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiCKMap (ORCPT ); Fri, 11 Mar 2022 07:30:45 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9246C13D7B; Fri, 11 Mar 2022 04:29:41 -0800 (PST) Received: from fraeml740-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KFQFG4cvgz67MgZ; Fri, 11 Mar 2022 20:28:02 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml740-chm.china.huawei.com (10.206.15.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 11 Mar 2022 13:29:39 +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; Fri, 11 Mar 2022 12:29:35 +0000 From: John Garry To: , , , CC: , , , , , , , , John Garry Subject: [PATCH v2 0/4] scsi: libsas and users: Factor out internal abort code Date: Fri, 11 Mar 2022 20:23:48 +0800 Message-ID: <1647001432-239276-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: dggems705-chm.china.huawei.com (10.3.19.182) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 2bd3b6b75946 Changes since v1: - fixup small coding issues (Damien) - Add Tested-by tags (thanks!) 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 | 178 +++------- 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, 360 insertions(+), 466 deletions(-) -- 2.26.2