From patchwork Thu Aug 30 16:35:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 934B15A4 for ; Thu, 30 Aug 2018 16:35:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 836732C0EF for ; Thu, 30 Aug 2018 16:35:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 771342C132; Thu, 30 Aug 2018 16:35:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C660B2C0EF for ; Thu, 30 Aug 2018 16:35:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727671AbeH3Uiz (ORCPT ); Thu, 30 Aug 2018 16:38:55 -0400 Received: from mail-bl2nam02on0049.outbound.protection.outlook.com ([104.47.38.49]:48779 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727501AbeH3Uiy (ORCPT ); Thu, 30 Aug 2018 16:38:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CfJomuxMO0Ykf32dJ6beHDUOvEtGG8fEuCEx6D76pVI=; b=A22HVI/cWQDJvvUzu3afwxy0J9zwJJzl8Z9iXHh/my0cK8Ef1tje0OpdHO9eYWwn2QE2azPZ4LnHb93Vm8hMuW71I+twZM1xizzxqwtbDdeKH8U844BeQFIJcoZ1GFzZX245WIWQZ9BJVIlA0iu26E4TRkTzVz0Fl4mWW6O17m0= Received: from BYAPR07CA0046.namprd07.prod.outlook.com (2603:10b6:a03:60::23) by BN7PR07MB4385.namprd07.prod.outlook.com (2603:10b6:406:b5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.16; Thu, 30 Aug 2018 16:35:54 +0000 Received: from CO1NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by BYAPR07CA0046.outlook.office365.com (2603:10b6:a03:60::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.15 via Frontend Transport; Thu, 30 Aug 2018 16:35:54 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT023.mail.protection.outlook.com (10.152.96.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:35:54 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:50 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZoLA027327; Thu, 30 Aug 2018 09:35:50 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZoWi027326; Thu, 30 Aug 2018 09:35:50 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 01/14] qla2xxx: Fix process response queue for ISP26XX and above Date: Thu, 30 Aug 2018 09:35:37 -0700 Message-ID: <20180830163550.27288-2-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(39860400002)(346002)(136003)(2980300002)(438002)(189003)(199004)(5660300001)(4326008)(48376002)(316002)(86362001)(110136005)(54906003)(42186006)(2906002)(16586007)(50466002)(50226002)(36756003)(80596001)(8936002)(6666003)(106466001)(87636003)(305945005)(81156014)(81166006)(69596002)(356003)(72206003)(47776003)(478600001)(14444005)(2616005)(476003)(44832011)(51416003)(486006)(26005)(446003)(186003)(76176011)(11346002)(126002)(106002)(8676002)(336012)(1076002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4385;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT023;1:j5GKa5JqK+f4TbuzzrtTnQXIkmwMHQiHhqulLGClrtZxPABH/NkrXVqCecIDO7Q81W8jonR2mSlXcMcBukspaypoETUCD+nG9famXwYn1UMeVDV30cvj2wXndd16/023 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0960b5bd-1a69-49a6-fc60-08d60e96a7d1 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR07MB4385; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4385;3:vbZlk/lfn3KzPoXWnJ9Y8H8BrB8z7vFhUBDNZSg1WkHIVjTkhaA54zB+Ykd3Ech2znS4hOXepe/Vl1G5QMuHq1MLK4OBnOr4nKVaoA1w+evyIOxczU/PV0yeImq/hJt07lfAnAbGJ+EBA1xTMY9ao6thmEbg6D14wCJMJ1K/etYX51tCDDnmSLkv1VrUZS41H4/6fQpCMUhvuZOZCz6cqVk5u8SmLQRDmmKHVKpvu+c+HGBs4gLsu7BGuJ9KJujZBX2Kc/ToykTMvir8WGYCmQ+a3vu/EP3CxzT3WXLFwM/WK+bev+WVluuq+ON9pSr96hOUPTq3BONAXhh+EY8FRTdQIr17iL4fDxdxdkZdWCY=;25:La4a1LoMD0gsf6qhTk9OHieripl8/LbLK5sF/TvlrtsKNv9czgdfSW5I6hvPaTkTbEXxXz2RqW7uY4WYqI4Yqok4TGmDcEwe5F+z6S9XDBzmu0etvoz4rHiRmKyH9FH69l79I1xErRA+3QiDtLegQUnZlNahUSXRUK6tBfowUMk+88be4J8/udI2qQzn1tq21zpvH43YkUljf5UUg483+Cqrp/PLLaT3QmOYr0PfqfWGEjlIOpsNF/QoJaXGCtL2ELaEFMuOQTY756Jx1BuouA5MvxagscyFUnEE9Z465zXivNAJnybSMRID5oUWYXPP0w87FcdhOmYkdyqwSzYaxg== X-MS-TrafficTypeDiagnostic: BN7PR07MB4385: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4385;31:35lpPRN7njTO/zh9MuZvDKAVzRG3PfKwSB3kkMBnlhY+lxO8lJ9WKErHo7eHeMCJZumoVxyciGmKf6ptSBZ2bLfvwjgvaPsfLrLoKVGgX8zFkACqIeWHCOK8gCAbhc6m9ooAlEw/nVQBfDlo6SZJlHL+TAyBq9AP79KGZYPnFkWZIFIbmG0oZiG3fFjvj7LeRQVkB2Q0nsmd9CKQmn5y4I3NnE+EXkfy/iaRSMpqb+Q=;20:IAFpvryjW9eAHbrDTjbKruLJeJF+pb+1k4vyMZqjr4W5EnjV4K8YgG66U/qPAnpWFxWLQUg2WeQgoe5BacyTXTVqeAcf83/nY5WhmuShOq2llsuzMWm1BpdUFtDrrba0GXSKnPZfXDhWQq0Mwi2tvzJ8CYjcAh2G2cXO6tn2HVXARqlMV9x9jgbNJQwg+Vk7eNyI6qsKmrA/DvZF3Dwlz+ziZ7F/v2ZRQn47Gamb/K/BQN26tox4lmrCC4Z6oV/0QSkfDLw6Sa+aDFQDqssbRmg3hDS/P2bzKttMhANGz1PTyupPP+auj9QfTQkQ5TmnmafMEq0IkOim1FUD4+YMIyYx3Bdv1u+1DvScVRPfjKSB84bpztrr4Bv44928Nsbf1JQsedFkuu0HD1Mo7HYbxf5BkY8sZQkryvk1PN4KJVrcaQdBUA0kvgS0DyvP1lu3UDK5x9qvqskc92hBSk0NXWRXMemkb5pKG5tOVXxjgiKJhUi45p9XmMPEc60pGn6C X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(93006095)(93004095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699016);SRVR:BN7PR07MB4385;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4385; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4385;4:XVbozryqOK7OM/iU6lLvLB3qFCVzYcYW99jvDTAIFtNWRu364Em8hqc+m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5g3gBwhNTAAbgi6ubrdsuW8HBT9xzGN5bCSsWmYkKKLvZbr2HKEn1uSjotNuO/7mlNd/qGrNqb5G8CH2/20Da1R1kx9YX68Hwv6k2d+zp78QiVv93vdKdTA3dAjqePBK6EYrxcRtuAcC7TOos5cIZHkj6hZ4/PaRD1qd7y7YderqRXqtMCKfBImCnIcxZGvmzkMuvWRDhig==;5:5CaizgWZed7E/WD3svV4YdW9yVK7LjjZj/6dKriBjPlap0nPI8Baz2s/PlqLIaHftYaWw1VTSen3gIQ6vJJ1iCKTk1vj1ExW7T19dO4fgcKrefJxQ2dS1kZ0ka7MdkxHS8Oh9T4R5PUG3gW+4ZhnOE3GsPdxYpX5+dnQcmTUe54=;7:b+bYowiFU3lt9dd3jKHYPEZQUAVeywkOTPE42jzjuWWBfE99AhjzVugBj5W+r6x1XXAtEjnqGQ9d5+57Gjgz4sMFeL6NJXgWtH4osDNqPzDuMrf3cQ25MjJkI0lR0fzjemly8QNYnA7rrUwQLw1uwq5EpbgB8JBqnyu4TOYKUvLAGc4WDdhMMRRo3jaJHPwBXp6P6hwyCFKVxg3EE7eE86H1RaBC0+ZzwjDuqEACEUPpV4rIdjxZNdiUic9PKDGw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:35:54.0443 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0960b5bd-1a69-49a6-fc60-08d60e96a7d1 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4385 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran This patch improves performance for 16G and above adaper by removing additional call to process_response_queue(). Cc: Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 2 -- drivers/scsi/qla2xxx/qla_iocb.c | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index b934977c5c26..4686fb5f26aa 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -7142,7 +7142,6 @@ qla24xx_nvram_config(scsi_qla_host_t *vha) } icb->firmware_options_2 &= cpu_to_le32( ~(BIT_3 | BIT_2 | BIT_1 | BIT_0)); - vha->flags.process_response_queue = 0; if (ha->zio_mode != QLA_ZIO_DISABLED) { ha->zio_mode = QLA_ZIO_MODE_6; @@ -7153,7 +7152,6 @@ qla24xx_nvram_config(scsi_qla_host_t *vha) icb->firmware_options_2 |= cpu_to_le32( (uint32_t)ha->zio_mode); icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer); - vha->flags.process_response_queue = 1; } if (rval) { diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 42ac8e097419..119927220299 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -1526,12 +1526,6 @@ qla24xx_start_scsi(srb_t *sp) /* Set chip new ring index. */ WRT_REG_DWORD(req->req_q_in, req->ring_index); - RD_REG_DWORD_RELAXED(&ha->iobase->isp24.hccr); - - /* Manage unprocessed RIO/ZIO commands in response queue. */ - if (vha->flags.process_response_queue && - rsp->ring_ptr->signature != RESPONSE_PROCESSED) - qla24xx_process_response_queue(vha, rsp); spin_unlock_irqrestore(&ha->hardware_lock, flags); return QLA_SUCCESS; @@ -1725,12 +1719,6 @@ qla24xx_dif_start_scsi(srb_t *sp) /* Set chip new ring index. */ WRT_REG_DWORD(req->req_q_in, req->ring_index); - RD_REG_DWORD_RELAXED(&ha->iobase->isp24.hccr); - - /* Manage unprocessed RIO/ZIO commands in response queue. */ - if (vha->flags.process_response_queue && - rsp->ring_ptr->signature != RESPONSE_PROCESSED) - qla24xx_process_response_queue(vha, rsp); spin_unlock_irqrestore(&ha->hardware_lock, flags); @@ -1880,11 +1868,6 @@ qla2xxx_start_scsi_mq(srb_t *sp) /* Set chip new ring index. */ WRT_REG_DWORD(req->req_q_in, req->ring_index); - /* Manage unprocessed RIO/ZIO commands in response queue. */ - if (vha->flags.process_response_queue && - rsp->ring_ptr->signature != RESPONSE_PROCESSED) - qla24xx_process_response_queue(vha, rsp); - spin_unlock_irqrestore(&qpair->qp_lock, flags); return QLA_SUCCESS; From patchwork Thu Aug 30 16:35:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1D2C175A for ; Thu, 30 Aug 2018 16:36:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A19482C0EF for ; Thu, 30 Aug 2018 16:36:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 962562C132; Thu, 30 Aug 2018 16:36:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 382592C0EF for ; Thu, 30 Aug 2018 16:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727674AbeH3Ui5 (ORCPT ); Thu, 30 Aug 2018 16:38:57 -0400 Received: from mail-dm3nam03on0041.outbound.protection.outlook.com ([104.47.41.41]:30144 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727073AbeH3Ui5 (ORCPT ); Thu, 30 Aug 2018 16:38:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4La41tnfV9u0wn1/1YbSomSa6Krp2LHn3GNuW/Ka1DQ=; b=IT+lsRIzwo4r9G16XB6hxXK6xj0GC4kxViw9rPDlvk0tSeZSrifIRr3QnQ3opODCuFSmFIeteJ65TofO3BZTXbfjKPD0K3cSl4u/KQ3tBRQMM9ZHF1I889U9A9GiIb0M7F/oUKeBTBzAecdOvkfjxoRH7V36dbMYu986WZ5TMio= Received: from BYAPR07CA0061.namprd07.prod.outlook.com (2603:10b6:a03:60::38) by BN7PR07MB4387.namprd07.prod.outlook.com (2603:10b6:406:b6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.16; Thu, 30 Aug 2018 16:35:57 +0000 Received: from CO1NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by BYAPR07CA0061.outlook.office365.com (2603:10b6:a03:60::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.14 via Frontend Transport; Thu, 30 Aug 2018 16:35:56 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT023.mail.protection.outlook.com (10.152.96.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:35:56 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:50 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZoS5027331; Thu, 30 Aug 2018 09:35:50 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZojK027330; Thu, 30 Aug 2018 09:35:50 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 02/14] qla2xxx: Fix incorrect port speed being set for FC adapters Date: Thu, 30 Aug 2018 09:35:38 -0700 Message-ID: <20180830163550.27288-3-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39850400004)(396003)(136003)(346002)(376002)(2980300002)(438002)(199004)(189003)(44832011)(106002)(478600001)(87636003)(42186006)(76176011)(316002)(5660300001)(54906003)(110136005)(8676002)(50226002)(80596001)(476003)(69596002)(8936002)(126002)(356003)(72206003)(48376002)(2616005)(36756003)(81166006)(81156014)(16586007)(50466002)(575784001)(86362001)(486006)(2906002)(1076002)(26005)(186003)(4326008)(336012)(51416003)(106466001)(47776003)(6666003)(305945005)(11346002)(446003)(14444005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4387;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT023;1:VfouxjTkZaDuXNCsBJUK3pu+IoA4UzOE49h1ZhJmDZRvlD6e4EiD/zBTrqirug8PQqP/Shqez8qCLAreEhhgXuHzWx140uXhC9SJ2GImqZkNOZ9bGBXkWtbxUVKh+0Xp X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6cb37193-75a6-4284-3d15-08d60e96a916 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR07MB4387; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4387;3:5nLZ6OjkRWxtmjUwazfs+IbbBDANuhThPS4etGm88rzlyO97u5RjFWtTFKY1lwM/xyq0cIdY2Rw9tqFpPNn01YsM1iGIuP6caTqSJhY7/fPPF28TMWaZ5n7fZaylHnt/A5WuloGhDN+7/UysTmtNkVuGfObE51cY1BCDh/VuJGqQhdmzhaissqRVjX4ylSiv7+W80Pjk39JA3bDg31yGKWGuvFhGjiK5q0xyPKcCmU5/ZOE0K3EcL9918Ue003W93oL2JOTz+yutbkMNIoKXpZbk5arxOxYpy0UtcDkzqQ6rCWVGaM3jKPD2pDTInE2WvkSrQKXQ74PgKB3BAMJ66jWMxPhB/6lPUnZen1Cw9Tg=;25:dw4m2Adr6OKL5gkMKmPUu0L0i7zsJAY9KmcYYr5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9ZDa/ZlaSQRPwLUvgb4XMla7N72P+Nxlsysqz1fbLYpldGpiDdOuE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699016);SRVR:BN7PR07MB4387;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4387; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4387;4:/d/bE0eRYxsAkxXSzFSu9hJQFNFr4ZSzdsPduRI9UfK4hIWdDzzDQ0I4MQlFzVUdTmShBj79mcTbRRxjkUKAs6iG9Hyz+QK+T7g2p7cC8GRImKpk/89KW7QrAabMOMF7Xyg8ADnlQC6G4gvV1gz6culIibcVp3RQHfCHGGnICbgCoZ6wA1vPcH44e8VyMrvKWlbezkQwGu+g1WESlISIcIi6fbGae6SjGP9qOe5Bk4fYd7VEqGhVuWlW8/AwHJ24H5LNobsVZgff2sZxxf8L1mEm8flTfJlRsWCCSRgzgb2br/6TOoWw363H7Wg9s0yM X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4387;23:c7I8DdFBN+TMsEWaE/c8tCvcxiPJ9c0B1VpJWsWaSrL0h8OhEXc56M6+aASvpjlbd8Umtt841RutMNGxmcFbmRNkSE4slUYWhgtEduovEOdZyPMpZDdC0HH0mMnhJ+sHy5W+UyZVhC8KOzUjffSAUXNg+oDxs8iCxv1EPEac415TEA1Zy+QMqOBPsFCu/AxRKuSfyfLjxJ3dCxMqyvLsiNURYWqwSZcyXAeO4HzpuBtLueRb4NYw63XEPq7guV2QENxjarRulZc32h0g+aY/AyOdI3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VScRf7zvCPh+Qr89LJGEMafvlkE3TwN2R80aPhNokoEyBfbNBW7e8xOPjCK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:35:56.1694 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6cb37193-75a6-4284-3d15-08d60e96a916 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4387 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: 6246b8a1d26c7c ("[SCSI] qla2xxx: Enhancements to support ISP83xx.") Fixes: 1bb395485160d2 ("qla2xxx: Correct iiDMA-update calling conventions.") Cc: Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_mbx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 2c6c2cd5a0d0..c73039916c03 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -3762,10 +3762,7 @@ qla2x00_set_idma_speed(scsi_qla_host_t *vha, uint16_t loop_id, mcp->mb[0] = MBC_PORT_PARAMS; mcp->mb[1] = loop_id; mcp->mb[2] = BIT_0; - if (IS_CNA_CAPABLE(vha->hw)) - mcp->mb[3] = port_speed & (BIT_5|BIT_4|BIT_3|BIT_2|BIT_1|BIT_0); - else - mcp->mb[3] = port_speed & (BIT_2|BIT_1|BIT_0); + mcp->mb[3] = port_speed & (BIT_5|BIT_4|BIT_3|BIT_2|BIT_1|BIT_0); mcp->mb[9] = vha->vp_idx; mcp->out_mb = MBX_9|MBX_3|MBX_2|MBX_1|MBX_0; mcp->in_mb = MBX_3|MBX_1|MBX_0; From patchwork Thu Aug 30 16:35:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F3F66175A for ; Thu, 30 Aug 2018 16:36:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E43F12C12C for ; Thu, 30 Aug 2018 16:36:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D85DA2C138; Thu, 30 Aug 2018 16:36:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 522C92C12C for ; Thu, 30 Aug 2018 16:36:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727682AbeH3Ui7 (ORCPT ); Thu, 30 Aug 2018 16:38:59 -0400 Received: from mail-eopbgr710080.outbound.protection.outlook.com ([40.107.71.80]:5824 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727073AbeH3Ui7 (ORCPT ); Thu, 30 Aug 2018 16:38:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F1DRQlgUQqaTI5eT1mxZmUPNMXc77g/P28TLACLBgb8=; b=U5vZ2ZUC1HkHz7Ey+WtcVbNY2ird5y4unYa7hSpQY9ENU9LW3T7YA7AMpQ3eP4siFd70E7KQbnXj4S5lPt1K0PKpIOEJKie/XOIjyrLZCuYu1Kh8cje4C/MSOk0H5scbupusAxyYujiHfFqDov1YeEFGmrZHABRmifRdQROjiHY= Received: from CO2PR07CA0050.namprd07.prod.outlook.com (2603:10b6:100::18) by BN7PR07MB4386.namprd07.prod.outlook.com (2603:10b6:406:b6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 16:35:58 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by CO2PR07CA0050.outlook.office365.com (2603:10b6:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.16 via Frontend Transport; Thu, 30 Aug 2018 16:35:58 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:35:58 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:50 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZoOI027335; Thu, 30 Aug 2018 09:35:50 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZo6G027334; Thu, 30 Aug 2018 09:35:50 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 03/14] qla2xxx: Use correct qpair for ABTS/CMD Date: Thu, 30 Aug 2018 09:35:39 -0700 Message-ID: <20180830163550.27288-4-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(39860400002)(346002)(376002)(396003)(2980300002)(438002)(199004)(189003)(26005)(50226002)(87636003)(478600001)(106002)(69596002)(50466002)(6666003)(72206003)(51416003)(44832011)(48376002)(8936002)(186003)(36756003)(76176011)(2906002)(305945005)(8676002)(81166006)(1076002)(4326008)(81156014)(80596001)(356003)(486006)(106466001)(47776003)(126002)(42186006)(16586007)(2616005)(336012)(476003)(86362001)(14444005)(54906003)(446003)(11346002)(110136005)(316002)(5660300001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4386;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:kDddHT7kILN6FOQfqLXGqqff9VR/5ja7nPXY4CdWfoYm1ivm1XccGHxCn99OoeCUloQ72VeTFZ3QV8WNonbZwI9LomfecaSQp7Bv8AFz48CpHKRWF0OaLSKU8zx10Bat X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cc9f7473-57c3-4049-da40-08d60e96aa66 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR07MB4386; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4386;3:yDPyw6Ysdhr2TFoxEyGdTkOQHJl9Ld8bu9evCpu8BYtzO++UzQwNwn6b3l0y+3FERvmsv0gnGFEO9nBFWTdfDozrnWDyYnHUxvJM7btqANAherbQAaXi0ntTYszranTq6LBMwbu9TsyHzMAljNIxHCFaC/xduU9YM9vgYZJUuKIjL08KoRWz1NxYvBqRmDPMJM9XhDcM6QqbhtlbgYU5JYMFiv9CklxhY9l6fRb5KyLFZT3kfAiKulRqwCpAJDILlZ9oU484OL0pISdwfwZPRZqJlhn+SYdc7bRn6fAaN75qvxYVElP4xRrDObUvFbHCCTaegbbfplDom4+25krpLk7itYJbKoNm91ObRh9VDW8=;25:+j0rfeSono/59NMhh5WV2jHMatd/I0dsWj5qie+E5fKuaNleQ5UxC7yCMh/6QbTeXDljxWbV805c/TZqXFFeVLyRXE93H0vsYJrZ1S6B6wsKqG67G1BGM3YsXU7Blrwgtzu+hEMS00A3OFF2J8UvMFS1RO8SQ5zIreGy5w7eOYAEjncyOsR6OGsDUkoFU3lZMOHNByQ1Y6jKCsbrCThAHUPzyrJoYWlmgp1yF0D6u8eHn4I8TuJwL0QjLonpKtAwJVXicpQUR0NqaTNqoQin4aYPck0C1YvZWVjsuDBvDr3FWmeP3TNcpw7d/9XjTX5/ZWHItvdANdNVvZGr82Xb4w== X-MS-TrafficTypeDiagnostic: BN7PR07MB4386: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4386;31:Mw+vTWnUiN7eUHEGbgoNDl/ghNXdSuESWPmPXjFgdd6LI0dg2vzB9MW0qgnvdwEU2/OGgrG4qIGkWFgVwW7V3c+7EgGuySslBCODwaT3Aw+OiZ3E63YOw8Ga13MqXUGwYkpGYYaUvJtysfGzbM4gDXrXrKf+RwvVmTHpIjirFVCSYSPdIWr6l9Jp2EW1xRrk9kda0uSz/YzJw1isbGgJU3rz3Eul1KnFdkI5ezohtyY=;20:VxjPYIkzQpCpUlnaUKS6IKBJJajJbEKr9rMGYvvUjqD5y2R2kax/Onz0EVEVjCp9SA1eiESPyTcFrqYwCuy5vNSM5fYKGTiFDTJpnFBH39IPBExnffGto71HGfaiwnEeH7gu4wVb4utiu5cCt+qDUbNgP+mIClAD+03mxwz7oRjmO1XqnEO2la/f5NbXkWKwi9L6ekdSIQtLv0xk5Ai2JFCp1jjMQW69ERn9C+AVvcXvC9UcO3uCBTVrI1h/78y6zLw01rAUEj3zmF/bJv4dDuxx9khYh7HDuFv9dpj+IrAWrlLylyS8sz38WvnVJ4bbJpyCC3CKPZg8d7TkzYpleg5i3RvV/zxvk+Ul5AMh2ygNDXA08ckYNQeNa4QrRe1OGXq8hsHOoMODoQvqfJ20meTfbqBk/DFgZ2uUr8+fvPlFk3GZyID5RjZmAcUGkBKczlCqNd5sSEZSzFxlqE9sgv4Dv/cK4VvEKoVxkCmV50ZY1duYs/+X7p5cp7/w+7Nu X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(269456686620040); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)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yQBnyfFm0G1ANYCR0voWbW17PbAmroFDjHpLx1se4L2Bbxj0EN0oQCgXsgs8ZNowQON5QSzmZZ6jBW9o3dsw7s4+R77wN1HEKRyy36Y6ZRfiZc7iNny3lePjGHOaSodvQvfSBBP+chJ6dw0ZW1W2xnEHKKm/j+Ve6Fg1SWZ9rmho+zh7DVJDpAfBF3V/M0EmBlqHprj3iJeLzUtUsB+viM1x42fs+rLrseEEIYZvGogEaRQ0qyJPexFjzRV1nRokOWU3IHLXJoQL8bl2YCoVuZSTb4FIqTigDuizu92vocxd34HH4x8f0W/2lEyLj7X9bejkOg0POVkPw0TdF4o8BgflTr77ztNyVf5fdySRlA5pG9G1V8oxDKXpP53bZ7XOARg==;5:0CRr/HIJJkchHs0mcVHKBy6MpQUrQd3UuXU6wAO2bnlAJM+bYN8PMAHv0ADBZ6CWpxESFquPO+ciXbUfPF4UlrsbphHaNMp5S6k2cQwzzUvMPuPAKxuMAMn7cny4wy2VF1AsXOgFD64+NBl5wIndkAOdDmhFvtfdbTA3/xNDp4s=;7:LNYBj3Mzxkm6R7JvlxeRc9u0kmU6Th4R0e1P7E2bcQ4HcKwLIPQh2Etyeqrje8kxfrqNJSsVYl86UMyJhSRR4ZWC7xKM11oPc3pvLgCK+HI+k8njSn+i+ohcgkLhuAwGLCWBqBFNQyAclrBE7yKrKlS55xMJqPGo6+mfp8e7G6bBODVKaSwcpBf8hVDk2Em/c1LPrbL05X1kOfITmWh5RRd23yFMoSV0+bsGRopRH63mb8Y6E40WD2gAWJRvuJJA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:35:58.3441 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc9f7473-57c3-4049-da40-08d60e96aa66 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4386 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran On Abort of initiator scsi command, the abort needs to follow the same qpair as the the scsi command to prevent out of order processing. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 15 +++++---------- drivers/scsi/qla2xxx/qla_iocb.c | 12 +++++++----- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 4686fb5f26aa..53c4eb3b9c27 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1747,18 +1747,18 @@ int qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait) { scsi_qla_host_t *vha = cmd_sp->vha; - fc_port_t *fcport = cmd_sp->fcport; struct srb_iocb *abt_iocb; srb_t *sp; int rval = QLA_FUNCTION_FAILED; - sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); + sp = qla2xxx_get_qpair_sp(cmd_sp->qpair, cmd_sp->fcport, GFP_KERNEL); if (!sp) goto done; abt_iocb = &sp->u.iocb_cmd; sp->type = SRB_ABT_CMD; sp->name = "abort"; + sp->qpair = cmd_sp->qpair; if (wait) sp->flags = SRB_WAKEUP_ON_COMP; @@ -1767,12 +1767,7 @@ qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait) qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)); abt_iocb->u.abt.cmd_hndl = cmd_sp->handle; - - if (vha->flags.qpairs_available && cmd_sp->qpair) - abt_iocb->u.abt.req_que_no = - cpu_to_le16(cmd_sp->qpair->req->id); - else - abt_iocb->u.abt.req_que_no = cpu_to_le16(vha->req->id); + abt_iocb->u.abt.req_que_no = cmd_sp->qpair->req->id; sp->done = qla24xx_abort_sp_done; @@ -1781,8 +1776,8 @@ qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait) goto done_free_sp; ql_dbg(ql_dbg_async, vha, 0x507c, - "Abort command issued - hdl=%x, target_id=%x\n", - cmd_sp->handle, fcport->tgt_id); + "Abort command issued - hdl=%x, type=%x\n", + cmd_sp->handle, cmd_sp->type); if (wait) { wait_for_completion(&abt_iocb->u.abt.comp); diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 119927220299..c699bbb8485b 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -3297,19 +3297,21 @@ qla24xx_abort_iocb(srb_t *sp, struct abort_entry_24xx *abt_iocb) { struct srb_iocb *aio = &sp->u.iocb_cmd; scsi_qla_host_t *vha = sp->vha; - struct req_que *req = vha->req; + struct req_que *req = sp->qpair->req; memset(abt_iocb, 0, sizeof(struct abort_entry_24xx)); abt_iocb->entry_type = ABORT_IOCB_TYPE; abt_iocb->entry_count = 1; abt_iocb->handle = cpu_to_le32(MAKE_HANDLE(req->id, sp->handle)); - abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); + if (sp->fcport) { + abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); + abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa; + abt_iocb->port_id[1] = sp->fcport->d_id.b.area; + abt_iocb->port_id[2] = sp->fcport->d_id.b.domain; + } abt_iocb->handle_to_abort = cpu_to_le32(MAKE_HANDLE(aio->u.abt.req_que_no, aio->u.abt.cmd_hndl)); - abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa; - abt_iocb->port_id[1] = sp->fcport->d_id.b.area; - abt_iocb->port_id[2] = sp->fcport->d_id.b.domain; abt_iocb->vp_index = vha->vp_idx; abt_iocb->req_que_no = cpu_to_le16(aio->u.abt.req_que_no); /* Send the command to the firmware */ From patchwork Thu Aug 30 16:35:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582307 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 568E15A4 for ; Thu, 30 Aug 2018 16:36:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47A8C2C12C for ; Thu, 30 Aug 2018 16:36:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C3202C137; Thu, 30 Aug 2018 16:36:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9F222C132 for ; Thu, 30 Aug 2018 16:36:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727686AbeH3UjA (ORCPT ); Thu, 30 Aug 2018 16:39:00 -0400 Received: from mail-sn1nam02on0040.outbound.protection.outlook.com ([104.47.36.40]:27098 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727675AbeH3UjA (ORCPT ); Thu, 30 Aug 2018 16:39:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wm68DLLUCqG6ve579GW1Nt9ciAovhIySm7i91eEfyM0=; b=E7Dinu9Gt5KRosp/irRuYNtLc6jdoIqx50vGJPRZR8tdVFhSLWGPlAb6jpe/fFhRDO/OIwyFRc/sPcIbjvQY9aqx8T3c2gjRmTLvC+qCIb1vJZtLSMJUxdPcvHxn+kZ7lWL3sGh07L7Np/5uYd1LAtHnKOStGwmT1TT0Fp7sRvU= Received: from CO2PR07CA0050.namprd07.prod.outlook.com (2603:10b6:100::18) by BN7PR07MB4660.namprd07.prod.outlook.com (2603:10b6:406:f1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 16:35:59 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by CO2PR07CA0050.outlook.office365.com (2603:10b6:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.16 via Frontend Transport; Thu, 30 Aug 2018 16:35:59 +0000 Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:35:59 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:50 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZo6n027339; Thu, 30 Aug 2018 09:35:50 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZo7F027338; Thu, 30 Aug 2018 09:35:50 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 04/14] qla2xxx: Update rscn_rcvd field to more meaningful scan_needed Date: Thu, 30 Aug 2018 09:35:40 -0700 Message-ID: <20180830163550.27288-5-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(136003)(39860400002)(2980300002)(438002)(199004)(189003)(356003)(50226002)(2906002)(5660300001)(72206003)(87636003)(86362001)(8676002)(81166006)(48376002)(186003)(26005)(81156014)(478600001)(575784001)(50466002)(51416003)(76176011)(42186006)(106002)(14444005)(6346003)(44832011)(446003)(16586007)(80596001)(110136005)(2616005)(486006)(476003)(47776003)(6666003)(69596002)(336012)(305945005)(106466001)(126002)(54906003)(1076002)(36756003)(4326008)(316002)(11346002)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4660;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:8nkWxV+DBY7P5U160boEcGZiD3Kcuec/3Dj+hVs3XGVh4OTT5+xawk6gsXNM7xs8k9LntUPCqESPxKeV/3/WkM7z59X6JoZHIgwyBviOuDyGohxAf/CUq0llvkDhZ7qE X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2bcedb96-6bd0-4612-ad0a-08d60e96aafa X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:BN7PR07MB4660; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;3:/T+6kc/iV/BHUoZnrs9770NvowvGQfpyVBehMp8Svw2QuzxVYeErhM3hZAIaVftJox+V3vyp7Y0yoS+/zLlu8dldCdJve7HLdrw5Ii6xwUeabodpOKpebtJoDspxDEmLIqmOyggCq2LxnjGmI+LOvGr3P5HO+DCQjXl0MFQH4Me68EisIao239HpGWJJzlwo4NELHA9vsBt0kZoqIJq43+E1QVMcGN8MC9TfIySPKw6HnP0pjYizgy+v5NECMjGB6WgGL4ElvQV45dUS2ACNaaqyQHWND3ArBRZdmqSMkjT5ocV8O/DX6ztr8/mA3vuTnYSbz/qXBSohxU80MhgpkTfolMS6J1p0yAe0McLUGXw=;25:5UvI6dJYGGzzEJagVEvwab7U2P7tsEhM8VPZELVtvWLoHpshRuYEzftwS270IJTVwM8skj99q7ohG3cPxzekPOguf+5bliv0MTl1/OHPL1kNTm6RmwvmvgrcoKf0WmZYa7886QhUshWsQAT8Y2cU4t5HJvZaeu6jvowgxL2sv4+Q8ZTuJSHhztmGbvbb8ANnsB13lOQqPbS8aIlgHTrfmvSqwJSj4AAYOZDS6Hd8qaX3RyEQNxr8MMOnG/GBgC1VxRNOQCrJVSFUB5sZ+eYq3f8bLT48rzZxrPEVOyNAPcp0jGazLWnN14MmrFIU4E/o2JFvkD/uhz+pLpC5RkM73g== X-MS-TrafficTypeDiagnostic: BN7PR07MB4660: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;31:u0BUFh2zatPFvF1jxRPfPirIIKCj1T1KP5kMI0lZaBSuHN6rj1iuLdDF05r7ypEBPF4Hdcnj+a4kkmoxbi7AS9/JRjgG8Qru3+Oou3zInM9ZSVS1MEsEfC+1Eaq8s5TAAY69KwgU44f6OouIoSTzARj7mtET8NZZq1PICYQ8h/N5zaihT5pOT5LABKooniMsnWqN5Qhl5SAq2wi8JNzkYn3tKecJv9lQNnosbyFsUJo=;20:6xsAp/mVQeGu4NExrji9X+uJHyqFNGnTtfRNcsgiiEn/GfxXTsi2DazMH7gi5rP+3b05wsMDUccOsF5fua9XR2klrdJE7+1SkeKOZjK+yZ/68qw/juuFl9aQz7X2I/x1Vu631v/wSkQrsSANK3oun2vHY7Lg64MLH9mMdnBRnzHSK+dW8nXBthhBuz1HEfXbswmaUxcotHJEXd4JfkNdCf67WQWMVA1rFC779jlNJafaCv3ZOzS7+9EH76kRqKFrEWDzc7/Iln2qjw7o1fA5PG6H+p3Y8Oy52/6dce9I6kCfVgAfq4jJBVkk1bwoM2xpGweeOxe8MtCZZpDRNXmjEn4mOy3F4ysPy9EB+aSUnWWyV7U9LKZfHvD/cwzHSQjZ+kbrwijeIxS+Thuk3vLqGkXYffzxtuRoozIZbzmHLoDnXSn67OL2FL+qcODY+iz7bJxaReukFbUN6c7n0amp9btKbGuLjjdC7jDAmue6nMYChwA3RLOOodOsa2zuBOZK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:BN7PR07MB4660;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4660; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;4:OM7hBYLKuXEhf6O2h7yPX2OE72UnuZ+Mz34maSgbsn098neiq3LOzJQcEVm8sVN4POL8KJL4VPtVLl+uT75sTO1MkN7gc8w2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AS+PCsgUTVz2wxKTEW+hG6tL6c6+qp3V7dtEwFnoqqvoCvewwWc09NFIKvz4ZuCnWFUCkG0TI9IdpuwFVrp4+CTVmwCF6LPrWp6PTUth9jaMr5NPEVld6fDwi/oardM82Xg58XAiht0qnrSxF7wjPG2SjCh9Q==;5:fNC+PTgYF5ki4FW5RiDU0B+XQTJbNaL6kDTCKZ/p5P+P38fH8k73eFuy3hk7l2ORFzJdou2+eEdfk5gyTNKcGDGA3KMnI7Sca/ItKRyB09siXUbAlZmolYV5UFUDxUIviTc852cetA8JkFwota7BaFlZk+VZoRXE78XdgBkTRt4=;7:lqDE7Elw1zJOMtwrtlCcSVPxnLBlRmvLoVHzcafctfpSGHJciLzFjovRQRtkzAmXb/xHwNKAuhsnRUEUEzOwJs1hePxOsSlAZkXdZiyii3X1SCsXAVZYOTSwYnFlxrX9Xkyb22FKuwC3zEn0VcUOaurBH2wpmBIHUv6Zc7+raIThGI6TxtU9QwGzmnpo9U/zsenKHnTMFA/GZ5GSGLsbitMn9C/NuZUgAeIJJpBrkQlAOGA4CSHzqOYEcUtaNM29 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:35:59.3442 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2bcedb96-6bd0-4612-ad0a-08d60e96aafa X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4660 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Rename rscn_rcvd field to scan_needed to be more meaningful. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 2 +- drivers/scsi/qla2xxx/qla_gs.c | 12 ++++++------ drivers/scsi/qla2xxx/qla_init.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index a9dc9c4a6382..c41d0dbbbd79 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2351,7 +2351,7 @@ typedef struct fc_port { unsigned int login_succ:1; unsigned int query:1; unsigned int id_changed:1; - unsigned int rscn_rcvd:1; + unsigned int scan_needed:1; struct work_struct nvme_del_work; struct completion nvme_del_done; diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index a0038d879b9d..c0c738bbdace 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3951,7 +3951,7 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) list_for_each_entry(fcport, &vha->vp_fcports, list) { if (memcmp(rp->port_name, fcport->port_name, WWN_SIZE)) continue; - fcport->rscn_rcvd = 0; + fcport->scan_needed = 0; fcport->scan_state = QLA_FCPORT_FOUND; found = true; /* @@ -3981,12 +3981,12 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) */ list_for_each_entry(fcport, &vha->vp_fcports, list) { if ((fcport->flags & FCF_FABRIC_DEVICE) == 0) { - fcport->rscn_rcvd = 0; + fcport->scan_needed = 0; continue; } if (fcport->scan_state != QLA_FCPORT_FOUND) { - fcport->rscn_rcvd = 0; + fcport->scan_needed = 0; if ((qla_dual_mode_enabled(vha) || qla_ini_mode_enabled(vha)) && atomic_read(&fcport->state) == FCS_ONLINE) { @@ -4005,7 +4005,7 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) } } } else { - if (fcport->rscn_rcvd || + if (fcport->scan_needed || fcport->disc_state != DSC_LOGIN_COMPLETE) { if (fcport->login_retry == 0) { fcport->login_retry = @@ -4015,7 +4015,7 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) fcport->port_name, fcport->loop_id, fcport->login_retry); } - fcport->rscn_rcvd = 0; + fcport->scan_needed = 0; qla24xx_fcport_handle_login(vha, fcport); } } @@ -4030,7 +4030,7 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) if (recheck) { list_for_each_entry(fcport, &vha->vp_fcports, list) { - if (fcport->rscn_rcvd) { + if (fcport->scan_needed) { set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); break; diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 53c4eb3b9c27..cb00fd740d29 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1551,7 +1551,7 @@ void qla2x00_fcport_event_handler(scsi_qla_host_t *vha, struct event_arg *ea) fcport = qla2x00_find_fcport_by_nportid (vha, &ea->id, 1); if (fcport) - fcport->rscn_rcvd = 1; + fcport->scan_needed = 1; spin_lock_irqsave(&vha->work_lock, flags); if (vha->scan.scan_flags == 0) { From patchwork Thu Aug 30 16:35:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582309 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D847175A for ; Thu, 30 Aug 2018 16:36:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BDE62C12C for ; Thu, 30 Aug 2018 16:36:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 302AC2C137; Thu, 30 Aug 2018 16:36:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2A542C12C for ; Thu, 30 Aug 2018 16:36:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727687AbeH3UjC (ORCPT ); Thu, 30 Aug 2018 16:39:02 -0400 Received: from mail-by2nam03on0074.outbound.protection.outlook.com ([104.47.42.74]:29995 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727676AbeH3UjC (ORCPT ); Thu, 30 Aug 2018 16:39:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ob9YUdlNJ45AQO641iwb7WEDoYzoeJ5eK9N7QHpQaXc=; b=ZP6kuCQkItszpWXkn5OP3oasdK+nfe7mAqMGDP04ZxR9R95021Ud3leeYDgxJ/QGbX27FbiVu2DV8WBbtoqse6SZEUm/h37Gh4ABF2Ax0vqL1cODmJE/9Fg6TuE7W73LXCrZQQxNdNL1/4gGQQonHI9RMgtg6n7qP8jAj2Q1WHA= Received: from CO2PR07CA0083.namprd07.prod.outlook.com (2603:10b6:100::51) by DM6PR07MB4395.namprd07.prod.outlook.com (2603:10b6:5:bf::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.14; Thu, 30 Aug 2018 16:36:00 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::207) by CO2PR07CA0083.outlook.office365.com (2603:10b6:100::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.18 via Frontend Transport; Thu, 30 Aug 2018 16:36:00 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:00 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:50 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZp78027343; Thu, 30 Aug 2018 09:35:51 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZpPb027342; Thu, 30 Aug 2018 09:35:51 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 05/14] qla2xxx: Remove redundant check for fcport deletion Date: Thu, 30 Aug 2018 09:35:41 -0700 Message-ID: <20180830163550.27288-6-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(346002)(376002)(39860400002)(396003)(2980300002)(438002)(199004)(189003)(106002)(81156014)(50226002)(356003)(81166006)(42186006)(26005)(69596002)(186003)(8936002)(305945005)(316002)(16586007)(575784001)(446003)(54906003)(110136005)(336012)(80596001)(126002)(86362001)(2906002)(11346002)(8676002)(106466001)(2616005)(476003)(44832011)(486006)(14444005)(1076002)(51416003)(6666003)(4326008)(47776003)(50466002)(5660300001)(48376002)(36756003)(72206003)(478600001)(87636003)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4395;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:rGFwD4syzDlh/KX/NzzoTjpOU6/Pu+2N1G1KjoSH6sTGfIDmQfB5apgCRv5aC2EgwPKNrDbw14Hg9bYh2WiznBL99d7hYFalL9Rk+vAkzX6SQ+ViK0re4bd8AEL6yA5I X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ce2967b-8283-4af2-7eae-08d60e96abad X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM6PR07MB4395; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4395;3:vnkqo+0JJqZCgp8HviLBuntBpKA2nC8N8lsbNrLJdCLN+8aCvA7h+TyeDAU5djNwWMcxjngcGOW5oPouHYPHLQ88d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AoQs7eV70r8DmpNwauralGaK196hyh/Iv1DJLcZMqsWgDAiqcmnK4T8FvlCGu9oHVuO/axGVAFPzRJAVyaqVXvoNYQ2F6pcIHDieRxr5iG4fi6Xc3C1YQZ9ZIJSZMnv+xQEHXpSxZgbmKwe4942cQkgeqqamnfAl0xaIL+jt+9Oxn2gDsNYIOqcLX+wl/I18pcjMJLQUnJht7MLIBDCgLwBJruhz0FZlUQej6u/ZJ9wKFAxdHwARfIoOD71ntZQQlOdwm+DLLY750rA2ECXtIB81kg+8IjUIuHRDc87JZIkZf0QZcgrvxlYc8PlCEg09rAVgVhtKphQdMX5iBXjbw+gInZdgrGZWHz5+waM7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699016);SRVR:DM6PR07MB4395;BCL:0;PCL:0;RULEID:;SRVR:DM6PR07MB4395; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4395;4:MKpLh6US2XZIMLINl8a3AdzfBTZxqQClIdmzJbK7Sd0BEQX7DbXRwC6MV7I3IS1Raru9wApaRfdevMs1Ic0N3wCEC6R8wqAz7qqZCrIhzpH6i2jvRKEmVcGDXtFZOPz7ZkDYGfv+eVZiJs6pET9qNTVXm4+cW+/xBl8Gqhbl+BPVN4/guY8cxQ4hX4H920saOP58p78bb23l3a0FZUG3GtZ3T2+rcjxs3g4gftmt2KJbYJYa9yoNU3LlsCRiEno7HTLFM1MY6NzAl67NPMKJ+Q== X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4395;23:UcWvdsqM/2joinPpLC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2q0myL6CTN011JzPsXvGipE9uA0ENeFFYtlbSimdNUNAe454v24AzF42cG5Aq9QoJcs+tZllisk/w=;7:zsQo2m11tLblMPfOp0sJADyPCvGfX9UgzEpNNwq/NCJYsk8qxJMXPjiy+CgOLq0mr0AfuwXDLeO3LKlURO8BlX5sjJkFTfb65PL/ZjZR1GJf8/unRZ9Md/qcCb42LndH8bq5fLPot2C/DnWJ4h0F9u95yov63k4COREcmklz7xS9CBPStR/Whwd9Ld7UCCWg8rCHFI6wiVbLUENN1Swpencsn3nz6NSOIIU/YoDaue/qXbLbSJOAbT3atRXj8VEI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:00.2817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ce2967b-8283-4af2-7eae-08d60e96abad X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4395 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Remove redundant check for fcport is deleted or being delete. The same check is already in the deletion routine. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 62 +++++++------------------------------------ 1 file changed, 9 insertions(+), 53 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index c0c738bbdace..6e95ba0d3c8b 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3442,26 +3442,10 @@ void qla24xx_handle_gpnid_event(scsi_qla_host_t *vha, struct event_arg *ea) if (ea->rc) { /* cable is disconnected */ list_for_each_entry_safe(fcport, t, &vha->vp_fcports, list) { - if (fcport->d_id.b24 == ea->id.b24) { - ql_dbg(ql_dbg_disc, vha, 0xffff, - "%s %d %8phC DS %d\n", - __func__, __LINE__, - fcport->port_name, - fcport->disc_state); + if (fcport->d_id.b24 == ea->id.b24) fcport->scan_state = QLA_FCPORT_SCAN; - switch (fcport->disc_state) { - case DSC_DELETED: - case DSC_DELETE_PEND: - break; - default: - ql_dbg(ql_dbg_disc, vha, 0xffff, - "%s %d %8phC post del sess\n", - __func__, __LINE__, - fcport->port_name); - qlt_schedule_sess_for_deletion(fcport); - break; - } - } + + qlt_schedule_sess_for_deletion(fcport); } } else { /* cable is connected */ @@ -3470,32 +3454,16 @@ void qla24xx_handle_gpnid_event(scsi_qla_host_t *vha, struct event_arg *ea) list_for_each_entry_safe(conflict, t, &vha->vp_fcports, list) { if ((conflict->d_id.b24 == ea->id.b24) && - (fcport != conflict)) { - /* 2 fcports with conflict Nport ID or + (fcport != conflict)) + /* + * 2 fcports with conflict Nport ID or * an existing fcport is having nport ID * conflict with new fcport. */ - ql_dbg(ql_dbg_disc, vha, 0xffff, - "%s %d %8phC DS %d\n", - __func__, __LINE__, - conflict->port_name, - conflict->disc_state); conflict->scan_state = QLA_FCPORT_SCAN; - switch (conflict->disc_state) { - case DSC_DELETED: - case DSC_DELETE_PEND: - break; - default: - ql_dbg(ql_dbg_disc, vha, 0xffff, - "%s %d %8phC post del sess\n", - __func__, __LINE__, - conflict->port_name); - qlt_schedule_sess_for_deletion - (conflict); - break; - } - } + + qlt_schedule_sess_for_deletion(conflict); } fcport->rscn_gen++; @@ -3548,19 +3516,7 @@ void qla24xx_handle_gpnid_event(scsi_qla_host_t *vha, struct event_arg *ea) conflict->disc_state); conflict->scan_state = QLA_FCPORT_SCAN; - switch (conflict->disc_state) { - case DSC_DELETED: - case DSC_DELETE_PEND: - break; - default: - ql_dbg(ql_dbg_disc, vha, 0xffff, - "%s %d %8phC post del sess\n", - __func__, __LINE__, - conflict->port_name); - qlt_schedule_sess_for_deletion - (conflict); - break; - } + qlt_schedule_sess_for_deletion(conflict); } } From patchwork Thu Aug 30 16:35:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582311 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 924675A4 for ; Thu, 30 Aug 2018 16:36:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 802C82C12C for ; Thu, 30 Aug 2018 16:36:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 747BE2C132; Thu, 30 Aug 2018 16:36:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 710B92C0EF for ; Thu, 30 Aug 2018 16:36:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727690AbeH3UjE (ORCPT ); Thu, 30 Aug 2018 16:39:04 -0400 Received: from mail-bn3nam01on0085.outbound.protection.outlook.com ([104.47.33.85]:1634 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727073AbeH3UjE (ORCPT ); Thu, 30 Aug 2018 16:39:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9fAix1skG+CBB65ivd4w3U+WJeLLRf6cmyYekTXbBgw=; b=RQM/ene9aIYg6wD4F0tFs1yff6HVT7eUXyHwV/7lASroxts0Uxn+xsjArsYB52fvBDibYzSpMhPQWGsFZzDPOtm9DwkDpGHOwBaGwYehSfNTL6+fNiQRaWJIhlNbRK/UIpqZjbSAAWnFAsIsjyiAOx8hKa3wISTKJmXdHl4IOqg= Received: from CO2PR07CA0050.namprd07.prod.outlook.com (2603:10b6:100::18) by BYAPR07MB4392.namprd07.prod.outlook.com (2603:10b6:a02:c0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.15; Thu, 30 Aug 2018 16:36:01 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by CO2PR07CA0050.outlook.office365.com (2603:10b6:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.16 via Frontend Transport; Thu, 30 Aug 2018 16:36:01 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:01 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:51 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZpRb027347; Thu, 30 Aug 2018 09:35:51 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZpwn027346; Thu, 30 Aug 2018 09:35:51 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 06/14] qla2xxx: Move rport registration out of internal work_list Date: Thu, 30 Aug 2018 09:35:42 -0700 Message-ID: <20180830163550.27288-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(136003)(39860400002)(2980300002)(438002)(189003)(199004)(80596001)(26005)(69596002)(11346002)(305945005)(2616005)(356003)(44832011)(14444005)(36756003)(6666003)(1076002)(5660300001)(2906002)(336012)(126002)(476003)(81156014)(446003)(8676002)(486006)(81166006)(50466002)(186003)(48376002)(54906003)(316002)(42186006)(16586007)(50226002)(87636003)(110136005)(478600001)(8936002)(47776003)(4326008)(106002)(575784001)(106466001)(86362001)(72206003)(76176011)(51416003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4392;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:PcFCjIAxLbzSP0wymvkEH/ZThhUD8uk/Epybq/ucyeyl+gO2nC7qpnlkhHKSMHpSH6YPkx5DeqwuqR3NDKV5tua1XxpMxqFqZ8emtFq8XoaWFDM1Mn0ScnVwQmkY1g0e X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b593421-7a40-437e-1776-08d60e96ac27 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BYAPR07MB4392; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;3:Tfc1+Lh0YHcHxJIHq/fGnpJ4CUNL/T5g9qWs5UJqt088yDTCOXyGfxApuEL7kWhMJfOMLEsQOmMIlKE3KP2KiTELx9m/N3IZGxClrizCrw4vOVGb1V7i32mdHjKFCZr77L7fE6nQFjq94fYdEhmrn9ozDJ9TNkacmdip4yuNQBlUsRapzQ9H1nUmD1EA1NNNAmXO4p2Rk5+/VnpiCLvmiWsNIUS1hP9IXkqC1pTxmihWXJfFfHHFoKI+2kM3oc5hjHAOcJMhVLpl0vbyO3PflA2mL9EE2BGHHaJznoik3VZbO4EeD6HsUWeCR+Z7C1ZIp6IrQU8M7i90COXWEVWW4QagygX0tu/Gsnj3LoNF0zU=;25:eT9WAY9ynHV8XGUJJP3S1DAjN4fGq898g9RZUFyIYld/OA1wZrfxJsB2WAxFXSLp+xlwpceK/qNeBcFQwoYo80iIBlqk2ijKxOv7bLK/sLz3aO2mfW9rLWcKKVF8P7Ssvd1vtmBG7mfMLgBNBjXnevMoj9y8Ou7pOxX2Jzlx3e5eXUGYNZTCWF4fsFFaoXNSa++nLCHDJOCL9zDBM5Uj4Kg8rJnIV5XcO/CtqgmbApZpnTXqN88QIZTRS4aU+Br2ljlU3lx/opqzNGw2HI8hMlzzRbs0HP4X1C5q6cDDRcZtqRJj6ghciZApIphb0FhKynkrYyZO7dByemyokclqHQ== X-MS-TrafficTypeDiagnostic: BYAPR07MB4392: X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;31:vUupT/P/9PYSuj8zAgky8Qz8dmzEluKRc+Lqk13xkptk08wy+Z+ujYVV0dUgH2PBvqb/7fOloikL4t5MR6y3yKaxQB0RpVo7YZR8klg/WO+px195jRm5plI5qDoB4Cq9iTLpy4yZe2yCbZSGpd1VtKon5WjVtaBQgcPzgHomj0Afq3PZ+UISiOQ1yAU2TFJLHEGAD/7HOkXxMKSp12zc9PHo2EtkejI0TD35SkV3VDY=;20:ps27hU3fUfGinccfi5BuVumWIhXOSCL/VltmHGvvm78Hcw4r5opJiAUshVGXSHqHZWlfIMSTE9GarBacwrBjGTwsPJNhix4T5uOSQ9ivLxVvfNJco+TfsX2UXye4Pkm7nnsVr4qX656yb3vNEBmrE0I0n0PXZUjwGyvmxJxTqYvN1f3rrfd+txcVU26xKJEKjH4VR7CEk4BAX4qh9e15asZiFxJyNw9NoVmKDYh3ZaacLmSLZbXf+cI18YFU4ikhdxJCW8fGDoQMPpa+qlnB2bujadcxZln+y2xoeZZ9bmxQt2nxc2n1BJ2fMMoSGNZUYRy+sofVzUtodolG8XbbuHmJZ7MG0fEx5MaCfud3t7DUeLDhmXL3zEvSxYPPrGbkI4z0f55sGL0RnXW641ujAckVq/MPEkNkAdh8cyq17BrUaq7fyxnF+ojMgaI7Dx5gQW7Kzob5PyuKO06kzytkLPy3X+jSCp7S6W1qRs/fZx3QVlwV5v13eInqEUBtSJlh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(163750095850)(211171220733660); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93004095)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:BYAPR07MB4392;BCL:0;PCL:0;RULEID:;SRVR:BYAPR07MB4392; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;4:IMML3o7vkuCcyiBNuaZl29FF3K++RAugG3MuNkqXXFuO8N/vOlaRproNRdvgug1Lznszy7dGOaigMaDvL6NCjtMdfDOaw+QkbrdpE0Q85VdiaKgiK/oVWej/OFy2FJF1Wsa94Bc9infy0AXk1tSRAliCGme54k78d5jcus4yAHQkdGZD1EYJfsFkiyAHsDSsOXa/jq6LFcACvCnzUXgMHaim0oJMF5RJONuAG5kr8Epsgy4IkL42LjFi+gcS6a233kJPIZTGc1CCImpywUhHOzVR4SjANDBQHQ965gmyNOSOLbFO9bWGkvlQGQ6noWUkOi3zETf29Omi9U0+mgxnzSszWvGROHuKh6u6WHqZqZE= X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;23:YRybWwvgH7OAzMfyYswJO1vy8hzQQsH6tcOUt9XKJ5SCnpAHxyfhXzmRkr3xbWu8PkprxpGO33UZWSJDHsP8R+jOvAZYluGXkoM5DdsNga9UfrdLOzBjtCeS5B4rXgDmRlN/k4W6CkheP36SnPrU+fa7YZbQZDDUED45LQFI/L4IyU2cCXoLCkrGSv7YTQMebTrivbATwVJ2lOsEDvia7vA5QASOIdbPKN5wxK6D62LQYOfg46a6nbA9i/5zyOjrmb5sFB4x/df5fcKOMKrybUgKXW/+OeiT91d71502RiLw6WpHqji2h4of8jY97tWIqPlQjMrUbu2LT4LY1diLL/3/wnfmIviDufT/4Yua4dX7mkYtZwoxhOaux4zMlgClExiolqWPQ+ygE8xGmienCPxyYyIOltwm5skxsohSML35HfTCzZPvFjWdj/hG2fzAbMo6XNn8CwRdtGVgiCoMHfVTjpiVh5vTvSzbYw5EzB6C3f4H5rYSKLK+qZiZ84MQ3OTkA2on9wbmLTvRzea1fgbPxvFk0VhpZaU8BdW2KLLLKBUGKk8XcWB1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nQnkGpABlyAYIO8nRvv09UlwO+HbRUaHlcHK52rKd6bmICbFQ9TLxh26SUtfSvps6TTMHs/f0/0UqlJMhi+sR1ur1xNqfMB7NQM11eWFr8GVBPPSzXh8sua/CGY3kihLTx6fOZLI17vlTKznVFekjJEWxPhEKD8K7W0nGXS0GAflsTDBmpZSTTjdcNgWY9mE72SSF8G8BKuuzBnvAejvlj+6NxGRsytcEc4HLhIzwNpiw1SuWk764i35Ky1M4Qugnsps/qrvryCgYdO9SR0X6gVaTwO/O1wZiF/wpCt3EaEm0u4yjk6wG2cLDOmYsCcAV0qCSDKfWIR4Gdkoz5l+pOhobeD2YMO2DOY+Huf1LMTXxCjThfdDhRKILKMbjTWJA5EKMBR4bXLiV7HCz1+ue84L5nmvWRX9o5uopA==;5:whAWJxdRse0YMcmXC36JuqhO2tcddO10AhMc7FarGtESglwJDlmyEIxeM807FzjhYAcm8XAByYwIaUJI0Ih9/mKoyP+loFyAiJgXy3vws4ICoGcS2EX+MgTEIRp2XalxbkqHl9Kk/nj3+ONw/WtLbdY+63m4Bn37LEEACXmICp0=;7:TWplKx5AtI7t5NCMiAXxyhqO8R+ye/OKat8lC0GXzkqdlehx2GI15y6s54PZKk+FTpnLLMjX0ITgojf5GL8kF9fKeOPK1idtGyKfUZmQua8NkXZGniTSXIB8fZLTluYfY19rzhWIW4saJupl/0l90K8bGWewVjJO+/Lqb/FYT7ZvaKSpNwz93Sy0PsTK/ajsR9H/EJNs3tgxJaIWApM0hdG4BaUn1yXVSg58R3cBERmXWi5ePvdwt1ZaQ1rWmLra SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:01.2973 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b593421-7a40-437e-1776-08d60e96ac27 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4392 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Currently, the rport registration is being called from a single work element that is used to process QLA internal "work_list". This work_list is meant for quick and simple task (ie no sleep). The Rport registration process sometime can be delayed by upper layer. This causes back pressure with the internal queue where other jobs are unable to move forward. This patch will schedule the registration process with a new work element (fc_port.reg_work). While the RPort is being registered, the current state of the fcport will not move forward until the registration is done. If the state of the fabric has changed, a new field/next_disc_state will record the next action on whether to 'DELETE' or 'Reverify the session/ADISC'. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 6 ++- drivers/scsi/qla2xxx/qla_gbl.h | 5 ++- drivers/scsi/qla2xxx/qla_init.c | 66 ++++++++++++++++++++++++++----- drivers/scsi/qla2xxx/qla_os.c | 26 +++++++----- drivers/scsi/qla2xxx/qla_target.c | 83 +++++++++++++++++++++++++++++++-------- 5 files changed, 147 insertions(+), 39 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index c41d0dbbbd79..16dd59bcd60a 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2375,11 +2375,13 @@ typedef struct fc_port { unsigned long expires; struct list_head del_list_entry; struct work_struct free_work; - + struct work_struct reg_work; + uint64_t jiffies_at_registration; struct qlt_plogi_ack_t *plogi_link[QLT_PLOGI_LINK_MAX]; uint16_t tgt_id; uint16_t old_tgt_id; + uint16_t sec_since_registration; uint8_t fcp_prio; @@ -2412,6 +2414,7 @@ typedef struct fc_port { struct qla_tgt_sess *tgt_session; struct ct_sns_desc ct_desc; enum discovery_state disc_state; + enum discovery_state next_disc_state; enum login_state fw_login_state; unsigned long dm_login_expire; unsigned long plogi_nack_done_deadline; @@ -3222,7 +3225,6 @@ enum qla_work_type { QLA_EVT_GPDB, QLA_EVT_PRLI, QLA_EVT_GPSC, - QLA_EVT_UPD_FCPORT, QLA_EVT_GNL, QLA_EVT_NACK, QLA_EVT_RELOGIN, diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index 178974896b5c..b8e4abe804d5 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h @@ -54,7 +54,7 @@ extern void qla2x00_abort_isp_cleanup(scsi_qla_host_t *); extern void qla2x00_quiesce_io(scsi_qla_host_t *); extern void qla2x00_update_fcport(scsi_qla_host_t *, fc_port_t *); - +void qla_register_fcport_fn(struct work_struct *); extern void qla2x00_alloc_fw_dump(scsi_qla_host_t *); extern void qla2x00_try_to_stop_firmware(scsi_qla_host_t *); @@ -109,6 +109,7 @@ int qla24xx_post_newsess_work(struct scsi_qla_host *, port_id_t *, u8 *, u8*, int qla24xx_fcport_handle_login(struct scsi_qla_host *, fc_port_t *); int qla24xx_detect_sfp(scsi_qla_host_t *vha); int qla24xx_post_gpdb_work(struct scsi_qla_host *, fc_port_t *, u8); + void qla2x00_async_prlo_done(struct scsi_qla_host *, fc_port_t *, uint16_t *); extern int qla2x00_post_async_prlo_work(struct scsi_qla_host *, fc_port_t *, @@ -208,7 +209,7 @@ extern void qla2x00_disable_board_on_pci_error(struct work_struct *); extern void qla2x00_sp_compl(void *, int); extern void qla2xxx_qpair_sp_free_dma(void *); extern void qla2xxx_qpair_sp_compl(void *, int); -extern int qla24xx_post_upd_fcport_work(struct scsi_qla_host *, fc_port_t *); +extern void qla24xx_sched_upd_fcport(fc_port_t *); void qla2x00_handle_login_done_event(struct scsi_qla_host *, fc_port_t *, uint16_t *); int qla24xx_post_gnl_work(struct scsi_qla_host *, fc_port_t *); diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index cb00fd740d29..6f26e6164c04 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1182,11 +1182,7 @@ void __qla24xx_handle_gpdb_event(scsi_qla_host_t *vha, struct event_arg *ea) vha->fcport_count++; ea->fcport->login_succ = 1; - ql_dbg(ql_dbg_disc, vha, 0x20d6, - "%s %d %8phC post upd_fcport fcp_cnt %d\n", - __func__, __LINE__, ea->fcport->port_name, - vha->fcport_count); - qla24xx_post_upd_fcport_work(vha, ea->fcport); + qla24xx_sched_upd_fcport(ea->fcport); } else if (ea->fcport->login_succ) { /* * We have an existing session. A late RSCN delivery @@ -1304,6 +1300,7 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) { u16 data[2]; u64 wwn; + u16 sec; ql_dbg(ql_dbg_disc, vha, 0x20d8, "%s %8phC DS %d LS %d P %d fl %x confl %p rscn %d|%d login %d retry %d lid %d scan %d\n", @@ -1435,6 +1432,22 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) qla24xx_post_prli_work(vha, fcport); break; + case DSC_UPD_FCPORT: + sec = jiffies_to_msecs(jiffies - + fcport->jiffies_at_registration)/1000; + if (fcport->sec_since_registration < sec && sec && + !(sec % 60)) { + fcport->sec_since_registration = sec; + ql_dbg(ql_dbg_disc, fcport->vha, 0xffff, + "%s %8phC - Slow Rport registration(%d Sec)\n", + __func__, fcport->port_name, sec); + } + + if (fcport->next_disc_state != DSC_DELETE_PEND) + fcport->next_disc_state = DSC_ADISC; + set_bit(RELOGIN_NEEDED, &vha->dpc_flags); + break; + default: break; } @@ -1550,8 +1563,10 @@ void qla2x00_fcport_event_handler(scsi_qla_host_t *vha, struct event_arg *ea) case RSCN_PORT_ADDR: fcport = qla2x00_find_fcport_by_nportid (vha, &ea->id, 1); - if (fcport) + if (fcport) { fcport->scan_needed = 1; + fcport->rscn_gen++; + } spin_lock_irqsave(&vha->work_lock, flags); if (vha->scan.scan_flags == 0) { @@ -4723,6 +4738,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags) fcport = NULL; } INIT_WORK(&fcport->del_work, qla24xx_delete_sess_fn); + INIT_WORK(&fcport->reg_work, qla_register_fcport_fn); INIT_LIST_HEAD(&fcport->gnl_entry); INIT_LIST_HEAD(&fcport->list); @@ -5218,13 +5234,15 @@ qla2x00_reg_remote_port(scsi_qla_host_t *vha, fc_port_t *fcport) void qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) { - fcport->vha = vha; - if (IS_SW_RESV_ADDR(fcport->d_id)) return; + ql_dbg(ql_dbg_disc, vha, 0x20ef, "%s %8phC\n", + __func__, fcport->port_name); + + fcport->disc_state = DSC_UPD_FCPORT; + fcport->login_retry = vha->hw->login_retry_count; fcport->flags &= ~(FCF_LOGIN_NEEDED | FCF_ASYNC_SENT); - fcport->disc_state = DSC_LOGIN_COMPLETE; fcport->deleted = 0; fcport->logout_on_delete = 1; fcport->login_retry = vha->hw->login_retry_count; @@ -5286,6 +5304,36 @@ qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) } } qla2x00_set_fcport_state(fcport, FCS_ONLINE); + + fcport->disc_state = DSC_LOGIN_COMPLETE; +} + +void qla_register_fcport_fn(struct work_struct *work) +{ + fc_port_t *fcport = container_of(work, struct fc_port, reg_work); + u32 rscn_gen = fcport->rscn_gen; + u16 data[2]; + + if (IS_SW_RESV_ADDR(fcport->d_id)) + return; + + qla2x00_update_fcport(fcport->vha, fcport); + + if (rscn_gen != fcport->rscn_gen) { + /* RSCN(s) came in while registration */ + switch (fcport->next_disc_state) { + case DSC_DELETE_PEND: + qlt_schedule_sess_for_deletion(fcport); + break; + case DSC_ADISC: + data[0] = data[1] = 0; + qla2x00_post_async_adisc_work(fcport->vha, fcport, + data); + break; + default: + break; + } + } } /* diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 42b8f0d3e580..1ae31a119a37 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4761,16 +4761,25 @@ qlafx00_post_aenfx_work(struct scsi_qla_host *vha, uint32_t evtcode, return qla2x00_post_work(vha, e); } -int qla24xx_post_upd_fcport_work(struct scsi_qla_host *vha, fc_port_t *fcport) +void qla24xx_sched_upd_fcport(fc_port_t *fcport) { - struct qla_work_evt *e; + unsigned long flags; - e = qla2x00_alloc_work(vha, QLA_EVT_UPD_FCPORT); - if (!e) - return QLA_FUNCTION_FAILED; + if (IS_SW_RESV_ADDR(fcport->d_id)) + return; - e->u.fcport.fcport = fcport; - return qla2x00_post_work(vha, e); + spin_lock_irqsave(&fcport->vha->work_lock, flags); + if (fcport->disc_state == DSC_UPD_FCPORT) { + spin_unlock_irqrestore(&fcport->vha->work_lock, flags); + return; + } + fcport->jiffies_at_registration = jiffies; + fcport->sec_since_registration = 0; + fcport->next_disc_state = DSC_DELETED; + fcport->disc_state = DSC_UPD_FCPORT; + spin_unlock_irqrestore(&fcport->vha->work_lock, flags); + + queue_work(system_unbound_wq, &fcport->reg_work); } static @@ -5025,9 +5034,6 @@ qla2x00_do_work(struct scsi_qla_host *vha) case QLA_EVT_GPSC: qla24xx_async_gpsc(vha, e->u.fcport.fcport); break; - case QLA_EVT_UPD_FCPORT: - qla2x00_update_fcport(vha, e->u.fcport.fcport); - break; case QLA_EVT_GNL: qla24xx_async_gnl(vha, e->u.fcport.fcport); break; diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 8c811b251d42..34fadd320f55 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -600,14 +600,7 @@ void qla2x00_async_nack_sp_done(void *s, int res) sp->fcport->login_succ = 1; vha->fcport_count++; - - ql_dbg(ql_dbg_disc, vha, 0x20f3, - "%s %d %8phC post upd_fcport fcp_cnt %d\n", - __func__, __LINE__, - sp->fcport->port_name, - vha->fcport_count); - sp->fcport->disc_state = DSC_UPD_FCPORT; - qla24xx_post_upd_fcport_work(vha, sp->fcport); + qla24xx_sched_upd_fcport(sp->fcport); } else { sp->fcport->login_retry = 0; sp->fcport->disc_state = DSC_LOGIN_COMPLETE; @@ -1230,11 +1223,12 @@ void qlt_schedule_sess_for_deletion(struct fc_port *sess) { struct qla_tgt *tgt = sess->tgt; unsigned long flags; + u16 sec; - if (sess->disc_state == DSC_DELETE_PEND) + switch (sess->disc_state) { + case DSC_DELETE_PEND: return; - - if (sess->disc_state == DSC_DELETED) { + case DSC_DELETED: if (tgt && tgt->tgt_stop && (tgt->sess_count == 0)) wake_up_all(&tgt->waitQ); if (sess->vha->fcport_count == 0) @@ -1243,6 +1237,24 @@ void qlt_schedule_sess_for_deletion(struct fc_port *sess) if (!sess->plogi_link[QLT_PLOGI_LINK_SAME_WWN] && !sess->plogi_link[QLT_PLOGI_LINK_CONFLICT]) return; + break; + case DSC_UPD_FCPORT: + /* + * This port is not done reporting to upper layer. + * let it finish + */ + sess->next_disc_state = DSC_DELETE_PEND; + sec = jiffies_to_msecs(jiffies - + sess->jiffies_at_registration)/1000; + if (sess->sec_since_registration < sec && sec && !(sec % 5)) { + sess->sec_since_registration = sec; + ql_dbg(ql_dbg_disc, sess->vha, 0xffff, + "%s %8phC : Slow Rport registration(%d Sec)\n", + __func__, sess->port_name, sec); + } + return; + default: + break; } if (sess->deleted == QLA_SESS_DELETED) @@ -4752,6 +4764,32 @@ static int qlt_handle_login(struct scsi_qla_host *vha, goto out; } + if (sess->disc_state == DSC_UPD_FCPORT) { + u16 sec; + + /* + * Remote port registration is still going on from + * previous login. Allow it to finish before we + * accept the new login. + */ + sess->next_disc_state = DSC_DELETE_PEND; + sec = jiffies_to_msecs(jiffies - + sess->jiffies_at_registration) / 1000; + if (sess->sec_since_registration < sec && sec && + !(sec % 5)) { + sess->sec_since_registration = sec; + ql_dbg(ql_dbg_disc, vha, 0xffff, + "%s %8phC - Slow Rport registration (%d Sec)\n", + __func__, sess->port_name, sec); + } + + if (!conflict_sess) + kmem_cache_free(qla_tgt_plogi_cachep, pla); + + qlt_send_term_imm_notif(vha, iocb, 1); + goto out; + } + qlt_plogi_ack_link(vha, pla, sess, QLT_PLOGI_LINK_SAME_WWN); sess->d_id = port_id; sess->login_gen++; @@ -4910,6 +4948,7 @@ static int qlt_24xx_handle_els(struct scsi_qla_host *vha, if (sess != NULL) { bool delete = false; + int sec; spin_lock_irqsave(&tgt->ha->tgt.sess_lock, flags); switch (sess->fw_login_state) { case DSC_LS_PLOGI_PEND: @@ -4922,9 +4961,24 @@ static int qlt_24xx_handle_els(struct scsi_qla_host *vha, } switch (sess->disc_state) { + case DSC_UPD_FCPORT: + spin_unlock_irqrestore(&tgt->ha->tgt.sess_lock, + flags); + + sec = jiffies_to_msecs(jiffies - + sess->jiffies_at_registration)/1000; + if (sess->sec_since_registration < sec && sec && + !(sec % 5)) { + sess->sec_since_registration = sec; + ql_dbg(ql_dbg_disc, sess->vha, 0xffff, + "%s %8phC : Slow Rport registration(%d Sec)\n", + __func__, sess->port_name, sec); + } + qlt_send_term_imm_notif(vha, iocb, 1); + return 0; + case DSC_LOGIN_PEND: case DSC_GPDB: - case DSC_UPD_FCPORT: case DSC_LOGIN_COMPLETE: case DSC_ADISC: delete = false; @@ -5964,10 +6018,7 @@ static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha, case MODE_DUAL: if (newfcport) { if (!IS_IIDMA_CAPABLE(vha->hw) || !vha->hw->flags.gpsc_supported) { - ql_dbg(ql_dbg_disc, vha, 0x20fe, - "%s %d %8phC post upd_fcport fcp_cnt %d\n", - __func__, __LINE__, fcport->port_name, vha->fcport_count); - qla24xx_post_upd_fcport_work(vha, fcport); + qla24xx_sched_upd_fcport(fcport); } else { ql_dbg(ql_dbg_disc, vha, 0x20ff, "%s %d %8phC post gpsc fcp_cnt %d\n", From patchwork Thu Aug 30 16:35:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 11C43175A for ; Thu, 30 Aug 2018 16:36:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01F792C0EF for ; Thu, 30 Aug 2018 16:36:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAAD12C132; Thu, 30 Aug 2018 16:36:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 770792C0EF for ; Thu, 30 Aug 2018 16:36:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727692AbeH3UjE (ORCPT ); Thu, 30 Aug 2018 16:39:04 -0400 Received: from mail-cys01nam02on0076.outbound.protection.outlook.com ([104.47.37.76]:31520 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727676AbeH3UjE (ORCPT ); Thu, 30 Aug 2018 16:39:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IgdpIglTyLdYOV0OTAeY3gpGTeaXI6Bb89BxCMMzV0I=; b=VLs9iPcX6e7AJK4sz6P7qv3UbRwFO0dmjn4nDmrzhrM9GcpRn42py42RTvZVuMeDdHLE33dyBz0HLW43pWh+lqR2sYlznSty6IEOVcDTkyta1tb1sJPoyvdhkku4Ss45g6ftwsQse/hj3iH4E4ZSEyGIdunYNDJZI0jaDvncYnI= Received: from BYAPR07CA0046.namprd07.prod.outlook.com (2603:10b6:a03:60::23) by DM6PR07MB4666.namprd07.prod.outlook.com (2603:10b6:5:a0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.15; Thu, 30 Aug 2018 16:36:04 +0000 Received: from CO1NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by BYAPR07CA0046.outlook.office365.com (2603:10b6:a03:60::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.15 via Frontend Transport; Thu, 30 Aug 2018 16:36:03 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT023.mail.protection.outlook.com (10.152.96.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:03 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:51 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZprT027351; Thu, 30 Aug 2018 09:35:51 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZpfe027350; Thu, 30 Aug 2018 09:35:51 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 07/14] qla2xxx: Decrement login retry count for only plogi Date: Thu, 30 Aug 2018 09:35:43 -0700 Message-ID: <20180830163550.27288-8-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(136003)(39860400002)(2980300002)(438002)(189003)(199004)(69596002)(36756003)(50226002)(42186006)(316002)(81166006)(81156014)(8676002)(356003)(80596001)(86362001)(51416003)(478600001)(4326008)(87636003)(305945005)(106002)(72206003)(8936002)(76176011)(2906002)(54906003)(1076002)(44832011)(47776003)(110136005)(11346002)(336012)(48376002)(5660300001)(26005)(2616005)(186003)(6666003)(106466001)(446003)(126002)(476003)(16586007)(486006)(50466002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4666;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT023;1:10K9FHduabCiTh4gc3ouR9kZSXsIJKeHFR8ioeDJiIhKjxXfGj4cC4+CDBF15tLSi78fTdq7+k8UnHEa+Dymq5hn4DlI63J9AuClz5OOUWAz6YxafFV8O5DycxQkuuOU X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46069f7e-016e-4e00-d900-08d60e96ad68 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM6PR07MB4666; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4666;3:3zNj9+VOVHqTTv1jbHk9weEVX7MAYJV6oSq27O0b44Hs7ZeZMRXUXz86lIBFrAtFmoztKCxh7F2z3LRyQ6yeM7sTjWmevNuSuEXHogQgT20WUSTLqOKjORjE6q+QyDLCt/cxIHQ768j+8hL8Fk7G8ZawhE2Yf1LcIHua8hH1QBsU/I8w/X6gxvcAO8aEmymmYfPZa5lugQO/nyuEHIXK5JNg99F+oyYUtqRVbxG3MroUOaNeHAAKOUJ6wuRPWVYAByjMEmq6X8HaGG/cn6zB/sil/7lBo1SUDqO6lOZTFhguaisnMH7ePglzPcFZECW3odE6nplK0o6jt/wzLp80yhEGyaLsk495Aak8nAhUveY=;25:RHAXjaXcHUNZgcVHOzhxny0hPAHrfrjt28WLZulJJH0uQk/hUSc/OWsqDnd3S65vByDeP92BbXfXTv3L8LPnklOjIRU4zeAkD/bFw9XA5l1Aa/4FS0LyrS0zYFjsuzoPcnjfqc4n6dDTPueEBGHSgev0WvP8F7rABYeYOawNH3hM1v00mkUsBzFYMqLHGfw272V52cW68oB1FQd0XXJFlY6+x9uBAhat853V+5ksvo4SpUsJVSnVY1iUbYvjhlrjUou309tqPoGQHZ0BKeIQoAHWvOsQ+bMVKpx4kR9xhzXx50SQ49Tl5KeYBFtsmOi+0x5bAq03kI3b2qaFoejmxg== X-MS-TrafficTypeDiagnostic: DM6PR07MB4666: X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4666;31:KrT7IxzFw+OxR6AbNMGuvm3eayiGT6iBiiH83nu+GRK7EeMIsLhV7gZzbdOhiU9kovguk5w9e/fQbcX+pF7X8RhN3OKYm5tq54kEUj6AC7uXwMt/kJZEzM9w6Qq2SSkns2xTvKQHfiUU/YPNkJqZ4Y27I/B/YNr72MPV9izfXoYLo10f8hjkGqyMynC7ZV6xEH1AmT6LPd/SdLj+U05QKgZI36Mq2jTdWYnmyu25v1E=;20:1xC9UWH4RXpLdTnIvAr2o/jNegmEWYy+FhM3agdGPNmvUi4oF1flRE0rwNQ8e5ZSpjyux8DLQaIakSKhd+pg/gcDjG+zeL+FoWJaOuzyrEtX8Sdw/1gbQ2w8PDeonKp62GUmTrIME5yJL4bUtMU8I+RX0WP0I6XQr9SMBul9mvFpjPMl1mRsgV8QvxNyxhVVfxT3I4Zvj8micMvpAgHglIsx/sEShDMjCsJm78XRXsnzeK6eV7GTuFkiHQXqL2MommSQ+CltwfIp7D6ApwFFjOcQyRZMgQ308ANJ8/33PzpTWhtpjvHqgUe/I93e2WNizzvr06CcFtGdOUE3YJZYCzvBPxMgP9CmjoYRmNxxVYwysU4SEEVGlfu/vHlPZmUAOewjY2BHWuawi3D2km2g0yoHpC0sAeexP8h5NRlb0fDeAfeaPgrg8PuizgixrcNP5MpdUHhsoVToSGpZmV0RqakDQZ08jYLYaLqWqXxPAWViwwDlUDNw5HxZcLd+wYIY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699016);SRVR:DM6PR07MB4666;BCL:0;PCL:0;RULEID:;SRVR:DM6PR07MB4666; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4666;4:FfDlYsWMuvUrYHXBwUmFSCAcmM8/Z4DLUDPrT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qz1eesnG3aERrakXrzRbYXqwFi1YlCzbIki7Ymllg+p6mTpzIfJd4LA0WdngfzikpD2Pm3Tbm/AumTA0e8F6vmsnnA4sMMqJcVo3p1BOm+o5ullvhPQ6MbSnCRnLvfJAIfiKQme1oSDrTn5e4bdzF++PKYvTszI0OLdI2/NBMizkRAtB/jmxHbVw==;5:mF7O7n8OZcsxFX3MxF+MyIxOy64anJ7FpopbkbF0dslGc8KzyLEs4gETWmbbbZJ8VT8Mni4y3HpxJmMzXYjR5WPhvqUPwYeH4ZaoLbIg8TR/EgAuD4bSxa2+OQZl28/Qwbsdc51rdj0oxo8h4WfLss83yx9VLiEymhFE3To7O7A=;7:SDk+U/fBs2rXyuHNNHuyTO5DtZfkzOkijI6UqxobeYjGoNrU/DD5r4yKYoCErkSDmrNisAk8Ev0TnPpoMv6ZFeoWXM9YGXObs46j74RyuVb0yUjboNeZLaxVw/6IM2+ya3j0jFinQODpJCCbaDkCSLwaHy8ZRR3iRB0In3FXY4+qDia7xuccDp1bL37UUyr06m8BhFXTQ045ZHECq4q6vqzqS9UWn2d4BZ7ZAbBWNwr+Zofk8gclp+4Gfy6Qjzay SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:03.4216 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46069f7e-016e-4e00-d900-08d60e96ad68 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4666 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Decrement login retry count only for plogi, instead of number of attempt made for login. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 6f26e6164c04..fa6f2400a508 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1276,7 +1276,8 @@ static void qla_chk_n2n_b4_login(struct scsi_qla_host *vha, fc_port_t *fcport) login = 1; } - if (login) { + if (login && fcport->login_retry) { + fcport->login_retry--; if (fcport->loop_id == FC_NO_LOOP_ID) { fcport->fw_login_state = DSC_LS_PORT_UNAVAIL; rc = qla2x00_find_new_loop_id(vha, fcport); @@ -1302,13 +1303,12 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) u64 wwn; u16 sec; - ql_dbg(ql_dbg_disc, vha, 0x20d8, - "%s %8phC DS %d LS %d P %d fl %x confl %p rscn %d|%d login %d retry %d lid %d scan %d\n", + ql_dbg(ql_dbg_disc + ql_dbg_verbose, vha, 0x20d8, + "%s %8phC DS %d LS %d P %d fl %x confl %p rscn %d|%d login %d lid %d scan %d\n", __func__, fcport->port_name, fcport->disc_state, fcport->fw_login_state, fcport->login_pause, fcport->flags, fcport->conflict, fcport->last_rscn_gen, fcport->rscn_gen, - fcport->login_gen, fcport->login_retry, - fcport->loop_id, fcport->scan_state); + fcport->login_gen, fcport->loop_id, fcport->scan_state); if (fcport->scan_state != QLA_FCPORT_FOUND) return 0; @@ -1407,10 +1407,6 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) break; case DSC_LOGIN_FAILED: - fcport->login_retry--; - ql_dbg(ql_dbg_disc, vha, 0x20d0, - "%s %d %8phC post gidpn\n", - __func__, __LINE__, fcport->port_name); if (N2N_TOPO(vha->hw)) qla_chk_n2n_b4_login(vha, fcport); else @@ -1419,10 +1415,6 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) case DSC_LOGIN_COMPLETE: /* recheck login state */ - ql_dbg(ql_dbg_disc, vha, 0x20d1, - "%s %d %8phC post adisc\n", - __func__, __LINE__, fcport->port_name); - fcport->login_retry--; data[0] = data[1] = 0; qla2x00_post_async_adisc_work(vha, fcport, data); break; From patchwork Thu Aug 30 16:35:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8B80117DB for ; Thu, 30 Aug 2018 16:36:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B16C2C0EF for ; Thu, 30 Aug 2018 16:36:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FB0A2C12C; Thu, 30 Aug 2018 16:36:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BD672C137 for ; Thu, 30 Aug 2018 16:36:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727694AbeH3UjG (ORCPT ); Thu, 30 Aug 2018 16:39:06 -0400 Received: from mail-sn1nam02on0067.outbound.protection.outlook.com ([104.47.36.67]:29071 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727586AbeH3UjF (ORCPT ); Thu, 30 Aug 2018 16:39:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O2Q3/HnzJYf2pPRHctIyVwYOzjvv8byW3+V7kuK6YG4=; b=LpwCKo9bjWYUDVCKP0Pv2okiz80s5xA5EzCeEEER59+DyGUe4Aai/5mnhoVHHJS4LUzhEBgaABPPr0+LWziIKo8DsLGW0GK6epdmNvLwIjYUo3kTItayvm+7KjvkBqlW7Nn5E3zAIfoJtiUGqVVMIjKM9aUZgjUPbvP1Xz//rhE= Received: from CO2PR07CA0049.namprd07.prod.outlook.com (2603:10b6:100::17) by BN7PR07MB4659.namprd07.prod.outlook.com (2603:10b6:406:f1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.14; Thu, 30 Aug 2018 16:36:02 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::200) by CO2PR07CA0049.outlook.office365.com (2603:10b6:100::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.14 via Frontend Transport; Thu, 30 Aug 2018 16:36:02 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:02 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:51 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZpdo027355; Thu, 30 Aug 2018 09:35:51 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZpQb027354; Thu, 30 Aug 2018 09:35:51 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 08/14] qla2xxx: Turn off IOCB timeout timer on IOCB completion Date: Thu, 30 Aug 2018 09:35:44 -0700 Message-ID: <20180830163550.27288-9-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(396003)(136003)(2980300002)(438002)(199004)(189003)(486006)(48376002)(50226002)(5660300001)(356003)(26005)(2906002)(80596001)(69596002)(50466002)(14444005)(305945005)(2616005)(6666003)(47776003)(446003)(11346002)(336012)(81156014)(476003)(81166006)(1076002)(8936002)(8676002)(126002)(44832011)(72206003)(478600001)(36756003)(186003)(87636003)(575784001)(106466001)(54906003)(86362001)(76176011)(51416003)(106002)(16586007)(42186006)(110136005)(316002)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4659;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:BayV6oqbqnFxhC5ezNtD7nrZo/ZiyaUW+QJ9u8HbCxkgGpCbQtkJvdEKA03hXzH/ECmtYbWTq7WFW9hxFHyHvf2MLTxlcmbSKLug1wZlHM0wVffRewFMR3SDAfgL1ivY X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cacaf4d8-015c-4377-8922-08d60e96ac99 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR07MB4659; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4659;3:PzskjfePPs5FH+aDzNx8NhQIRu/NYZEdMxNpEwHZhkEls5laMo1IuUebk3jt7MuRsJyzQIUs7vVxR9AhRN9hctbTWvwHOU+5e/Cvnu3o2z4UIoO6MutVgq+8/+/hJ4ETiPndTb8A7e8PVVAviuPchQIDJhSN3jW7GstONSMIO0p0iQciYh01YNQAozRWMMWpfpe3XHjNcjIkq2Xk1A6x9WrS2Twf/F1H2OWp+edYIKtSwOlimyRylYdEefQYmVkcW7ad6esxWI139DZggyXfBoFYQnOn5DN0SxJK/gdoDRHB7d0iRUOvXlM0xfibZ9i54KECBwz5gQQkVLaYGSQs3ds6rbXKolHr9DV/LQUcXHY=;25:E2TSDKInX27qsDNcbWW9YC3P0oasE31euy6czhpY5rKGGKpzyEFq7WHgZ51o5e5xPSbDzuT3dYZmtNWc4mpUbJasMcbFTzgPYRxFvA1DYIQZS4Qzs+xe6x8yL9FLKOTRzNGA3rrZOAKcUBOtQw18FQEzhBdRtHjAhk+XRJol6hzAfi6R5qRCWAQPyh0K5FPFsqRkqSqyISTMEbPmoYct+nLqxO89O0faV7aZ7BGQ94KslBr30dOmCRRksahaYf9rcmRCNVNMGpb79yypMAkBu7yEwcqVxqsgDiO8CYapIYh9BQoguevxBOfBcKoacq4agC8z8UBgTz9GQNRt66OjOQ== X-MS-TrafficTypeDiagnostic: BN7PR07MB4659: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4659;31:ABfBGLMWa4GptUIdKLo8ODpJOpOLzbekuAgwGmeoK8G9oBFzrpWK+6DNVogDdNrqf3DqJZtgj2+LvPvmwkPf+XnFndhvjVlhpRi7brke7CzQwaMDlRHtiyx1HD8ROHzTuNKqY2fyR4hSUrvcWfPRCFMqFw++6d3wFusQPKU4A1gxymodwtZ1cXHFRuv6+QYKLfajOLvG4MeXtaYHWcStOqL73URfELk3Kq/yd78L9Qs=;20:8rRClk2rTr8g0jZlBQp+/bvpUee+ACCmVZlIn+91M2uR5DKh0kuRZltWau2CLDKsafCH6M3/UWQXRR0B+5W6PW0iDfq/Qr9NR3HAkXaWF2neHp4wq29p5Po9v2/YebQHNN1WhuS7fQcfrUzjmgATfgTzGpOhZTKj01+4AY4SMqAuGRUk4D0ty95qvD/LgTv5CmleMNdGIbiVYyY494brebOqCCNaedldlKKezN6oyV/wFYX4Mo+epmOqCAkFq7JfAC/88zfkUL7902xhDs3ciPHr7euQD5iHUKdB27jj+OJTEmq8QHwrEnX7ia/k34jOvmE1Oo++1Zt3Je7QTEu2V7UQfAiiyjSnMkfiSLo/MgGcRzEzMvScVeYp10eGe3DLIvS7MFQm1Sq7FQz5xPp2DKQDPMWKC3NfmTDNGbcd5VtHqRhb4NvBzn1U3CJRL5M3s2jzdy8W56CinnC4zjrLF8sOa98jzJL1rP4NyRWdnpKSijUjyPQlTuTZrhwjOtFm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(163750095850); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(93006095)(93004095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699016);SRVR:BN7PR07MB4659;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4659; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4659;4:9AeFbipX2o3rB+8YbmeGqq87u10zdQmU3Q+n9JixpzGJ1eDB31ISedAIC0/n3PoB+Kqbl3yCmdu9doK4gJsGslXn+6jhXQKKeQ1IgPD1GKu8aUc8ogqzPzTvDRExWtfoj7tVN/fr4EMGb/0+qv54AvneBr4fhaL/sSaKemH8JHlTakXHNOWDkebGvCZ/AAeDHU+ZkRILW76khVYBDaTBv4LonS670moDeXIPoD0vMedXL+A1BYN1yJ/8YFuS54/lVwwE8BHEXdJtTMBpxQt2uqZ8sWQdo98acUNXOhe+l8FH9mBNqm+cfY7VY58iz8LI X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4659;23:f73f075N7+oRJQeAIf5HIVZbpYC2FRuemNwVNdyqDG31Wc9pv6Xd1ru4QiUWJLFUKYc5A66b/+/JZI9iScdApcUZRXyvgXoKap+uwrNB7YHWUad9F+eXajrFZiMRZc//+W3uSwOBKzBBP9OZ0RkpqLcuoylrtlCggKavVzubZuhoM4mz6/T8WcIf8LhYLm4ZfbcVtXx7ZvR/fEKlwey/6eEbBODcBnGgWfnLJ1S0DTMpY/dsi2GMTo1SgIPOZGS7j8wc5nszaGtRqsM5U8H/03Kqfa78bLHTbI1xxxpNtQu4B9TGap3y2Df8qIKiGWpk0ApshZeBa3unytb3KWuxrlzsBgo+Rr7ZPT12onepCQHpgZ503K6cPl5vICGsqfX8TA9h7ocf0q7Y8eTbx9gFZLWo36T9liAzSnHMggATN1TL/Hdqt6iQC2KRmn5llT8LxnZQj58WrpXZahyfkFKlvq9vFy1cCtojhKWr7JdulVgEWnRdIZurv5h02zY/w0A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N7PR07MB4659;6:nnUj2/4GIOSNWUFOWuQ88Tjw/SUM0WyjEJwcrEpAcXRlro9AXGwBPcBsVAkstmVq7VzBOTEVMM3cC6aH7nyjnvR3iRyG2uX3u78BMLoVv1aX6PGPthgNs2RdNWlQvWexCbJIDCr/fR6uBPypBVGGxD6a/G9cq5SfGnxtL0hjzh+GIUcsatapZjWTELYVADZNgex4lHemSrY7Hs9e+HLK0RO7qFijYDCg4fFawNNpw7PRE9ys20bZ7Fgf1Ldx7Fb6fstZxqlUC2sLI9MYX9G6ImXbhMVUNoeHiCHq7LteUPdADUTPXRe6R3TOtIMfCv/n+lVs8Hy0JZBjkis8SanyrcbL6HnHESTFa6Cp/5V6V+/Dm4jv0U1ch2j1VEis0NEv2fj/oU56wNi8kt8D+D/qnfguhgYk+udgIaCk57BEe1M81+7rx+nYo3dAc55MDcBPfKuzInLc/l785vefNsQytQ==;5:VPDTFTXSiEOlRozHahY+pQerBMN2i+X+aJM+p9nZgkN5pZmPjOheBaFroeG/WfklN8gZUGk/+KuhD9AZaRNNdjpSHUjepX8TwAtB9Pz+e2xH+FQG2zWVaTN4IoGm6Mj+DIECqZLMkI7Vt9ijZoOWXRl6PW4P32W3fJ4Ba7VfTRc=;7:Wrp2RTZoGMuMC8ruAJCpsEgFzMwuHDb+a7cyeEbxtnRwNT18LhDrX1sm6j/u3Epckyv/+EHS++9GohrOr8bRj1VhBC5kI6Ax1Dsr1GEzRa7uSszQDozhys4j4d2TNezEXETKKAWU77mAw0SXgMKn+TuAJQrsbId9neUtHOMRecNNurBGU23pDjKmOQxd9jTYwB3iWoqp9m7J5yZX77mQCIy+P+7ZGm0DGVV2fZI8nZ+cy3xzBfwTZSHKLkT0LYl5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:02.0630 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cacaf4d8-015c-4377-8922-08d60e96ac99 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4659 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Turn off IOCB timeout timer on IOCB completion instead of turning it off in a deferred task. This prevent false alarm if the deferred task is stalled out. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 6e95ba0d3c8b..1cb27eb46731 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -4175,10 +4175,13 @@ static void qla2x00_async_gpnft_gnnft_sp_done(void *s, int res) return; } - if (cmd == GPN_FT_CMD) + if (cmd == GPN_FT_CMD) { + del_timer(&sp->u.iocb_cmd.timer); e = qla2x00_alloc_work(vha, QLA_EVT_GPNFT_DONE); - else + } else { e = qla2x00_alloc_work(vha, QLA_EVT_GNNFT_DONE); + } + if (!e) { /* please ignore kernel warning. Otherwise, we have mem leak. */ if (sp->u.iocb_cmd.u.ctarg.req) { @@ -4307,7 +4310,6 @@ void qla24xx_async_gpnft_done(scsi_qla_host_t *vha, srb_t *sp) { ql_dbg(ql_dbg_disc, vha, 0xffff, "%s enter\n", __func__); - del_timer(&sp->u.iocb_cmd.timer); qla24xx_async_gnnft(vha, sp, sp->gen2); } From patchwork Thu Aug 30 16:35:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582327 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 80E385A4 for ; Thu, 30 Aug 2018 16:40:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EFD92C122 for ; Thu, 30 Aug 2018 16:40:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F7982C12C; Thu, 30 Aug 2018 16:40:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE49A2C122 for ; Thu, 30 Aug 2018 16:40:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727702AbeH3Um6 (ORCPT ); Thu, 30 Aug 2018 16:42:58 -0400 Received: from mail-dm3nam03on0066.outbound.protection.outlook.com ([104.47.41.66]:57920 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727073AbeH3Um6 (ORCPT ); Thu, 30 Aug 2018 16:42:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tByVxeUrbuuPLjEJU3p0Nv7ovxW6/mjSvnTGoHq7baw=; b=JAUEAGX6pif5UXnrDORrru6nV3kL0Z+iTO91dMme25RF18+AwRlNigcOfAMfWiDIBwqWOWgO+4rcu1KVU0L4xoItu+UnsUeN9GFXdh3jHVyC+t6KFtAqw2CeKXFR2Xihda2t6fJ5cLOAHQ7yopTc+ioVtWNHlzaqRAtZ4RmmRu0= Received: from BYAPR07CA0054.namprd07.prod.outlook.com (2603:10b6:a03:60::31) by BN7PR07MB4388.namprd07.prod.outlook.com (2603:10b6:406:b6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 16:36:05 +0000 Received: from CO1NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by BYAPR07CA0054.outlook.office365.com (2603:10b6:a03:60::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.16 via Frontend Transport; Thu, 30 Aug 2018 16:36:05 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT023.mail.protection.outlook.com (10.152.96.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:05 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:51 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZpEC027359; Thu, 30 Aug 2018 09:35:51 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZpxs027358; Thu, 30 Aug 2018 09:35:51 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 09/14] qla2xxx: Force fw cleanup on ADISC error Date: Thu, 30 Aug 2018 09:35:45 -0700 Message-ID: <20180830163550.27288-10-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(136003)(396003)(376002)(346002)(2980300002)(438002)(189003)(199004)(356003)(478600001)(72206003)(87636003)(5660300001)(86362001)(106466001)(2906002)(69596002)(305945005)(80596001)(44832011)(36756003)(54906003)(110136005)(16586007)(486006)(42186006)(106002)(4326008)(336012)(1076002)(11346002)(476003)(126002)(316002)(76176011)(2616005)(51416003)(446003)(48376002)(47776003)(50466002)(8676002)(26005)(14444005)(8936002)(81156014)(81166006)(6666003)(186003)(50226002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4388;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT023;1:HoDjvcJETMzdK9QdeIn8YQZXMgzqAMt0+5qp63oXkRt0NkYv9iV0wcKTb4U22/WXh4Cs7CsOS/cwof+i9O7fe8ev+pAoeYTZTJTkJwPshgc31NGCS8Qc5FJgcXHCbb5i X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f0b3cdc-0a81-4d5e-f459-08d60e96ae86 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR07MB4388; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4388;3:A/AOmOL9LKIX0aNONaYygXNrykx9WtPvSIEtfpDcFp5garSHPvG0yz/+s56m3QywkseZ4z8zStgW5xKpyFGZfCIfKbCNc/GdrAxWSJW6kqPV1o7Y0bAeqjhUnmJ5X1qJaz4i1NzO/m+DX2WS/7/+C3zxYKLoqmTbnvN6WPFWx0VJFq54gc4qyaj7LyH8+qYygEjfbVPmfqE3/+XQgL6EX/vKfRO39K887dj/MEnuuvtP12RacEX6lMRXIgzdUAG/PPZU93lJGEL0MeNVnx3Q8nsLizlp+w6tlx5S2U41JL58tw6+cudhUFst44jzTzljJoopU/3NwHWcqmb0NnD/rJVFvqo7FKVou8wzEJqi+Lc=;25:LyNKjQAhYS0c6llZYGGUktqehg0lHcEl++vwLA0jO0wsQJ0UHGxjS5x8zuErVbn+EpcMOozmMy/rEEzpMMkRNFYw4GgWaB49UoV470zdqLhf84EBl5r2Ndw2saR9pnZTUBeA5VocwwsX/2XhMGsgTEj3G8um5z0cE7aSAr4nJYR27hdGb1PPDNiRCgLeZbHnaPo32Zwk2WMa2JxVOFOZi63jzMZDqXsSKHdJSqBjSbXJ9mhHAKkk4YygWJdGra0T4uwHxPiGCHbOS7KMcsqCt73xY+zkyrrt5PDLoTXgila52m3zVB6zGUEftbm8vkQvpA4J4TgWPNNDVKRAtwTJ7w== X-MS-TrafficTypeDiagnostic: BN7PR07MB4388: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4388;31:oeZevR4ab+gkAxS6hSRwkJd78l9VHE6e8iav8gCC17nzwtpmuIfNw0iaJLOV0Cq8rMd2C+QOtUH/vJKO0OyPMZIa1OR/BNYflrJ+ouLHjItWwbFKDXrj9x53vs2Ah6R//3sPqQcFTbGBWvCz4pJXBmbdg2608wSpurWcdqYE9pUQSYAdGBdcIRtHn3IqyqSBIcujhneN8NzmhfrMejyw2Ea6m6RgHK+7xA4EGZjyxLE=;20:icv7e2dFfTPUiN/7xk4LTFfhNKXTtxsF0wTObZel/Msxjus0m8SRqxVPJSpX6AyvWV8gGnQnBs/5Ibu1eShTHpjRvKVmG13ubVNd44fCrstsioqEgrFy7n7EE+qeKfkdFQ6WjoDptWak6UrvZ2ueHW9F4dS5LlaZKnn0pihotcWBNc3LH3zhxIh4YW48AL9QFzFXLu5OIb08kz7XcWMFoDc5N4mXzu8Wx6BuM9Cx8HKnzp6+u5UCxDa6W+9GiZZskEGQgQWSwL1XXoKzDeC7qM2aMmxA8m3+8kPQPIvMyReh8R5hqaNzY/YnAaKYKutp/53uqAVRCR2ggwy4L3bm1h0OIvpbV84U1RGGbeuw61wYRKk0WqPAnP+1DQYE4g5CaUrQifHXKygG0DB6zEl+FPzdgAtqZhgX2MjfZ2/lAc9/UAXJo6M5UHs+WaObAOkYZrrbz8ut6+JSYryy/9orWsnaFiyUW1yY09ZvZBl4/rdmVOZH4PlgtWJqJou1KzlY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93004095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699016);SRVR:BN7PR07MB4388;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4388; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4388;4:F8SYttsn4EdpwShJfEHWoEZUQXhLxq6qMDYQgw4mgkOkmjCbI4u+4gzV0bclUEWzrX0oNWkkPQMecyLNo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XL0RzlbwSyAp37JPUOGQB1TNG3dmDSj8k07qwEk5zMo1jNG2dnt6HDMdfqb95PpgNr28Q+5sUYde4ZpzJBX9agvfN1R4oB9dGmn734IhNALO0hhkfBIG2dfR0nSF1efdFm5Ww==;5:ZtQDEQgSjsPLvyoZRsO0YxBttyCBTgHR2ekYX2AD+OBhqzU7QQZSJmQ5R8Zv3h3E6jJVPYUEJzjg72Big0x3i5OF9ecqy7JttSrzRSSwKET/LBOxm1dRwHK6d5LrY8yxYbm3d1BgU0go5ey1TIhK/LgQDyHyYy9/lgd5MwtqPv4=;7:0u2zAgr+KR9saFCbzzp/baio6WVbFsLS7p9lJDzW7+S/KHjTIxlV3rxRi8CJSQooGLvJoJ9S8w4j1YvGoIIKYZM9rWG+7b82uMNXklllLKG2Ci2A6TUpWJVszAcsR42P4tTiZlVUz57RPTK2F4cumhQp1nQPqHLa2rgFGuinOEKhgDANzV5mwTKLGw+CEcToaMpp5gS2XXCs+bYI0vkLP+6ozpKeczObaZsZF1/x1KxUaYoauDn9rgKX/RIylwQh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:05.2967 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f0b3cdc-0a81-4d5e-f459-08d60e96ae86 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4388 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Turn ON logout_on_delete flag to make sure firmware resource for fcport is cleaned up on ADISC error. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index fa6f2400a508..f840199d31cc 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -396,6 +396,9 @@ void qla24xx_handle_adisc_event(scsi_qla_host_t *vha, struct event_arg *ea) ql_dbg(ql_dbg_disc, vha, 0x2066, "%s %8phC: adisc fail: post delete\n", __func__, ea->fcport->port_name); + /* deleted = 0 & logout_on_delete = force fw cleanup */ + fcport->deleted = 0; + fcport->logout_on_delete = 1; qlt_schedule_sess_for_deletion(ea->fcport); return; } From patchwork Thu Aug 30 16:35:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582317 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DAB65A4 for ; Thu, 30 Aug 2018 16:36:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A8712C0EF for ; Thu, 30 Aug 2018 16:36:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EBF02C132; Thu, 30 Aug 2018 16:36:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B55B92C0EF for ; Thu, 30 Aug 2018 16:36:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727711AbeH3UjI (ORCPT ); Thu, 30 Aug 2018 16:39:08 -0400 Received: from mail-sn1nam02on0077.outbound.protection.outlook.com ([104.47.36.77]:29472 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727676AbeH3UjI (ORCPT ); Thu, 30 Aug 2018 16:39:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CWG8HQFSOfyy4a2I4Y3pWjla0sIctTODaukZHxMh0IQ=; b=Iq90IWNIMFHdeCwp5gExV18JacX3WHzpRgYaCg8OCwc1URQUgkK21GeIAN3WJBYHCOaLqP2dEmkrhnWV4eth/9xwPemP1lb8mtTLweNiEM1F+EYipltEMqLLy1GfoUUv1N6fPiMf5Ub5x6iho/uk2Kv7aSfJJq70UjuJqeasMKc= Received: from BYAPR07CA0046.namprd07.prod.outlook.com (2603:10b6:a03:60::23) by SN6PR07MB4399.namprd07.prod.outlook.com (2603:10b6:805:58::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.14; Thu, 30 Aug 2018 16:36:07 +0000 Received: from CO1NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by BYAPR07CA0046.outlook.office365.com (2603:10b6:a03:60::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.15 via Frontend Transport; Thu, 30 Aug 2018 16:36:06 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT023.mail.protection.outlook.com (10.152.96.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:06 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:51 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZqdt027363; Thu, 30 Aug 2018 09:35:52 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZqXw027362; Thu, 30 Aug 2018 09:35:52 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 10/14] qla2xxx: Remove all rports if fabric scan retry fails Date: Thu, 30 Aug 2018 09:35:46 -0700 Message-ID: <20180830163550.27288-11-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(396003)(376002)(136003)(346002)(2980300002)(438002)(199004)(189003)(8676002)(14444005)(36756003)(486006)(186003)(2616005)(446003)(4326008)(305945005)(5660300001)(72206003)(6666003)(478600001)(87636003)(42186006)(110136005)(51416003)(44832011)(476003)(126002)(11346002)(316002)(81156014)(81166006)(336012)(26005)(356003)(16586007)(106002)(76176011)(54906003)(47776003)(1076002)(50226002)(86362001)(8936002)(50466002)(48376002)(106466001)(2906002)(80596001)(69596002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR07MB4399;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT023;1:IhteROUJHnB5WoXutMr/kzIxzvf19MCtZMagRZdKEr7MFTKzHF9sTOfVbh7IhWDoO+E7LHU9pPaY4Hr8HAfCnLcDbAUpyuLaAAEs4OveFHNn3Q1wP+6NQm0yvG7SI098 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91b02f15-10bc-4cf2-634b-08d60e96af37 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:SN6PR07MB4399; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;3:YbuKduAgy/jfpOJXrrf0saVELL38mboiZaKdCG9OCaHPvwvroXh5dFFHaeuyQwvQbKxrLK3XMS2arW+SqaPd5xJHtov+f7uDDB9xWJvsHKU9QmvGqdomg8KxRUWolyFxpHfcV8EbJJsF7DaRhSmE+z49rNSO3W/NUtBmfoyT+eKZN9UFmg/cCyeF3ZmW8fwunY7LrqGziSG12wwWCwhbejOV6R0z4Uj8FTvTt97erzCCp3b114kTWBs0PFq2BYwRgjcL7ECyGmbkV89LBPcp2HTK9VVnGcmBSiWU45q1islEQGaGm1HJctM9xwegJvhV+e99lPddJ4Rv0aOzlMh3WCurQk5oAwVRK8edzTaVqzo=;25:dl2USFwiyLgQuFARbmExYTMUjst3ruCaDY6LqpKBE7e3EHEaO+jDH5xXpfAN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DUtUPBdeRVUsKhQK17DrrzrHZ4kxjzPc9pdcvY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(163750095850); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:SN6PR07MB4399;BCL:0;PCL:0;RULEID:;SRVR:SN6PR07MB4399; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;4:p9SEpzZl0aZ8SW5qu2Inaa5fEXbTKyMgAQWWJwyIK8uio7+7FjL6svkInl925QIkNzZchJUlXAxbgvPVdW3z990yidnC4RC+wck1+ly1J01muvaprXurPjznEnTZ5bvAGJbeYsgRrqsZnPCxGdOyto4xPokkElymXL3ERzu+MpRNfzinXgB92SgCZgi8KpgL/dzLfmnpBJarXJJiBdFvcv6nA7Zlh2m5jxG281eQtBNgLEqI8ehZVRR0KMvauOtX2A86JrSfkDSOshOcHK70rdH81YiAWpxw6o30WGMWyohRblE4aPeWmkOK16Y86PLF X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4399;23:rnK/a8aVt4TOhUMwFwHAIoeVLUYdpXoVDpe3r6/qB4xJr8KrN6tids98bQ9fcc5IZpabX6pS2Y46JovctxDZkiV3rcPs9vcdJdkVAaGo2+D4Pj0QpWZfKZyZr+CiUMgKanR73ou7Cmscxc1dyJlUbOyoZzsDXpqLvT9RHhp/P2nRiFYNNemdNlMJACcfEBvIPWUC792soQdeF5oOiJQ0v2Wi+2HKdFdS2D/cXOzqwyen6HrfzilZGD05Is4jjuNDRWfG1BV02SkSNJ5puhYAHfH9UPuR0ywv3JzPcamnkd8SwpoXTS2PPbsz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ih6/CbZ593bvVxg2hnrqNitEZet SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:06.4373 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91b02f15-10bc-4cf2-634b-08d60e96af37 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4399 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran When all fabric scan retries fail, remove all RPorts, DMA resources for the command otherwise we have stale Rports. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 128 +++++++++++++++++++++--------------------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 1cb27eb46731..85cbe59b4f58 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3995,6 +3995,41 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp) } } +static int qla2x00_post_gnnft_gpnft_done_work(struct scsi_qla_host *vha, + srb_t *sp, int cmd) +{ + struct qla_work_evt *e; + + if (cmd != QLA_EVT_GPNFT_DONE && cmd != QLA_EVT_GNNFT_DONE) + return QLA_PARAMETER_ERROR; + + e = qla2x00_alloc_work(vha, cmd); + if (!e) + return QLA_FUNCTION_FAILED; + + e->u.iosb.sp = sp; + + return qla2x00_post_work(vha, e); +} + +static int qla2x00_post_nvme_gpnft_done_work(struct scsi_qla_host *vha, + srb_t *sp, int cmd) +{ + struct qla_work_evt *e; + + if (cmd != QLA_EVT_GPNFT) + return QLA_PARAMETER_ERROR; + + e = qla2x00_alloc_work(vha, cmd); + if (!e) + return QLA_FUNCTION_FAILED; + + e->u.gpnft.fc4_type = FC4_TYPE_NVME; + e->u.gpnft.sp = sp; + + return qla2x00_post_work(vha, e); +} + static void qla2x00_find_free_fcp_nvme_slot(struct scsi_qla_host *vha, struct srb *sp) { @@ -4095,22 +4130,36 @@ static void qla2x00_async_gpnft_gnnft_sp_done(void *s, int res) { struct srb *sp = s; struct scsi_qla_host *vha = sp->vha; - struct qla_work_evt *e; struct ct_sns_req *ct_req = (struct ct_sns_req *)sp->u.iocb_cmd.u.ctarg.req; u16 cmd = be16_to_cpu(ct_req->command); u8 fc4_type = sp->gen2; unsigned long flags; + int rc; /* gen2 field is holding the fc4type */ ql_dbg(ql_dbg_disc, vha, 0xffff, "Async done-%s res %x FC4Type %x\n", sp->name, res, sp->gen2); + sp->rc = res; if (res) { unsigned long flags; + const char *name = sp->name; + + /* + * We are in an Interrupt context, queue up this + * sp for GNNFT_DONE work. This will allow all + * the resource to get freed up. + */ + rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp, + QLA_EVT_GNNFT_DONE); + if (rc) { + /* Cleanup here to prevent memory leak */ + qla24xx_sp_unmap(vha, sp); + sp->free(sp); + } - sp->free(sp); spin_lock_irqsave(&vha->work_lock, flags); vha->scan.scan_flags &= ~SF_SCANNING; vha->scan.scan_retry++; @@ -4121,9 +4170,9 @@ static void qla2x00_async_gpnft_gnnft_sp_done(void *s, int res) set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); qla2xxx_wake_dpc(vha); } else { - ql_dbg(ql_dbg_disc, sp->vha, 0xffff, - "Async done-%s rescan failed on all retries\n", - sp->name); + ql_dbg(ql_dbg_disc, vha, 0xffff, + "Async done-%s rescan failed on all retries.\n", + name); } return; } @@ -4138,80 +4187,31 @@ static void qla2x00_async_gpnft_gnnft_sp_done(void *s, int res) vha->scan.scan_flags &= ~SF_SCANNING; spin_unlock_irqrestore(&vha->work_lock, flags); - e = qla2x00_alloc_work(vha, QLA_EVT_GPNFT); - if (!e) { - /* - * please ignore kernel warning. Otherwise, - * we have mem leak. - */ - if (sp->u.iocb_cmd.u.ctarg.req) { - dma_free_coherent(&vha->hw->pdev->dev, - sp->u.iocb_cmd.u.ctarg.req_allocated_size, - sp->u.iocb_cmd.u.ctarg.req, - sp->u.iocb_cmd.u.ctarg.req_dma); - sp->u.iocb_cmd.u.ctarg.req = NULL; - } - if (sp->u.iocb_cmd.u.ctarg.rsp) { - dma_free_coherent(&vha->hw->pdev->dev, - sp->u.iocb_cmd.u.ctarg.rsp_allocated_size, - sp->u.iocb_cmd.u.ctarg.rsp, - sp->u.iocb_cmd.u.ctarg.rsp_dma); - sp->u.iocb_cmd.u.ctarg.rsp = NULL; - } - - ql_dbg(ql_dbg_disc, vha, 0xffff, - "Async done-%s unable to alloc work element\n", - sp->name); - sp->free(sp); + sp->rc = res; + rc = qla2x00_post_nvme_gpnft_done_work(vha, sp, QLA_EVT_GPNFT); + if (!rc) { + qla24xx_sp_unmap(vha, sp); set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); return; } - e->u.gpnft.fc4_type = FC4_TYPE_NVME; - sp->rc = res; - e->u.gpnft.sp = sp; - - qla2x00_post_work(vha, e); - return; } if (cmd == GPN_FT_CMD) { del_timer(&sp->u.iocb_cmd.timer); - e = qla2x00_alloc_work(vha, QLA_EVT_GPNFT_DONE); + rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp, + QLA_EVT_GPNFT_DONE); } else { - e = qla2x00_alloc_work(vha, QLA_EVT_GNNFT_DONE); + rc = qla2x00_post_gnnft_gpnft_done_work(vha, sp, + QLA_EVT_GNNFT_DONE); } - if (!e) { - /* please ignore kernel warning. Otherwise, we have mem leak. */ - if (sp->u.iocb_cmd.u.ctarg.req) { - dma_free_coherent(&vha->hw->pdev->dev, - sp->u.iocb_cmd.u.ctarg.req_allocated_size, - sp->u.iocb_cmd.u.ctarg.req, - sp->u.iocb_cmd.u.ctarg.req_dma); - sp->u.iocb_cmd.u.ctarg.req = NULL; - } - if (sp->u.iocb_cmd.u.ctarg.rsp) { - dma_free_coherent(&vha->hw->pdev->dev, - sp->u.iocb_cmd.u.ctarg.rsp_allocated_size, - sp->u.iocb_cmd.u.ctarg.rsp, - sp->u.iocb_cmd.u.ctarg.rsp_dma); - sp->u.iocb_cmd.u.ctarg.rsp = NULL; - } - - ql_dbg(ql_dbg_disc, vha, 0xffff, - "Async done-%s unable to alloc work element\n", - sp->name); - sp->free(sp); + if (rc) { + qla24xx_sp_unmap(vha, sp); set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); return; } - - sp->rc = res; - e->u.iosb.sp = sp; - - qla2x00_post_work(vha, e); } /* From patchwork Thu Aug 30 16:35:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3362B5A4 for ; Thu, 30 Aug 2018 16:36:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22AF62C0EF for ; Thu, 30 Aug 2018 16:36:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16B712C132; Thu, 30 Aug 2018 16:36:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A08B02C0EF for ; Thu, 30 Aug 2018 16:36:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbeH3UjX (ORCPT ); Thu, 30 Aug 2018 16:39:23 -0400 Received: from mail-bn3nam01on0077.outbound.protection.outlook.com ([104.47.33.77]:23389 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727698AbeH3UjX (ORCPT ); Thu, 30 Aug 2018 16:39:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Bz8tKx1asbp/u40hzfPZyiwl9ImTUMDy/6nav7v5PsQ=; b=CrzDhtZVvUVw2F9l5cR28V478ozT2CefotFBV+jxj9HEqAMHR8bL4YyGP1ciWL4Dr2tpiR8O8gB11HfBESji1bxx1XV85P3LtLBviTDLeFxT4rxKvNBTdGF6GKaFpnm4Iq7Xapqs4JlBGYl5u9LjmPIRMhPZ3aVR5UgVNz+IFxU= Received: from CO2PR07CA0083.namprd07.prod.outlook.com (2603:10b6:100::51) by BYAPR07MB4392.namprd07.prod.outlook.com (2603:10b6:a02:c0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.15; Thu, 30 Aug 2018 16:36:07 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::207) by CO2PR07CA0083.outlook.office365.com (2603:10b6:100::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.18 via Frontend Transport; Thu, 30 Aug 2018 16:36:07 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:07 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:52 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZqFm027367; Thu, 30 Aug 2018 09:35:52 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZq85027366; Thu, 30 Aug 2018 09:35:52 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 11/14] qla2xxx: Fix iIDMA error Date: Thu, 30 Aug 2018 09:35:47 -0700 Message-ID: <20180830163550.27288-12-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(136003)(39860400002)(2980300002)(438002)(189003)(199004)(80596001)(26005)(69596002)(11346002)(305945005)(2616005)(356003)(44832011)(36756003)(6666003)(1076002)(5660300001)(2906002)(336012)(126002)(476003)(81156014)(446003)(8676002)(486006)(81166006)(50466002)(186003)(48376002)(54906003)(316002)(42186006)(16586007)(50226002)(87636003)(110136005)(478600001)(8936002)(47776003)(4326008)(106002)(106466001)(86362001)(72206003)(76176011)(51416003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4392;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:MRxhsw9W+JbewCCLjqiELp11wE/NMX8KC/O/RWD3HDa5BusaBQmngUH/EesyXuuzFrUlRTF8LH9A6jR6X/7TKSdfkol63T6ZHmQBCO7jv1E6Yq3htXWFNrvAAcLuOQT1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc0717bd-b201-430a-0751-08d60e96afdc X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BYAPR07MB4392; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;3:nv3Y+kpc8aSJqWERqineiAJE9SQ3Afq3ICHxdKXgRGeOIGgQ0/azoe1DNOGumMOcq66wHOomPmYkYG+X7JrI8ADqNKHf42k8Cv5s7iFQ8dbg5EpGabvVGgZLriPqfuUG57/DXoAmFw7FIhlPCAi7ma/gCM1ibJD3VDRh9gdMehLZw/64KO/shs5weLEy0DSU8zfRqaRTptdK7x5FsbX+qVVtWNkvcYyATA4YFlFJ/MeeoILxOOlMxGH9c/PS1qVCCyJRRtTrcsMEeEjlZbhTJrmMuDAoF0nbQSC3UkNaEsq+j4GPKspUda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Hdwd6MEg5x8a0Iu4zRrEMYcsB56HWDxEN4v6gx/49caVbtNbtWy9jnIv6YClSwIPJegBpyT6xWFNVIVm/0+pOIm9N2wuXhSNnetVmGqr+x2jcjqE3hvqEGnXeEeaQ3hAcMLK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93004095)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:BYAPR07MB4392;BCL:0;PCL:0;RULEID:;SRVR:BYAPR07MB4392; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;4:LoIzoe1HPwfXeqwwijIjJbzk+xR2JgO13Ya1zcbbOmMtpaf1uWBzRYYgg3YjMfISkO/psjoGIQ9kWHq4cCDnYJBSWxg03OIV0oiN8XfqPj9kGKgq/SDQXrJyETHBuK/9a/VJXjTFgjs40LRANQYbfkYsFEUTG+xn9TCWIPHTLzhj07z7L+nXg33DexzuzsI2V5i3w4VcDrI1E2O+38yDlR2j+QEfFaQoPi0BbJ12aAsyYF2dA3BLF0b5QOgnT09VHdoqRzbE3EW0dxDUhoDxAA== X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4392;23:bsnyXgY8tlXd9Fx//Rl7Ql3VZfEPYaP0URp20qeSt/asCUspTZ7nskaSBtrNirh1kNOOS3Gq7zv6W13rLMug4T1C3pFy+q14KEFvQORm42UyVDnMuVPZR3R7Y1oFZOHqWA1sVEiAxHQ4vpVlcnPwriKodeG85ahn9rg83pUvALDqEDKcBrpxl2GMNTdGhQqVIj/wIShGn0mQyAok2lmnpkgdmeHmcQ6haW3jo22N2L9qgsruZMP2WuXEr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7OZxpAOpL8yiCT5e63vh4IFxM8zeB1oVM89lT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:07.5319 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc0717bd-b201-430a-0751-08d60e96afdc X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4392 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran when switch responds with error for Get Port Speed Command (GPSC), driver should not proceed with telling FW about the speed of the remote port. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 85cbe59b4f58..902106f97020 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3272,7 +3272,7 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res) ql_dbg(ql_dbg_disc, vha, 0x2019, "GPSC command unsupported, disabling query.\n"); ha->flags.gpsc_supported = 0; - res = QLA_SUCCESS; + goto done; } } else { switch (be16_to_cpu(ct_rsp->rsp.gpsc.speed)) { @@ -3305,7 +3305,6 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res) be16_to_cpu(ct_rsp->rsp.gpsc.speeds), be16_to_cpu(ct_rsp->rsp.gpsc.speed)); } -done: memset(&ea, 0, sizeof(ea)); ea.event = FCME_GPSC_DONE; ea.rc = res; @@ -3313,6 +3312,7 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res) ea.sp = sp; qla2x00_fcport_event_handler(vha, &ea); +done: sp->free(sp); } From patchwork Thu Aug 30 16:35:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86F03175A for ; Thu, 30 Aug 2018 16:36:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7668F2C0EF for ; Thu, 30 Aug 2018 16:36:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69CBA2C132; Thu, 30 Aug 2018 16:36:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D424B2C0EF for ; Thu, 30 Aug 2018 16:36:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbeH3UjN (ORCPT ); Thu, 30 Aug 2018 16:39:13 -0400 Received: from mail-co1nam03on0078.outbound.protection.outlook.com ([104.47.40.78]:61600 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727702AbeH3UjM (ORCPT ); Thu, 30 Aug 2018 16:39:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=94UoFnRB5YFTLdcuKrHjLii4pjhcBfnB4NKXOjVfqAI=; b=DbtFED8w6rOnITXFt+497kiSempWh3rKIHdrvAlJg7ISix56iSTKo3DTQni8bzTtJ0gMuo7PjJzDsX28/QXknNPDxoeCDYs0vHDmdQLHn352xBSczzkRtS7cAAhE5R7Ecmxj6ppPsjTlpOXWp89HV60oVa9Mg47ag5249J9nM/U= Received: from CO2PR07CA0083.namprd07.prod.outlook.com (2603:10b6:100::51) by DM2PR07MB1449.namprd07.prod.outlook.com (2a01:111:e400:50c3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 16:36:08 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::207) by CO2PR07CA0083.outlook.office365.com (2603:10b6:100::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.18 via Frontend Transport; Thu, 30 Aug 2018 16:36:08 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:08 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:52 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZql2027371; Thu, 30 Aug 2018 09:35:52 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZq6L027370; Thu, 30 Aug 2018 09:35:52 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 12/14] qla2xxx: Defer chip reset until target mode is enabled Date: Thu, 30 Aug 2018 09:35:48 -0700 Message-ID: <20180830163550.27288-13-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(396003)(136003)(376002)(39860400002)(2980300002)(438002)(189003)(199004)(8936002)(478600001)(50466002)(2906002)(48376002)(476003)(126002)(47776003)(4326008)(446003)(486006)(86362001)(44832011)(80596001)(106466001)(14444005)(69596002)(72206003)(5660300001)(186003)(2616005)(87636003)(26005)(36756003)(81166006)(54906003)(11346002)(6666003)(1076002)(50226002)(81156014)(76176011)(42186006)(110136005)(8676002)(305945005)(16586007)(356003)(51416003)(336012)(106002)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB1449;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:+77gxgqLw8WBfsmNlVDxD6XwjhPivQhVjWj++oFB+aNoBIw1Z83o8tOnZJAwGP0DRzs4tznYodIlTdD8Voe3dFskoknzSe8H/9qBLPJ6rnXiMwPLj7KDpf2MAlXYWe+3 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffe13994-c8de-4d9f-1535-08d60e96b04c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM2PR07MB1449; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB1449;3:A1O81vc6oLoAWuCjG78xRDF4Alfq+vZwaP2HrlJCoTQAWWLBMeMeekIM7Mk561vEW4wp/kSjRYDeHT7kHThghy+rX4zuIqR5qePP9eVGDOpbQ7RkXGRMNIqMdULeqQxX9qfPU70ItxcMqmHqMyNuAgUSbP33vle4a7y1sfVgm9z7t8Jk47EGJLQCex4b5Lwd0k9u7GpXNCDAGnrN4e+yQQx4mu6szcqC1P/MHsXTWC2q5NdaxxefHNalKTLhlRh+IwSsavGJr1/WwgopofAQQ0QnHoULzlUFm9DH5FRVgBLsdjZAvZSkDBjYzAyC1skfuB4S4a9zSCXzFUhS9MK3QD/AAEDoP5BXdxxu4YIU9X0=;25:4yigvRjXXNj/S7PaafIV410fcPe+exyf7Cx2Omo53J0m+9fm9Fp/WXax0yWOA2wWASkD+wnf/1yQT2LtnFsrT2UsS6g9s62NEnmEwckSKVqgQJZnS5S0K3hH5XI54gRlD3Yyk2bGdGvUkYNyU3sV7wiMvIM8qyrT948UBDRtb/7wDoO/Bq8t2MbYXfQ2NLLmGn3TtqmDxIZRT6bXE3o6Hu7Gckb+YueHWEgne9n8nHAYUOQXmg8keTSraoBljAyqZlamsrg0GbNnqtpiyjbf7nuJQu6zhYP2Pa3IG0lWDWOkWDIVtS03rHx/JvBPM3g/+pBbeK0l5jCxy0Ado4iU3A== X-MS-TrafficTypeDiagnostic: DM2PR07MB1449: X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB1449;31:9u8sb6e4mUGbVcuAPdwayDW4N/d6xX0f21w73haCsfFF0s57rI+YyXxHoRThGMcurpkcMTw++N+auMpW1vYyiI4YW3QdZiwhfBKOUyStbBqZdYO17KDThRJ2ww/jqQgrCcRx26NBrY34j+Wzdi+GVeJ2XhuRnyc+9PNmrmVcBD3I8MwYjMPWKq8TEd5z/6Yn2KONdb0aRJarDldBqZHRrFb3YMnE0Sjs9NIbGkcdk+M=;20:WNv5Xe4Cq6X7aQcnNUvZhoOUI20B2nCfy7OeGW2WRjQvdM8xuRbG4jG/UsMYzP7SO8Pa9QC0ZYFE1T2Z0myCIeqNz6AhFOtUXVuQ9TiJOrxhat/uO1B1mEKrvz8/Ds4exa4GLSUdCpx9rLs5bLqACXc7gCf7CEyAi7Fj2/VjFnOwzyxJ9EhN+hwERItqAaFgb3WujTUtInknjmMpxb9hAktqQZUlCymJYztql5yWQbpxWRgP6Kugo7pcz7A4175qVP4jehshm/FiMXNn7jskxyDcW9MJN//wyE50Yq1UFKdnz/X6spGCfSY16TwTJD+tvrrUBxj/peCPMqWj8uiLmSS94QvzaLLuTaM2s5uXEremwdaO9eZi6rlPoJ6Kuvt4s2zLQk+g3rZsBRgVt7P+ogTUcRIyGk3XWMMl78+cPQN5PDYlnZ8uetko/Ez7jgSxLDl6YCdVkifyDNE58zM9xjCJDaFkXJtQ4xWA0dOgYJK68ECQVGGvsfOmDAcW2CF2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93004095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699016);SRVR:DM2PR07MB1449;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB1449; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB1449;4:zX4c14EJVX/qyL+PEgwmvly9hHD/HwYLVUN+GZMr9uRZ1uCc63+GWGZwWSeO+gja4YhL8WtEha/srnEHbeE9QO7jg/VGcCnlWPx2IV89+9rCSAMI9EoZkKBErjENHhMeEonZk3vfi0Iyr9A3DNlJ+6rLn4N9lwTOWPbhrELqarWhBVKT2IDT63xNDWEuIzEnpTaKw+Aum3RC9aaqcuN0m4gtqvi0ZK/OYhpHTATXjosnQAHrjPvwr0/UebvYBDdAnDE9l2d6N6YIjjLIWB/F9g== X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB1449;23:Ds/n9eFZ9LbNQj3nksAQEB/0Z5TVouWTsqRiJikSkbnuyfkyLVySmReekFbuZj5OwVnlW1PB1M7IHau6mbF4fyI1qY+64OfOiRW25bUXE3hauCIW49DX3O7ptUPeY90kWItCZXrohVZNupO7a/zFQFblZuNebkpetOkJGCXaO2y75v5pA7pZYmDkzxxdb069RFGEjUdCHdM1vEY3RJLgWZWg6CTtu+MrohDSeosyGGOym4avgw8ka5Jo1LL6Yp/5N6u1T2UEHgt7Yu8s5PLlovWyt3lQw2QgCXMEsy4Cx8qYyJ6yrnI4ybMZ5L8PvmSxVJtp1I1RHllc/Rz8FHA3l2o1I7gklnhZ3qJpj0W58v2DM8Pi0bXSkkiP1WLij4slYor6PSiWmiqlUKnVZkQ7gHQ7mGTTU3GMirDBGvcF6LqFSkFN4tGKvxgAqPtiBXt+qIs+S/+vKDMukw/WLNCNgDFzGBXH0AIIWPaOA94vev07NiCM4EVR1TohPJt4eAR2Yd4FmrMx87bLavvv0zJrLipTnfCrGuy1aDiialsxrqWZc9G0jpt9XR8POSUpDGCBWDEi08uz5fMugALIR2WKVsJiW11hd87LYi5+7R5RENGWLIGriyMMVQnoz1IBFMGJmbh4sJRYh2j0soE6rGN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VdhAE2UKlvn7jUOim+psoSuTvYtWZatDzXjq91AxqGvahhicPFfNn3T1gu7P/+nhOucBGFNt1rkEmSiBgFa5RSgxcRHhTAQh4OENgdD9Oq1Qa4QkCFyc1avHYvf86vb70AFUn25mQEiYCKhe3FpaSl3EigRLw88xD9XkcEnnfAb0zBlQuxBOAuDrG8TiIT/llxbMSF6V3xpIUXd+LkY+BYiCtVRH1oAePK2paJU7LbMMh5BzfySHsawzDJ35IRZNyE6CbRLRNaKTeWjJwg8zgKn1HlRNWYgpqnnOdQjFoCu/d8XMwQ==;5:CCPf+UnyHy03NUxl6nw8hJKtZ0bFCwEsNGr5dBPVpvbdWs7uryjZFcVWPyAgPO1Y5/mWvjqZ/031BeB6q357aot75LiWIma+JbbyEb0myL1k6PkUV0Y26ITlM0mAuY6TILV3dfIRTZAjgOji6Ngdw1qscNUAOvRx2xKBbpcUoSs=;7:8n4aoooOL9OoU/0fgnC/AovbcOG2/9ovXfmjc/pkpRBq/c++uqqJh+eRy1E4UDjdI2tvBV0mKk4Sk6lFyAHLFh+Br2x3Lqb+GZdWt0aYuKlNKeQ5o4xSpSas60qMy3x9Lgx80Bg8jv3oZipRokgtM8bu11ZZvHCT2noa9thj93gmyUdvI18YanlDxP5l83dAXPpnmVXpvde3hAIz8ssBLQaIQMBN8wJVkcI1Er/VDUdhFWFxKD7HucYMutmq3e/0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:08.2507 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffe13994-c8de-4d9f-1535-08d60e96b04c X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB1449 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran For target mode, any chip reset is triggered before target mode is enabled will be hold off until user is ready to enable. This prevents the chip from starting or running before it is intended. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_os.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 1ae31a119a37..9628fe4a967f 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -6047,12 +6047,27 @@ qla2x00_do_dpc(void *data) if (test_and_clear_bit (ISP_ABORT_NEEDED, &base_vha->dpc_flags) && !test_bit(UNLOADING, &base_vha->dpc_flags)) { + bool do_reset = true; + + switch (ql2x_ini_mode) { + case QLA2XXX_INI_MODE_ENABLED: + break; + case QLA2XXX_INI_MODE_DISABLED: + if (!qla_tgt_mode_enabled(base_vha)) + do_reset = false; + break; + case QLA2XXX_INI_MODE_DUAL: + if (!qla_dual_mode_enabled(base_vha)) + do_reset = false; + break; + default: + break; + } - ql_dbg(ql_dbg_dpc, base_vha, 0x4007, - "ISP abort scheduled.\n"); - if (!(test_and_set_bit(ABORT_ISP_ACTIVE, + if (do_reset && !(test_and_set_bit(ABORT_ISP_ACTIVE, &base_vha->dpc_flags))) { - + ql_dbg(ql_dbg_dpc, base_vha, 0x4007, + "ISP abort scheduled.\n"); if (ha->isp_ops->abort_isp(base_vha)) { /* failed. retry later */ set_bit(ISP_ABORT_NEEDED, @@ -6060,10 +6075,9 @@ qla2x00_do_dpc(void *data) } clear_bit(ABORT_ISP_ACTIVE, &base_vha->dpc_flags); + ql_dbg(ql_dbg_dpc, base_vha, 0x4008, + "ISP abort end.\n"); } - - ql_dbg(ql_dbg_dpc, base_vha, 0x4008, - "ISP abort end.\n"); } if (test_and_clear_bit(FCPORT_UPDATE_NEEDED, From patchwork Thu Aug 30 16:35:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582325 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E27C175A for ; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CB102BFB5 for ; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FA9C2C12C; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 035372BFB5 for ; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727088AbeH3UkC (ORCPT ); Thu, 30 Aug 2018 16:40:02 -0400 Received: from mail-sn1nam02on0046.outbound.protection.outlook.com ([104.47.36.46]:28928 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727705AbeH3UkB (ORCPT ); Thu, 30 Aug 2018 16:40:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U2fJ3yULDJohEWWnthJpxbTiVMkyN9o/t+Fv9hg8+pg=; b=bXuKXSnD0siNa8eyAHeF36sYhCSQsshQa6nETMmo/ruDgUmsYPXKDz1LwKW899g21DrD1Ehl0Zm0JjQrHhWEO5mJNt9izTv/hwf2FreJAmbLhgKfGIrsFNVsw3Bs/XLYQMyd3hQrV3QVXv0fNWgA6/KZD6geGvpPObQSf+R8pdg= Received: from CO2PR07CA0056.namprd07.prod.outlook.com (2603:10b6:100::24) by BN7PR07MB4660.namprd07.prod.outlook.com (2603:10b6:406:f1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 16:36:09 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by CO2PR07CA0056.outlook.office365.com (2603:10b6:100::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.16 via Frontend Transport; Thu, 30 Aug 2018 16:36:09 +0000 Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:09 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:52 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZqM5027375; Thu, 30 Aug 2018 09:35:52 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZqb0027374; Thu, 30 Aug 2018 09:35:52 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 13/14] qla2xxx: Terminate Plogi/PRLI if WWN is 0 Date: Thu, 30 Aug 2018 09:35:49 -0700 Message-ID: <20180830163550.27288-14-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39850400004)(396003)(376002)(346002)(136003)(2980300002)(438002)(199004)(189003)(356003)(50226002)(2906002)(5660300001)(72206003)(87636003)(86362001)(8676002)(81166006)(48376002)(186003)(26005)(81156014)(478600001)(50466002)(51416003)(76176011)(42186006)(106002)(14444005)(6346003)(44832011)(446003)(16586007)(80596001)(110136005)(2616005)(486006)(476003)(47776003)(6666003)(69596002)(336012)(305945005)(106466001)(126002)(54906003)(1076002)(36756003)(4326008)(316002)(11346002)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4660;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:/C9o4KV3YRRKBTSlQhTvpjHeVB6oQNWWMu/AAaf5ljhgI0J3A2+pd09nHpZ1z+uGs2yMRWVwL5gB+6fUvR9hsz/5OTRGdAhV+j9fIXE2RhT/lpPBjHHHOqjROfYz8RGX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59516c41-b919-4800-d2c1-08d60e96b10a X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:BN7PR07MB4660; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;3:/kG6eqa7bVmURKU8KphWPt6OpaiCl6FIGaHm3sz60isHGA7BUlUMiSb23JdQDnKWGm/TlXeNpUkiPvB62dpCmnNPWsYV6zvOT9Dn/p/dH9/4RZUmIpj0tUyyyu9rbt7tY2Qb4xVJU5lqYeGNRS4d9UwLtoNN8oH9gXzGYdkuTfXp66Vshh0ib5JbmijW4OPIBq1phE2KglitmGuwVDp164X8O/8xjcKKPCoF+hkLd9X1bjeNj0Dy6L59HFI6jpF0V5YV6313yZXC8bECBue6gjySvc91R3LlNuoKEb1lOvcQu8gk19zU2LKwvlRO95oZqQ2SzAF1R1C0k4/0Zs7GdUGdIjbvRHxn/9WU52HYiWg=;25:pIucCEhEUIFSdH9mlZt5VPJq5dVjfPcgBlpuqDb1tcm7mK2/7TN9IXxzsa8z4l5I4vzma2G61YdzPnpw40kZSVhBHs8GKYBrV/3l+ejNQs8J/fZZgzJxUuvujJbUTlskoN9lMdMZD4LBJTDfN4TRE8sPGcatABHrYslLXK0o79uucd5s4WQI8mBinvtfg60p1XMD4Bo0GXgWcPmulLulsx2GMbDkFRAZS9hiywJJ1YhNahQCoRYXLeOb784s/BsXpqQtvR0QS2Rlcemxa2e5O22focnxaeVb4QnYwV6gR9qx3gzc+P7nmWl7Igd6AF0RxR6pYxVvNaSPc5ewmSkiaA== X-MS-TrafficTypeDiagnostic: BN7PR07MB4660: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;31:xxDVsWuvWPoWyONyhjWxqqyZMpF10TtmtZVfg6MJJNIcaPLOCR5g8fJlEFOr/whSd0suttbepR21YI7gz9t/kAjvV0c0kuBzC+fPdxb0jGJtbL5txx4+/0+jZYPYrWbRNhXzGHkUg1oGWfT/7+dmVvvpvtXWD2oNS1tP3t4GEpZSna5o71QgJIso+OpvJcokrmWYRqcQdxx4lPbXu0oAt/6VaicXaoEI1u0PzkNangI=;20:vHkkuJEbTPSDJFylYboBDBGRrw3g0y+MyyOWgZzYQ4c1AEaV0L3J2gd44fQzs3e0533VxHbIO1R8RGsNGhVmLUj+Ov5AoCPVZkOWwXPUUnuH+/kNvBFpWeQ7udW8i2PpKzf4eoOZiv2nxH5+4ZmYRFrp+GUHPpLJehI1yMQtC5AoBk2HJ35F//djFccaRlSm5S5jv1JLYshZy9EcAkipLDNHG7bmMq1JfkC39Hij6h5JHLyRKxK84BWQvVnN8ZNOjH/cn9CpHM6r68qyisO1qi5pRDjG96PCsPQBuR9dJNxal/KMpEggIYvUnZtNL1iNFU1uN2v2PyHo3EyouVYbTZguzpj8f1LNqLKSqUFXDIBc2lF1bk3QvQ+0xHTAs32cgfxjxuw43ulAzU3v+PVpgmAlm84IgCPtf3vZE6p9jPVXORdVOod6vQn8SN24n+vSqK5P55LgRwEvatZHj9YOpZJDPWrX19hst1fZmO6aMCdIJflxLId7T6mHsHeLmcOh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:BN7PR07MB4660;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4660; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;4:nFQNt4IJexlW0hiByqO3K37h9kbz7ubBmlUDI0BpWjj3N/X94ygMzSfScVknigeUB3oaFn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dwQ9FWLZwOuxE96H2lMpL33Qs6ycq19hof+WFX2o4LsJWRvpXmNmZ47bKvipNjOAXqqWTHgnbUNruBxRPnFJ6cLPeb7NAdMZ1TABYcdsat9mJGw+nQsje9+l0AgIR4xXeYN7jW+4J46z2neopIcPfQxeY7DvT7apWfZw==;5:G55XCOyK4pTKXWLVaLTXhrfWSZ8BuBqWI5SbugQ8CkUAZLibJiUg+XH/AwI197CCDjP49IHz5JEEEYUFZhFJLRV5TWswjEkehnr1woO9xyvtvDAynRxlo9e4FlvMzbpzDi+WeQBxeeMWzv+n7bI7fcplO29GrrwOeoodb5a9kVY=;7:ZLJ0jU1Vbf2XBLVRjZdOsx1ho3gvMkqlI4Ed1X++DYKYgvENNkaPFA0NILh0weWNW6lKBMdtlripeZVnf7bRJ4jX6x55KpvYzWaCE1onk6WHPMFzXvDtyFAAU0+tIUpsRwZTYk/auKBX6vuycrjth8M1+p6MHeW5Hcvf7T8ZGVpbdORHaQ+4ABbHydxjehdi2x9zZdrAUw+TPWZAOaOHLEqhc0F88KLSXuQVbQeZ8bHCXpG70oQNWGF0dfiIiKFr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:09.5163 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59516c41-b919-4800-d2c1-08d60e96b10a X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4660 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran When driver receive PLOGI/PRLI from FW, the WWPN value will be provided. If it is not, then driver will terminate it. The WWPN allows driver to locate the session or create a new session. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 34fadd320f55..396c8a6d502c 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -4723,6 +4723,12 @@ static int qlt_handle_login(struct scsi_qla_host *vha, sess = qlt_find_sess_invalidate_other(vha, wwn, port_id, loop_id, &conflict_sess); spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); + } else { + ql_dbg(ql_dbg_disc, vha, 0xffff, + "%s %d Term INOT due to WWN=0 lid=%d, NportID %06X ", + __func__, __LINE__, loop_id, port_id.b24); + qlt_send_term_imm_notif(vha, iocb, 1); + goto out; } if (IS_SW_RESV_ADDR(port_id)) { From patchwork Thu Aug 30 16:35:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10582319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CAE8C5A4 for ; Thu, 30 Aug 2018 16:36:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB42C2C0EF for ; Thu, 30 Aug 2018 16:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFAD42C132; Thu, 30 Aug 2018 16:36:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53DE12C0EF for ; Thu, 30 Aug 2018 16:36:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727712AbeH3UjK (ORCPT ); Thu, 30 Aug 2018 16:39:10 -0400 Received: from mail-by2nam01on0049.outbound.protection.outlook.com ([104.47.34.49]:14009 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727676AbeH3UjK (ORCPT ); Thu, 30 Aug 2018 16:39:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KXZnp7otjRNI2gnBZ6bcXUywCh2E+xNeE4Fmqm/V6lg=; b=PRYyYjRW1CW/Frhq+1NPi5m2tYRu6vfoL79NcrY0Ioh14dNnmOvrKCGZPWxzm1DiPsdzII462pO6D1f5GL54oujYBeFUvF4MUqeyhyv94cUic/6xxSY8IxvHohRixJpFMbJPXYgKrCR5MJiNOi83LhK4k7uSuQc7f45Er0Pbo1I= Received: from BYAPR07CA0054.namprd07.prod.outlook.com (2603:10b6:a03:60::31) by SN6PR07MB4398.namprd07.prod.outlook.com (2603:10b6:805:58::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.14; Thu, 30 Aug 2018 16:36:10 +0000 Received: from CO1NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by BYAPR07CA0054.outlook.office365.com (2603:10b6:a03:60::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.16 via Frontend Transport; Thu, 30 Aug 2018 16:36:10 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT023.mail.protection.outlook.com (10.152.96.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:10 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 30 Aug 2018 09:35:52 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w7UGZqV9027379; Thu, 30 Aug 2018 09:35:52 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZqKu027378; Thu, 30 Aug 2018 09:35:52 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 14/14] qla2xxx: Update driver to version 10.00.00.09-k Date: Thu, 30 Aug 2018 09:35:50 -0700 Message-ID: <20180830163550.27288-15-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(346002)(39860400002)(376002)(396003)(2980300002)(438002)(189003)(199004)(316002)(2906002)(81166006)(81156014)(2616005)(26005)(446003)(36756003)(476003)(126002)(54906003)(486006)(110136005)(44832011)(11346002)(356003)(186003)(50466002)(1076002)(8936002)(42186006)(50226002)(16586007)(14444005)(106002)(336012)(305945005)(48376002)(86362001)(5660300001)(87636003)(76176011)(72206003)(51416003)(80596001)(8676002)(478600001)(106466001)(69596002)(4326008)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR07MB4398;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT023;1:7zd0ru+j5NjpvyhvoYnHizYJ0UEnvUNonavXEmKkNxZa3nHsWCyIMAoK4AwCPu9v2PsOJdrWqowaHtNOZ35HhbvpJcLYLmXhZgaKo0JSkTX5/gZ4lpJWffnQ5Pu9P5xE X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59418e6f-2233-47b4-8625-08d60e96b17f X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:SN6PR07MB4398; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4398;3:SuWkLjdlaaaLJapMHTPTm2LSJ8LqL/aiqhlmcH2mWWJvHXKpaGXvItwe/0otjYakOGGfSnc2cYBRK7vTFbYc9lqIHggdTRLeAa4in9rAeoAt10oci+YY6dz8FdagVbEwhWSiAq7P1Q1Tmw84XDlKUVJnchG0X5am1wf3cWEx7FgjfD5PTgwpHvXEgwTfJ7DtUXGl7izJPWG93hGThAb1rjEpAR9AxAUn0M3C96Y4F9aXqOeaRkefXSd60C/e2mjO8XajqDjKBov/SbwpGm3HIK/TgHgYOMiv2c5/3hNIw5oAdQz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13AHyaZJ4HVGq/hgPJpl+WzFDS0RC4rFbA5ycK2gsJho9Emx/2zXojM+cQlt5ja7Z4zvuzLm8902HWs16WVNmzXctW7lTg5/mjKaIbNZPadWj24lxZ1KNO9P8kssA1l0cU+UhFQqUpQrSzaFWKusk3/bxNd61OK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699016);SRVR:SN6PR07MB4398;BCL:0;PCL:0;RULEID:;SRVR:SN6PR07MB4398; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4398;4:MBj0nlgM20w2VBucD7IX/umEoH7nqRjp4dvrxo7MzAsT6jkuy0IOj3eG+csUTWO9dLcVPhE5//vfw3J14iqBDDNqrBP4CyesrX73BVVqWnqv0k5OsVfm6SmMZ1HFwp3voUZT6/kI0BvTjzeVwHKpDWVWdraiQOnQU/+7N6Z5vGH+Z66qNalwSgwRaZoM/o7JXOP9nnWXj3fkpTgb/zEnCsJLsle8uGdaHg+PGrlJndyBH7qmo+lF1ijbt4P8coCpXiOby56f16wfWMD2Lp1WSg== X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4398;23:tYnFg7iB8NTfHXBzjnO8juyqEH7CikDeoPiBrEJXQnBG3G6R/69pLeEb6fe9v5YDIhU30DRBSvt2Qcwfvp1jEuLE0ucP8PhiQhQHUmUAkYOkFEz4b3XCkjfScCMuq+cCj2IGKKn3dvofUsvxzLPbUq4kol7HRCrWqdZSA96JLCGn9XQclO/+t2Q9wai7wWRjKcBnkujhlKKjtq/YgiUFWqd8RYjjxtmB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6n9j7ok0qwOb+fvdo6ElG0Md7R720ADwjoNvcRx+xESNa4SJnqZ0xhxoQcERb6zKl63d07D5PbKCtxvxbQev7KWZa SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:10.2811 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59418e6f-2233-47b4-8625-08d60e96b17f X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4398 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_version.h b/drivers/scsi/qla2xxx/qla_version.h index 3850b28518e5..0dbba38c408f 100644 --- a/drivers/scsi/qla2xxx/qla_version.h +++ b/drivers/scsi/qla2xxx/qla_version.h @@ -7,7 +7,7 @@ /* * Driver version */ -#define QLA2XXX_VERSION "10.00.00.08-k" +#define QLA2XXX_VERSION "10.00.00.09-k" #define QLA_DRIVER_MAJOR_VER 10 #define QLA_DRIVER_MINOR_VER 0