Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2835384pxb; Mon, 25 Apr 2022 03:42:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz76XGBE+PiYM6tSY3EiiICYyy9QzCZXtJL277CapYXC3HYJKO5HOwUFN9i/UiTc0PA1eu9 X-Received: by 2002:a63:8149:0:b0:3ab:6545:87a0 with SMTP id t70-20020a638149000000b003ab654587a0mr1235375pgd.392.1650883336246; Mon, 25 Apr 2022 03:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650883336; cv=none; d=google.com; s=arc-20160816; b=E6IFc0p4U3VOTQilh/S3VhUCb30vAx1nX9fcCUZw3g4pqbQS6JenbCZhF5owzM7+bZ GmJYqahxwLFGZtIqgVAhL8eOK3uWvGxus6oXwVbQGasm4E7AbnmPWfELs/J8CaDWIGEi azkGmTvqhBDOSX76MDM/Sr9hbFC/Fv5T5QSL0pJ4QXA8H2n0d+b86OGrJ2xfPSciZerh CfhS/2hUkNVLQOHVAs+ycy1Rhz4BMPPGzVZ/XL8QgTmoaUzr00uVNFz/P3syZTS1vole U48SR8fARrOJVTa1yr/C5JQFe9b2q7FkifynYPtHn+LG9+WPRrdet7ZUgdpe8njbvhLF 4FhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=9+9l6cEG2q7GuAXCmPinDPHrbqOpGgA7RIgW07AYmYg=; b=YaeMYD5ftwq5OIZZwMjN69jJ33UnZ2VDe2GGRI2tdlOpPanz/RA33L6wsw+NLcR0Jz FtUm8qGhUB2n/NPQ/nF7SKMMGGrD5u/E4qNWAo5VIdkGrTKGZyzK8rFfH26d9ut7Dy20 Q5S97c+oyASACgu+7TpPsHnz1sglInwogAa7zIRpNyO35PkF+7th5rdwBAWujILK59vT FR0Iqk7GH9ko+Hhy+Hfj1Ly9ME5hAWoRWoG9I9duC07IldVs0EnKD90pTIkPL62Gp1Zc LPlPwmRacy/0Bv7Ru39De/tWMCdCXsO0HNNd9r22kt0VBxKIoiNBLbhe/wt06Bzkov4n 1WGg== 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 k191-20020a6384c8000000b003ab20c3459fsi4239299pgd.201.2022.04.25.03.42.00; Mon, 25 Apr 2022 03:42:16 -0700 (PDT) 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 S236517AbiDYIqS (ORCPT + 99 others); Mon, 25 Apr 2022 04:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232124AbiDYIqQ (ORCPT ); Mon, 25 Apr 2022 04:46:16 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E147183022; Mon, 25 Apr 2022 01:43:12 -0700 (PDT) Received: from fraeml709-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Kmz3y2955z67yLV; Mon, 25 Apr 2022 16:40:30 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml709-chm.china.huawei.com (10.206.15.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 25 Apr 2022 10:43:10 +0200 Received: from [10.47.92.213] (10.47.92.213) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.24; Mon, 25 Apr 2022 09:43:09 +0100 Message-ID: <380af884-94f2-231b-040b-2d89a544b8ed@huawei.com> Date: Mon, 25 Apr 2022 09:43:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 4/4] scsi: hisi_sas: Use libsas internal abort support To: Hannes Reinecke , , , , CC: , , , , , , , References: <1646309930-138960-1-git-send-email-john.garry@huawei.com> <1646309930-138960-5-git-send-email-john.garry@huawei.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.92.213] X-ClientProxiedBy: lhreml702-chm.china.huawei.com (10.201.108.51) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,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: X-Mailing-List: linux-kernel@vger.kernel.org On 20/04/2022 13:29, Hannes Reinecke wrote: > On 3/3/22 13:18, John Garry wrote: >> Use the common libsas internal abort functionality. >> >> In addition, this driver has special handling for internal abort >> timeouts - >> specifically whether to reset the controller in that instance, so extend >> the API for that. >> > Huh? Is there a reason _not_ to reset the controller once abort times out? There's a bug in v2 HW where the internal abort may timeout due to HW bug but it is not fatal, i.e. the HW state is not totally buggered, so can continue without a reset. > And why isn't that delegated to SCSI EH? For sure, SCSI EH will reset the host if all else fails. However, it may take some time to get to the point of deciding to reset - including lots of timeouts. To accelerate this, we set a host flag to say that we have a HW fault, and don't bother with nexus reset, LU reset, etc. once the initial task abort fails due to HW fault and fail straight away. Maybe the core code could do something similar but it seems messy/hard to generalise. Thanks, John