[for-next,0/5] scsi: hisi_sas/libsas: Fix SATA devices missing issue during hisi_sas_debug_I_T_nexus_reset()
Message ID | 20221118083714.4034612-1-zhanjie9@hisilicon.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp69853wrr; Fri, 18 Nov 2022 00:45:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Fvdx8MnZWYbTtq4B54ePTnIA3DOYO02yzaWIbFByNWHmfkvU8h5MlRItAMWZAo1gkBuA2 X-Received: by 2002:a17:902:8e81:b0:188:d4ea:2568 with SMTP id bg1-20020a1709028e8100b00188d4ea2568mr6826295plb.14.1668761151009; Fri, 18 Nov 2022 00:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668761151; cv=none; d=google.com; s=arc-20160816; b=0HNnW2oLgaFo2uivyle1RGfqqbyouJBCOA7d91aBjPjL02J3DpD/7Iq5EMHdACKGK0 zP8+rwxLjsWy726eYnVR1/YuArFDvUvEznbpa8ELLfMSIM+/pE9K2/IzarSfMNN97PP6 OHD6zMsboaF6joDMdQwo3pPmVvyn+2XPz8UxnRvqH/bv7JFAWneWsjcPaI8UMoiIEbRm n66ttMAEHoFHwNCKNQB4G7mpPtBKtGCLtm85Eh7EeYSGRwZ0MdW8EvbYn0AJjJfoJjJ3 xa2c4MhXvLa+erS8VppUPUGMYb3fYiE0wjR6ZUHvsCQ7v2Qc1cWOkCPyRmCz6LgHqoXW 8/dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zPE6Gk8nQwlUkFdoJK179wIgoZezmJioEFwYfprpbzI=; b=VaEk6Yyj1/iiQ3TBIZ0wr02Zrh0BQgnGCgMnS3v/2Iaq3K3oN084EOphWf5b7ElxFW 4aSca4Xy6s8WBWNmYAVZhJhx7d+W0FqQwHa9mLtgHDmy71K84rHjR7peutJvV76v20NG 6L5qVt7U1x1dhOHqQIM18GzDtmkOuVGapyEhT/lQSj8y1rFhcRVu2uU/gFnF6V2M4Ihj OZBWuGikoIHPCXecN7fEGCTjX9Vhem+Yg1mU8HVs4Ve5073ZkXo3cdfLW4nYI+jLb4mJ oGd1XJJnT47jSuX7mwtTH0oDWKpvO5ZHQZrRCu8hH7qjzGM9cViDN8R2RRfKZPoeVnNb VYag== 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=hisilicon.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a631450000000b004767da73249si3308047pgu.815.2022.11.18.00.45.38; Fri, 18 Nov 2022 00:45:50 -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=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241506AbiKRIir (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 18 Nov 2022 03:38:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235239AbiKRIi2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Nov 2022 03:38:28 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA9364F4; Fri, 18 Nov 2022 00:38:27 -0800 (PST) Received: from dggpeml500021.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4ND97Z64SqzqSYY; Fri, 18 Nov 2022 16:34:34 +0800 (CST) Received: from dggpeml500019.china.huawei.com (7.185.36.137) by dggpeml500021.china.huawei.com (7.185.36.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 18 Nov 2022 16:38:18 +0800 Received: from localhost.localdomain (10.67.165.2) by dggpeml500019.china.huawei.com (7.185.36.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 18 Nov 2022 16:38:18 +0800 From: Jie Zhan <zhanjie9@hisilicon.com> To: <jejb@linux.ibm.com>, <martin.petersen@oracle.com> CC: <chenxiang66@hisilicon.com>, <john.g.garry@oracle.com>, <damien.lemoal@opensource.wdc.com>, <yanaijie@huawei.com>, <johannes.thumshirn@wdc.com>, <duoming@zju.edu.cn>, <zhanjie9@hisilicon.com>, <liyihang9@huawei.com>, <yangxingui@huawei.com>, <prime.zeng@hisilicon.com>, <linuxarm@huawei.com>, <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH for-next 0/5] scsi: hisi_sas/libsas: Fix SATA devices missing issue during hisi_sas_debug_I_T_nexus_reset() Date: Fri, 18 Nov 2022 16:37:09 +0800 Message-ID: <20221118083714.4034612-1-zhanjie9@hisilicon.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500019.china.huawei.com (7.185.36.137) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749822893020784242?= X-GMAIL-MSGID: =?utf-8?q?1749822893020784242?= |
Series |
scsi: hisi_sas/libsas: Fix SATA devices missing issue during hisi_sas_debug_I_T_nexus_reset()
|
|
Message
Jie Zhan
Nov. 18, 2022, 8:37 a.m. UTC
SATA devices on an expander may be removed and not be found again when I_T nexus reset and revalidation are processed simultaneously, which is probable to happen in hisi_sas_clear_nexus_ha(). The issue came up since commit 71453bd9d1bf ("scsi: hisi_sas: Use sas_ata_wait_after_reset() in IT nexus reset"), where the ex_phy's change count is updated in hisi_sas_debug_I_T_nexus_reset(), stopping future revalidation from discovering the SATA devices after link reset. This patchset fixes the issue. Jie Zhan (5): Revert "scsi: hisi_sas: Drain bcast events in hisi_sas_rescan_topology()" Revert "scsi: hisi_sas: Don't send bcast events from HW during nexus HA reset" scsi: libsas: Add smp_ata_check_ready_type() scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset scsi: libsas: Do not export sas_ata_wait_after_reset() drivers/scsi/hisi_sas/hisi_sas_main.c | 31 ++++++++------------------- drivers/scsi/libsas/sas_ata.c | 28 ++++++++++++++++++++++-- drivers/scsi/libsas/sas_expander.c | 4 ++-- drivers/scsi/libsas/sas_internal.h | 2 ++ include/scsi/sas_ata.h | 7 +++--- 5 files changed, 42 insertions(+), 30 deletions(-)
Comments
Jie, > SATA devices on an expander may be removed and not be found again > when I_T nexus reset and revalidation are processed simultaneously, > which is probable to happen in hisi_sas_clear_nexus_ha(). Applied to 6.2/scsi-staging, thanks!
On Fri, 18 Nov 2022 16:37:09 +0800, Jie Zhan wrote: > SATA devices on an expander may be removed and not be found again > when I_T nexus reset and revalidation are processed simultaneously, > which is probable to happen in hisi_sas_clear_nexus_ha(). > > The issue came up since commit 71453bd9d1bf ("scsi: hisi_sas: Use > sas_ata_wait_after_reset() in IT nexus reset"), where the ex_phy's > change count is updated in hisi_sas_debug_I_T_nexus_reset(), stopping > future revalidation from discovering the SATA devices after link > reset. > > [...] Applied to 6.2/scsi-queue, thanks! [1/5] Revert "scsi: hisi_sas: Drain bcast events in hisi_sas_rescan_topology()" https://git.kernel.org/mkp/scsi/c/7e613be7c63d [2/5] Revert "scsi: hisi_sas: Don't send bcast events from HW during nexus HA reset" https://git.kernel.org/mkp/scsi/c/94a3555d1f0f [3/5] scsi: libsas: Add smp_ata_check_ready_type() https://git.kernel.org/mkp/scsi/c/9181ce3cb5d9 [4/5] scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset https://git.kernel.org/mkp/scsi/c/3c2673a09cf1 [5/5] scsi: libsas: Do not export sas_ata_wait_after_reset() https://git.kernel.org/mkp/scsi/c/4d450cf2b00d