From patchwork Fri Jan 25 07:23:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780701 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 5EA49922 for ; Fri, 25 Jan 2019 07:25:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 431112EC77 for ; Fri, 25 Jan 2019 07:25:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3431C2ECFF; Fri, 25 Jan 2019 07:25: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,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 B9F212EC77 for ; Fri, 25 Jan 2019 07:25:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728423AbfAYHZC (ORCPT ); Fri, 25 Jan 2019 02:25:02 -0500 Received: from mail-eopbgr700058.outbound.protection.outlook.com ([40.107.70.58]:21605 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726520AbfAYHZC (ORCPT ); Fri, 25 Jan 2019 02:25:02 -0500 Received: from BYAPR07CA0039.namprd07.prod.outlook.com (2603:10b6:a03:60::16) by BYAPR07MB4376.namprd07.prod.outlook.com (2603:10b6:a02:c0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.29; Fri, 25 Jan 2019 07:24:59 +0000 Received: from DM3NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by BYAPR07CA0039.outlook.office365.com (2603:10b6:a03:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:24:59 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT044.mail.protection.outlook.com (10.152.98.157) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:24:58 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:23:56 -0800 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 x0P7NtAk003551; Thu, 24 Jan 2019 23:23:55 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7NtMa003542; Thu, 24 Jan 2019 23:23:55 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 01/13] qla2xxx: Fix N2N target discovery with Local loop Date: Thu, 24 Jan 2019 23:23:39 -0800 Message-ID: <20190125072351.3504-2-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928746991652037;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(136003)(39860400002)(376002)(396003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(53936002)(48376002)(486006)(2616005)(476003)(50466002)(126002)(446003)(11346002)(51416003)(76176011)(305945005)(42186006)(316002)(110136005)(54906003)(16586007)(47776003)(336012)(26005)(36906005)(36756003)(85426001)(356004)(6666004)(80596001)(69596002)(105606002)(68736007)(106466001)(4326008)(97736004)(50226002)(498600001)(26826003)(87636003)(8936002)(81156014)(81166006)(8676002)(4744005)(86362001)(1076003)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4376;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT044;1:9FdpesQq70xilNTGMrwQ4jw1++Uc9Q54nfLR2JI8G9dJA7Gl+JyLkGwt7tus/RxB2C7hUdAcWbqZ+JE7AEWFBU9F30J0dZQQ4CwDWdBwhwtSgiMS8oHmZsl0NB7aF/K0ud+4/KeD1ur+NCYZvHtWQg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e3eb5ff2-19ea-429d-18ad-08d682963685 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BYAPR07MB4376; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4376;3:lLiVMLSmEBGCUepNx+cN1rlrsxzQzyqf4D8adBbLhe/YHZQ7gL9BB/4J3hF3t5VaNMp8P2yxi+w733IzT1YhEN0YAVO6zgad/Qc94bmh01Rhoassd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Ei6YtLlqbjjKOJ+A1yhyWF0awESewifey9gjYwwEUJdRoRDbVzlmOLoura6J0RU/onqxI6VREVFSh/c0UUu7yeyirUSQyD44lSkQp2EmPnWG2XARczYyZVtCl58Ex3PVxGxKqAfEEX0zBjhppGmPSHKvHt/crvi9upLPa8aGz6Wy8Y/wZZWfxvCUjXcPtDc56w5MzLckAV3v0eQiJm5Rs0dgDa1QH7E3MElYW/FUG2CRmetPH23n08JPD4qrmfjieNWD5Q6BXmgQXCwgI6Q==;5:Sn6SEyOvggg+IZKh6LH2a4dGI1VPs2imsxhQmP/2cF7Ph0Ytt0yMD5SBZZ5CxWUQtE1tXsovk8klCYZdtGWdQUTHTK8L/ln6eAgUbPu9PF/bWqCWvB8fHq4avy7HBtEQUbmtPccDu3KfNka5KbrpvMJ/DhDy4N/YzzCjab+VO27xmyr86M6vtMHM3HYwd6UvBjTew9WMK82yNojQOofVaw==;7:dyQBtLC4tBIgewx1Dc2nsa9eVUl2gLrQXRCq6nsPCXtOo00Im5CLFPrKEvDVMGl6cmrwueBMw+/rP9QUfAyxLGvzzCitkiKn7oV4LPC0oUgkfmblaQJgp4+lP872djNdzRaPq+TtWaJx0iiyOVP8kw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:24:58.7498 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3eb5ff2-19ea-429d-18ad-08d682963685 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4376 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 This patch fixes the issue where Dell-EMC Target will fail to discover LUNs if domain and area of port ID is not same as adapter's. Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 364bb52ed2a6..58b4bfe01202 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -5046,11 +5046,6 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha) if ((domain & 0xf0) == 0xf0) continue; - /* Bypass if not same domain and area of adapter. */ - if (area && domain && - (area != vha->d_id.b.area || domain != vha->d_id.b.domain)) - continue; - /* Bypass invalid local loop ID. */ if (loop_id > LAST_LOCAL_LOOP_ID) continue; From patchwork Fri Jan 25 07:23:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780705 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 97CAA13BF for ; Fri, 25 Jan 2019 07:25:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E3672EC77 for ; Fri, 25 Jan 2019 07:25:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 726302ECFF; Fri, 25 Jan 2019 07:25: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,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 018C32EC77 for ; Fri, 25 Jan 2019 07:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728434AbfAYHZI (ORCPT ); Fri, 25 Jan 2019 02:25:08 -0500 Received: from mail-eopbgr680050.outbound.protection.outlook.com ([40.107.68.50]:44864 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727507AbfAYHZI (ORCPT ); Fri, 25 Jan 2019 02:25:08 -0500 Received: from BYAPR07CA0059.namprd07.prod.outlook.com (2603:10b6:a03:60::36) by BN6PR07MB2994.namprd07.prod.outlook.com (2603:10b6:404:a7::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.17; Fri, 25 Jan 2019 07:25:04 +0000 Received: from DM3NAM05FT057.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::206) by BYAPR07CA0059.outlook.office365.com (2603:10b6:a03:60::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.18 via Frontend Transport; Fri, 25 Jan 2019 07:25:04 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT057.mail.protection.outlook.com (10.152.98.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:03 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:23:59 -0800 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 x0P7Nwod003555; Thu, 24 Jan 2019 23:23:58 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7Nw9j003554; Thu, 24 Jan 2019 23:23:58 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 02/13] qla2xxx: Add pci function reset support. Date: Thu, 24 Jan 2019 23:23:40 -0800 Message-ID: <20190125072351.3504-3-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747040929235;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(136003)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(11346002)(446003)(486006)(2616005)(126002)(476003)(86362001)(36756003)(14444005)(336012)(68736007)(2906002)(305945005)(50226002)(8676002)(81156014)(81166006)(8936002)(50466002)(48376002)(53936002)(4326008)(26826003)(498600001)(87636003)(85426001)(105606002)(106466001)(47776003)(76176011)(316002)(1076003)(51416003)(26005)(36906005)(42186006)(16586007)(356004)(110136005)(6666004)(54906003)(97736004)(69596002)(80596001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR07MB2994;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT057;1:rxgJmB7T842f9vAba9AVGR9zMX/mm9ELXnacO5KXoXVUrET3xe4iQWU33Ft6nF9I5wLbhVmk5TlCiyrWO8bFfFvbCpLHDq6hHMrLq82kgXCOchE3FNMKF++M9PCQAjDdNCs9tx54iWxB81tjeyXoEg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f4f7fa5-d74c-469b-8b7d-08d68296397f X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BN6PR07MB2994; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB2994;3:8H8l/65b6dG4BkQAiluE8QpO/QJEzsJkT+vSid1KwPlXOVD2yVGxJoeexLyz9UezPo29KVFDkLVWqkVc6J+5l1xLLwydMPrzBNe1MiLJstEsxDf3bJGvmz37sO3tw8+RdR+Whrutj0tdLa6oT6XT+u5bkHyxFTixxIXJQFwDWVbjlDLPqfBTp7YoqO/sb+EV+5Hxj65qvGVex5WF7PPiEfPt2ZYc/8NkdvxK5m9cZg+/58euk/Pf5IjHpyntzzk5vLPxasSmZHZZBWqJYuANOQ7b4ft6g3vwsNDwN1f+mNqPoKQx7GWkMQvXnZ3U7I+So4Xj+YNXT/EOWwxpDV4/UMGXam1ixD5bIn5MBCHrB7m1+JIVt3LKCuoXzWkFbupV;25:+nb9u1HZD/8juIIF++XXcGbz4V/ehZZOSQtc+9ySTxzoncqhFo4O/nkaSvwNTcjRdmPQuFcOEwSL0Wk4fOF5YM7qXeuHwKv7xDCJr2OgUHm5yEeBcXohl2A7Cfub7z5T0L/nMfYp9ImNcCWJYljR9AZgbfyp9LbaCDZbGws+mDC4sNkh9MXissOjvJ8hGgc3fzEea3I6+eeVAHmvcTsZbVenMniHD1+EmpLiYpN0uYM2b++rI7S5rk4zkHvEbgUChzXm1niCQBzbsO+Ks1p8zF17wYsju1BPQbrTvSqYcSEDmasn8S9qAyyQuwynWUTH7sPywf3Vp3alja/Akl5Oxw== X-MS-TrafficTypeDiagnostic: BN6PR07MB2994: X-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esgMP3g4ACajuOQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:03.7426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f4f7fa5-d74c-469b-8b7d-08d68296397f X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2994 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 provide call back functions to stop the chip and resume the chip if the PCI lower level driver wants to perform function level reset/FLR. Before the FLR, the chip will be stopped to turn off all DMA activity. After the FLR, the chip is reset to resume previous operation state. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_os.c | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index c6ef83d0d99b..39a0bdb66612 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -6930,6 +6930,57 @@ qla2xxx_pci_resume(struct pci_dev *pdev) ha->flags.eeh_busy = 0; } +static void +qla_pci_reset_prepare(struct pci_dev *pdev) +{ + scsi_qla_host_t *base_vha = pci_get_drvdata(pdev); + struct qla_hw_data *ha = base_vha->hw; + struct qla_qpair *qpair; + + ql_log(ql_log_warn, base_vha, 0xffff, + "%s.\n", __func__); + + /* + * PCI FLR/function reset is about to reset the + * slot. Stop the chip to stop all DMA access. + * It is assumed that pci_reset_done will be called + * after FLR to resume Chip operation. + */ + ha->flags.eeh_busy = 1; + mutex_lock(&ha->mq_lock); + list_for_each_entry(qpair, &base_vha->qp_list, qp_list_elem) + qpair->online = 0; + mutex_unlock(&ha->mq_lock); + + set_bit(ABORT_ISP_ACTIVE, &base_vha->dpc_flags); + qla2x00_abort_isp_cleanup(base_vha); + qla2x00_abort_all_cmds(base_vha, DID_RESET << 16); +} + +static void +qla_pci_reset_done(struct pci_dev *pdev) +{ + scsi_qla_host_t *base_vha = pci_get_drvdata(pdev); + struct qla_hw_data *ha = base_vha->hw; + struct qla_qpair *qpair; + + ql_log(ql_log_warn, base_vha, 0xffff, + "%s.\n", __func__); + + /* + * FLR just completed by PCI layer. Resume adapter + */ + ha->flags.eeh_busy = 0; + mutex_lock(&ha->mq_lock); + list_for_each_entry(qpair, &base_vha->qp_list, qp_list_elem) + qpair->online = 1; + mutex_unlock(&ha->mq_lock); + + base_vha->flags.online = 1; + ha->isp_ops->abort_isp(base_vha); + clear_bit(ABORT_ISP_ACTIVE, &base_vha->dpc_flags); +} + static int qla2xxx_map_queues(struct Scsi_Host *shost) { int rc; @@ -6948,6 +6999,8 @@ static const struct pci_error_handlers qla2xxx_err_handler = { .mmio_enabled = qla2xxx_pci_mmio_enabled, .slot_reset = qla2xxx_pci_slot_reset, .resume = qla2xxx_pci_resume, + .reset_prepare = qla_pci_reset_prepare, + .reset_done = qla_pci_reset_done, }; static struct pci_device_id qla2xxx_pci_tbl[] = { From patchwork Fri Jan 25 07:23:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780709 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 D450C922 for ; Fri, 25 Jan 2019 07:25:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAC182EC77 for ; Fri, 25 Jan 2019 07:25:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF3882EC81; Fri, 25 Jan 2019 07:25:14 +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,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 46E6A2ED59 for ; Fri, 25 Jan 2019 07:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728451AbfAYHZN (ORCPT ); Fri, 25 Jan 2019 02:25:13 -0500 Received: from mail-eopbgr710049.outbound.protection.outlook.com ([40.107.71.49]:13440 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727507AbfAYHZN (ORCPT ); Fri, 25 Jan 2019 02:25:13 -0500 Received: from CY1PR07CA0016.namprd07.prod.outlook.com (2a01:111:e400:c60a::26) by CY4PR07MB3000.namprd07.prod.outlook.com (2603:10b6:903:d0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.31; Fri, 25 Jan 2019 07:25:10 +0000 Received: from DM3NAM05FT054.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::204) by CY1PR07CA0016.outlook.office365.com (2a01:111:e400:c60a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:10 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT054.mail.protection.outlook.com (10.152.98.168) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:10 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:03 -0800 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 x0P7O1Sj003559; Thu, 24 Jan 2019 23:24:01 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7O17s003558; Thu, 24 Jan 2019 23:24:01 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 03/13] qla2xxx: Change default ZIO threshold. Date: Thu, 24 Jan 2019 23:23:41 -0800 Message-ID: <20190125072351.3504-4-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747104670394;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(136003)(346002)(396003)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(8676002)(87636003)(48376002)(81156014)(26826003)(80596001)(81166006)(86362001)(498600001)(68736007)(36906005)(8936002)(50226002)(110136005)(54906003)(105606002)(50466002)(106466001)(316002)(16586007)(42186006)(336012)(305945005)(26005)(2906002)(14444005)(126002)(476003)(53936002)(486006)(356004)(85426001)(6666004)(11346002)(2616005)(446003)(97736004)(4744005)(1076003)(36756003)(69596002)(76176011)(51416003)(47776003)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR07MB3000;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT054;1:LACIe6XfUovDN8+LQoyWauftpa8NkRDVgiqO/n4le3Bh5dYPu/zHfJuSXmIR6/whe3HeWII1hlwKXMpidmupKPL4kVfDE/BgaaSp9g4hptXT7ue0LlZsWJjHw0K6Jd7HXiWIaufss12If3YgYNgNZg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3096362f-8622-470d-c49c-08d682963d4c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:CY4PR07MB3000; X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB3000;3:dJ1sVsZkMfzUqL3NIhzOLzzWYJsBIuea0Q4QHEUjIDl2d7d0IUmepoNT9pPqWcjMNM0OhClmFFYBw+yuD4djBjmeVAfjjF25ViA7JHl0M8jObibiYbYaUIELj1XrO3xmDARD8vqvr1NllFVYFgHt1MiHDJK3GoNB8SjuO8JSujsGfip0q0sf+ZrAS00ba8ZPfzESh2bZa6Y2kG/s5dTokl/9AgG2cnowmgXGWGHjIGpTNFTvF78n/QjFXABL1ItI6nUCiM3leSjWw5mZdQ5eILnJmgp6wWr/A8pxYGHgtSXtJ8jAeFzdSIHKwIqwB5z5hd46VuFtOz5MfIKcIf28RyiaPs444CCVLIkqJkcpLVzZGuOvxS5/jIcwmOVOKbqv;25:a+FqwNJ3ActmicraS/TPQYoHuThTfosZCe7bfDwA98388wYcVARKhHbD7SnnX2C+Fga6klDHCxxU5pxCgqucdYkeSTa6FuR9C2Cpl7b1GTsUKqzyOdEjw+HSjdVqO3n/DIcRd3+4jYe+zxrNsp8FgVn3xxnoYtS2ROKaPnRM7nbbmkZdL8WZSmo1ebcjARKEHETbWZhJq+QD96eT2+o2kG/UbuNYlXhrVtqO50sYmLCWxWKHusTbZc9UbOYse4aBYsyVN5PTC+VrQnzw23GlPkmJeuELgNEQ0Cb0p5chGFFXwAErz0PGgBWEt2Bp42P9PgvJ93sAIuF924hrocsrHQ== X-MS-TrafficTypeDiagnostic: CY4PR07MB3000: X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB3000;31:5bWljnWS8TBqpkhJmFjaoeF/jjywq1M4OR/ZAFyIAd7LLBbwbOcNW5MTHb57Zkh52JkCXEWIMmiMOjzvSu8r2sz4+e1caOXXN2NTkuGeegr7BEvuXo/s2xXjm3WAnh1+g1iP5yGia0yA51730Vgk8oN+Ca1+5Rdz9gDgo6F8cOOzds4esmrF5dr3jvGD25hMlr6d1UvodEUS2BrXeasUorxCZyWqfkQsml3v9QxuqZI=;4:VhiMAuDpwhBqxNg3EnuD/T4ojdqg8L1bPiMDAVxkPDGC7o7PiJ+nKOFgpo2x0d8eTGps6TpXrUZi4kzI1lVIB3KGzikSI0zctrtvlADaHAu3QcErERRpaChP5iWj6+pKu/JPIFybSwe6wHQKL3ZoxE/m6I6/POcLP5xdmdYqjwyYuyV8++rxNN7wxv4HOTbzodAjpfjqiHNW3TG383BpIa1y1anLaUL3AfSPBg1hwLwHIqxLr0fQSfmD1ZcdeHBmItL9uMvjKVrp3EPgTVOzwER9yPBUdyUk0OKL3ICXlY87QZUgOYVgYUXU0P706t6o X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0928072091 X-Microsoft-Exchange-Diagnostics: 1;CY4PR07MB3000;23:IyHErt7F5d2t7Kno4vNVtC3eVHvlE/TW/wfLAx8D986NdC06EtTzSho5IQoKFJ9MKeibcTRJ5R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yn3PNYuBaMOw0XFVOoTL1RWyI3qbKMraLesDxqBtglh3pU/smsgm5lI3SZ3I8ECnLPVEtj1ju60A4Pj9T4P4q68CkradFYFF6iBtI4jqGzJJ+g63ecrhTHBLcxjqJ7dyWIWeGNfX8EW0nfWkIESLRPq5dDahqgoxvE0QlGYsWMUlNT8zRZVt2u9sYyWaYN0ZtjXDzbuw==;7:9QpxDLVqHWSil2GMQ3FyGH2hRqfyhvXhpfRx6sqgWkH9lagsNM4Z/Zof358K81w8gRuuNKf4dpeidBF2jNpQMhSAFSJNGyAjKrRblpCTt0SXGQGEah7mysNTQ3vFqZ3kZW5oFFNzJb/UllEXXaJViQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:10.1287 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3096362f-8622-470d-c49c-08d682963d4c X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3000 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 Change defautl ZIO threshold to an optimize value. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index d1fc4958222a..05b5c6fa011d 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -4189,7 +4189,7 @@ struct qla_hw_data { atomic_t zio_threshold; uint16_t last_zio_threshold; -#define DEFAULT_ZIO_THRESHOLD 64 +#define DEFAULT_ZIO_THRESHOLD 5 }; #define FW_ABILITY_MAX_SPEED_MASK 0xFUL From patchwork Fri Jan 25 07:23:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780707 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 599B513BF for ; Fri, 25 Jan 2019 07:25:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E7F72EC77 for ; Fri, 25 Jan 2019 07:25:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32AC52ECFF; Fri, 25 Jan 2019 07:25:14 +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,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 7BEEE2EC77 for ; Fri, 25 Jan 2019 07:25:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728445AbfAYHZN (ORCPT ); Fri, 25 Jan 2019 02:25:13 -0500 Received: from mail-eopbgr690064.outbound.protection.outlook.com ([40.107.69.64]:56179 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727500AbfAYHZN (ORCPT ); Fri, 25 Jan 2019 02:25:13 -0500 Received: from CY1PR07CA0016.namprd07.prod.outlook.com (10.166.202.26) by BN6PR07MB2995.namprd07.prod.outlook.com (10.172.106.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.17; Fri, 25 Jan 2019 07:25:09 +0000 Received: from DM3NAM05FT054.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::204) by CY1PR07CA0016.outlook.office365.com (2a01:111:e400:c60a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:09 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT054.mail.protection.outlook.com (10.152.98.168) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:08 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:06 -0800 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 x0P7O4s9003563; Thu, 24 Jan 2019 23:24:04 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7O4we003562; Thu, 24 Jan 2019 23:24:04 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 04/13] qla2xxx: Fix session cleanup hang Date: Thu, 24 Jan 2019 23:23:42 -0800 Message-ID: <20190125072351.3504-5-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747090769388;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(39860400002)(136003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(316002)(305945005)(36906005)(4326008)(110136005)(54906003)(16586007)(42186006)(68736007)(50226002)(81166006)(2906002)(81156014)(8676002)(8936002)(14444005)(47776003)(53936002)(97736004)(80596001)(106466001)(498600001)(87636003)(48376002)(1076003)(50466002)(356004)(6666004)(69596002)(26826003)(105606002)(76176011)(336012)(85426001)(26005)(51416003)(486006)(86362001)(446003)(11346002)(126002)(2616005)(36756003)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR07MB2995;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT054;1:zj5tOhHQIvEVbSsBtWrWcH6PvFKk086VdUKrDqbhcIplHyC0VuNg84D2JbeYP4ZPg0lZqo5sJSja+QSxO4d/VhCX/61mnVCVyn7P9Dm12+Im9nmXvGg46X56iYoL3iJz5gK7hj6mUA3knxHMZlTr6w== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 357754f2-6cb4-403f-e1c1-08d682963c6e X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BN6PR07MB2995; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB2995;3:6soATUlwK01KuN2LvrIkZUG8QzwNMZwJ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gP4iFtFWFn+bwttma7YTyW2CQl5pcmkF5pK+psYRFgyRHpMuYYSmQtLepsW/W+3iNfpELD842jMzKJDgyP3T+iu2EEu5jt/GIipSWLauY2bmdwDNZi1t8ezIuzVZKxAkqFqsOQUsQRkGIafB0B/G/JrrbUMgPBRT2PaikW8oFjVQRrDmMREwx1fQjZcSTW7+juF51NWKnQz8aypAjlFW/0jcSqvYtgP9aOvUdoLK/dODfFQTmp1jC3N0QnCoS8JTLbn4mbl9OxcAgqX9WpjWr1BAGTtc4KeVz75MWN9Kotq2MUEyfi3D9E0ENVyoKfU+/frcVNhs6MSa0kiOO1TXjj/ExgA4PjtQ60Tf/FuT1CVEkhb387EPcwgQ==;5:lgOgCgTTrWZTWn+ctKMEI2H0uR0P0DLEwSPQny86vIqAfhlGUlYUjpd5vWQLiix/MdfoIAEMdYJhvxydotfP7x4TQKd6wUMBvDWwwn2XNbHp8fDFssdo0c8xJjxSkFqg6hMsswjGtuN6dEQHYW/pZq4ThP/gVXzUtRzwEGbZPQdgclofD02UQkez+IeUOJI9hzIjJdDkJXYs8Q0eZqlzCA==;7:T9MT9NyRrcBGq0D3VUuUr0A4Ane98XEITZphnyAfCNcbO6tpjBjbu6KNnAIWVAWr37kFvAtBYu5lkCkSN0d+jleRKKsSYEsIGio+LjAnaEQQPMhyUNcuBys+J5+SOHpp0w5MgLS13ohfHG21zEdNYw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:08.6656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 357754f2-6cb4-403f-e1c1-08d682963c6e X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2995 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 session cleanup, either an implicit LOGO or an implicit PRLO is used to flush IOs. If the flush command hit Queue Full condition, then it is dropped. This patch adds retry code to prevent command drop. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_iocb.c | 5 ++--- drivers/scsi/qla2xxx/qla_os.c | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 032635321ad6..97fea5984db3 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -3434,23 +3434,22 @@ qla24xx_prlo_iocb(srb_t *sp, struct logio_entry_24xx *logio) int qla2x00_start_sp(srb_t *sp) { - int rval; + int rval = QLA_SUCCESS; scsi_qla_host_t *vha = sp->vha; struct qla_hw_data *ha = vha->hw; struct qla_qpair *qp = sp->qpair; void *pkt; unsigned long flags; - rval = QLA_FUNCTION_FAILED; spin_lock_irqsave(qp->qp_lock_ptr, flags); pkt = __qla2x00_alloc_iocbs(sp->qpair, sp); if (!pkt) { + rval = EAGAIN; ql_log(ql_log_warn, vha, 0x700c, "qla2x00_alloc_iocbs failed.\n"); goto done; } - rval = QLA_SUCCESS; switch (sp->type) { case SRB_LOGIN_CMD: IS_FWI2_CAPABLE(ha) ? diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 39a0bdb66612..f9cbf73bb417 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -5019,14 +5019,14 @@ qla2x00_do_work(struct scsi_qla_host *vha) struct qla_work_evt *e, *tmp; unsigned long flags; LIST_HEAD(work); + int rc; spin_lock_irqsave(&vha->work_lock, flags); list_splice_init(&vha->work_list, &work); spin_unlock_irqrestore(&vha->work_lock, flags); list_for_each_entry_safe(e, tmp, &work, list) { - list_del_init(&e->list); - + rc = QLA_SUCCESS; switch (e->type) { case QLA_EVT_AEN: fc_host_post_event(vha->host, fc_get_event_number(), @@ -5040,7 +5040,7 @@ qla2x00_do_work(struct scsi_qla_host *vha) e->u.logio.data); break; case QLA_EVT_ASYNC_LOGOUT: - qla2x00_async_logout(vha, e->u.logio.fcport); + rc = qla2x00_async_logout(vha, e->u.logio.fcport); break; case QLA_EVT_ASYNC_LOGOUT_DONE: qla2x00_async_logout_done(vha, e->u.logio.fcport, @@ -5085,7 +5085,7 @@ qla2x00_do_work(struct scsi_qla_host *vha) qla24xx_do_nack_work(vha, e); break; case QLA_EVT_ASYNC_PRLO: - qla2x00_async_prlo(vha, e->u.logio.fcport); + rc = qla2x00_async_prlo(vha, e->u.logio.fcport); break; case QLA_EVT_ASYNC_PRLO_DONE: qla2x00_async_prlo_done(vha, e->u.logio.fcport, @@ -5118,6 +5118,15 @@ qla2x00_do_work(struct scsi_qla_host *vha) e->u.fcport.fcport, false); break; } + + if (rc == EAGAIN) { + /* put 'work' at head of 'vha->work_list' */ + spin_lock_irqsave(&vha->work_lock, flags); + list_splice(&work, &vha->work_list); + spin_unlock_irqrestore(&vha->work_lock, flags); + break; + } + list_del_init(&e->list); if (e->flags & QLA_EVT_FLAG_FREE) kfree(e); From patchwork Fri Jan 25 07:23:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780711 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 DF4A7922 for ; Fri, 25 Jan 2019 07:25:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C50912EF03 for ; Fri, 25 Jan 2019 07:25:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B95B02EF2A; Fri, 25 Jan 2019 07:25:19 +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,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 51A9F2EF03 for ; Fri, 25 Jan 2019 07:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728468AbfAYHZT (ORCPT ); Fri, 25 Jan 2019 02:25:19 -0500 Received: from mail-eopbgr750040.outbound.protection.outlook.com ([40.107.75.40]:57152 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727507AbfAYHZS (ORCPT ); Fri, 25 Jan 2019 02:25:18 -0500 Received: from CO2PR07CA0072.namprd07.prod.outlook.com (2603:10b6:100::40) by DM6PR07MB4377.namprd07.prod.outlook.com (2603:10b6:5:bf::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.18; Fri, 25 Jan 2019 07:25:14 +0000 Received: from DM3NAM05FT051.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::209) by CO2PR07CA0072.outlook.office365.com (2603:10b6:100::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:14 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT051.mail.protection.outlook.com (10.152.98.165) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:13 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:09 -0800 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 x0P7O7HB003567; Thu, 24 Jan 2019 23:24:07 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7O7Kg003566; Thu, 24 Jan 2019 23:24:07 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 05/13] qla2xxx: flush IO on chip reset or sess delete Date: Thu, 24 Jan 2019 23:23:43 -0800 Message-ID: <20190125072351.3504-6-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747141175106;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(376002)(346002)(396003)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(106466001)(105606002)(68736007)(2906002)(1076003)(50466002)(6666004)(356004)(14444005)(48376002)(36756003)(16586007)(36906005)(110136005)(42186006)(316002)(47776003)(87636003)(498600001)(26826003)(81166006)(81156014)(8936002)(50226002)(305945005)(8676002)(54906003)(85426001)(51416003)(86362001)(53936002)(80596001)(69596002)(97736004)(4326008)(76176011)(336012)(486006)(126002)(2616005)(11346002)(476003)(446003)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4377;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT051;1:wOQ2YUu98q66N6AekWzo7oipk8a0+re8ucclN2chBJz+WxxhTFWx1/wnmBVRgNeEoiNnv2db8d7sIEXHtRVJi//fBjEmX/5Pmis2+PGXqHc4ab/US/mmCLi/moUK17jU4l1+saE5K5ydDcn5qCdWNg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f49a857-4f3c-40c2-1c3d-08d682963f6d X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:DM6PR07MB4377; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;3:IVb2mEgj2mRxocLKBkV5gdbDbqsG/HZgX79PKw9EtCh6q3G7YacT2OTbH8ymoa/WXbsIdmO7FAhY13R06Hd1TyldADpIFc0jcSTRyJ+/OIoihuXjOSg0qYNQ1yX0BQ44SHT8OI67buYJggXJKsGfshvzCnzLq6xuZmmbKuPRHu9TLdGcDWw8ncthp8fQ3UzVOG6eLj4RJSlLDbR4F0TAH/Hg3rzZdQh8c7ge+/ZQYiqyXna0NHxDhnQCoRzzUgaTXOdEQRCIpuryBU9219mUfytlqiaoa4wu/jHyYEGSN5+cj0vf2W890gkWPMDyMLxVfqSpcnt5kDIoplSLpfCzWAWhwUKw7A2Uu15TgCdVFyYzK+zPv2LQnfco5WpP7Rwj;25:JbnlXCJfSRp0hQ4DUbVC2SYVhmbgukgQq6wDOxYwlnKErGfHHqqZgHBOcqY+BOCcHagxIZ5PvajNNNEHECvntPZ3v2wmGIHm+mXyy9fsiIkqB0oKRAPBV8up6p0oZO7PDA4lOi3B8FGqpVxiTqs93sQqn0y8oD0rfwwfP0MHw/n4z+nHV+ovhlukxucBGa9azoxZGlE5sRK6KaKXv65OcIsAGBDPx/trxS9YJA98U0ssXu11D37rw1SDfN4ucxH6/zv78xRO4ceB7k5rufaGry1TlkRB891MDZ4cOKtvn3p6eaj1rD9svpPqPeIvjjfq0WoUnDOVmI2dRed5I4ahAA== X-MS-TrafficTypeDiagnostic: DM6PR07MB4377: X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;31:oDonfauTdnGY5VCWFJ9NameXFDWqLdrXVoa+NuySJQXMZISfVd+QXSfPqkwKsU5ptX5S6BoCjyLtM+H3R0IoOracNV8UtMZ1w4jXZLefR2aJ1+jukNg6iaTIEf9aFIo5u4kG0TWRA2tZTcDUkwnUjRhtfiliKCiYchu9v8bmbWIJZkOq4LHVGIHCB1syTnui/y9ZvLVYQfFNZrnU4547qtxYgiQbu13GMIk/6uLZ6xA=;4:XNYBT24+V5+kr4JUttbD6/w1grTZZeO+gmhoXLHNkpa/wPt3ZJm1Es4++0nPX81KfgYsIPvumlJ51XKDRupyxoZVXiETBU6Suz3tzNlYeoSSbexD9H+9JuzSAOsf8Sroz/2TEBL/q7nDmbRIhnWJxgkXaPYG1rmwP0S7ttch/iqcivqKVV+fyEF+guPsZgG0OzwZ8TVEf8MYkBSTqcOChCkjbdbwTWIpxXVJkGBVPT8zjsbP9U0kchzdKjscPShre0RfsgPb1v44rzGoZem0O7NI82wOZAKE33Xb0Ja6dYtO6OwzimmoWe+sCpOMaXZ9 X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0928072091 X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;23:gGjUg50picXYaNlV8QFkD8UrClAfmJ2IG5tq7bFIQCdO1bQCoTyEf4heBDx4RInp0J1vcl6L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kMLzQrXoZSZafJuB28cnjQgKgoQxkHjjlnf9iYBG6rBEmyPgdvDoWUx/oxnp7gVBAwii09+rZGl96sTMkvp7mBa+zapOlTXlwTKPfUoxfNLqpOBCZM4b0VcXBfcir5dh/avubTAYsY/DzLsfM159sCJxz1ZNrlwLAkqDqPb8N8W7Vuf9LechBcA==;7:Ouwh/CYN89ghDDAGX6sawwmmEAJ4PYupVDKGCJ8fbHXiGxPzYPwy5uCeI7e9Q9Jv5j5bq7Db+UxzsSixiG67R19KEdqv2SEkhkkpiEclZsO5ybigRwuL5sMpNa5AcFTnXAqXVRhuC1rgh//QH+aiRg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:13.6881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f49a857-4f3c-40c2-1c3d-08d682963f6d X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4377 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 Transmit respond in target mode, if the chip is already reset or the session is already deleted, then advance the command to the free step. There is no need to abort the command, because the chip has already flushed it. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 510337eac106..8bc4c651af68 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -3257,13 +3257,10 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, unsigned long flags = 0; int res; - if (cmd->sess && cmd->sess->deleted) { + if (!qpair->fw_started || (cmd->reset_count != qpair->chip_reset) || + (cmd->sess && cmd->sess->deleted)) { cmd->state = QLA_TGT_STATE_PROCESSED; - if (cmd->sess->logout_completed) - /* no need to terminate. FW already freed exchange. */ - qlt_abort_cmd_on_host_reset(cmd->vha, cmd); - else - qlt_send_term_exchange(qpair, cmd, &cmd->atio, 0, 0); + qlt_abort_cmd_on_host_reset(cmd->vha, cmd); return 0; } From patchwork Fri Jan 25 07:23:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780715 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 5504F13BF for ; Fri, 25 Jan 2019 07:25:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A4F72EF10 for ; Fri, 25 Jan 2019 07:25:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E3B22EF78; Fri, 25 Jan 2019 07:25:26 +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,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 BB5FD2EF10 for ; Fri, 25 Jan 2019 07:25:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728423AbfAYHZZ (ORCPT ); Fri, 25 Jan 2019 02:25:25 -0500 Received: from mail-eopbgr810075.outbound.protection.outlook.com ([40.107.81.75]:15232 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbfAYHZZ (ORCPT ); Fri, 25 Jan 2019 02:25:25 -0500 Received: from DM5PR07CA0039.namprd07.prod.outlook.com (2603:10b6:3:16::25) by BN7PR07MB4371.namprd07.prod.outlook.com (2603:10b6:406:b5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Fri, 25 Jan 2019 07:25:20 +0000 Received: from DM3NAM05FT037.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::203) by DM5PR07CA0039.outlook.office365.com (2603:10b6:3:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.17 via Frontend Transport; Fri, 25 Jan 2019 07:25:20 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT037.mail.protection.outlook.com (10.152.98.150) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:20 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:12 -0800 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 x0P7OBcd003571; Thu, 24 Jan 2019 23:24:11 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7OBuR003570; Thu, 24 Jan 2019 23:24:11 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 06/13] qla2xxx: fix fcport null pointer access. Date: Thu, 24 Jan 2019 23:23:44 -0800 Message-ID: <20190125072351.3504-7-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747208167547;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(136003)(346002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(110136005)(54906003)(50226002)(8936002)(498600001)(11346002)(2616005)(105606002)(106466001)(316002)(42186006)(53936002)(16586007)(81166006)(81156014)(8676002)(4326008)(2906002)(26005)(68736007)(86362001)(336012)(26826003)(476003)(126002)(87636003)(446003)(50466002)(48376002)(80596001)(97736004)(76176011)(69596002)(486006)(36906005)(14444005)(85426001)(51416003)(305945005)(47776003)(36756003)(1076003)(6666004)(356004);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4371;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT037;1:DAZrwOb8FKNyJ6gu8N4nq/MAvA1xPFQy/4d3AQA50xpPLt+80PgqU02gv3/Q46JGUojojYxHKh1OtQ3ukNKIJcK4oXvj+jbCt2AeCacs0q/50LRDGg1uByRhRgk+gDtdIbI5c8pQ/hGLU/0tatDXcg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dad80c88-c2d0-4aea-09d1-08d682964378 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BN7PR07MB4371; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4371;3:JDWX6HXpA530LvMpQwJhvm1ZyqBZqXT5o6T4QlYPxGiJAIiMVAypz5Z42RumJEUXq6VvAKTSp8FxHQU1f19L2s07d6spQoeKZMlnShPdH4CWfRjo6lxKvzeUHsGaVXgU28USK9tAmM5Fsg1xlAwrTsOX9bGnYI9Gk0dcJKFEm1D+FfM6/vPCuO4d+PjxLm+8J0ND4uffKgIagUZ2wGrRdi/29QFxMyQ9BSKocbRZQWYWpMEBbL2mrwNXOx8RfE+Up/oeIfz89UbB9HiTsQsNNYSIvr8+b0mjHDgvjjwn7iRwzU0aNucRWBOfNNIvDLJvClgZ0dVaLdYFdJV4S0LLvykzL+E4XR7xjQjjyMjV4CiS9dTioH8CN7zDlJApn6z9;25:Z0Xaalnhe6SUBbvGW91MrWiHmUiKXSz9rwh1BUnOOlER5z5XAFmVh5zkM4sY4/ynpQDLQvcJ+YlfINlSoRM10hsZjWVEFNpSG9SbU+nBYMZW9JXDPd2T+VXWptHM0Vmbg7QI+bPVm6FKLOmkKg0qmF4pU779cEJ7llQKP1/fGm/WNyr7sVu6MNXhKxElUMpNR+pqywmMOUyGELJNJxhVvs8Z1D0TLzWyM783Gnz+ilCNkQyXS6O/NENqWo3v5KaWE7AV3bxmxVZZ9Q6yDzcEZMAl8n/mwPcC3s3Go5FXgnuRYc7U7Uwx96rFhFHZVKELyxsKHNmgvoPSuhQppqT1Kw== X-MS-TrafficTypeDiagnostic: BN7PR07MB4371: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4371;31:uwuEKlD6Al71M8a/ooODk/00jzckQGpLNfNqbrQ17kuxji3zEsSCyiBysU3BeIb+rF8hRe0l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CYA9q32foVkjGBun4Me3i9Bd+SVO0CuvMbZzjKETrQ8Ma8bQbhyYhMfZ9zUYpT/kVmzoJ0+OvhYIJd4NUIFjekx9to= X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4371;6:LJegePCI5Ja+CwWjKqZNRUQAx9Bx9rS1rBt/tRaztCQ8fKQRyodGyJzguEqDJmUCc3usMjcCgo4NjDE1KQIZXthnK/76at9KWBtmkDEJ5JRq8B0fnGPt+2T6pFxIRS16Xjv0R+1V7eM1nc/ROhty+9CfG3cj3aNUs/d4R+PT+AUkbdvAHbYAtPwEH0n2YYbP86gsO27+65QjCAsVtr937tkG1BK9VBNyIkqPKcITaQnbDxYPgyHHZfQ8tCk/RxBlfYOIH1xAkNt99IitkbvUh99YF8+U8qvbkLtXqKSz8wyINU87+BUzmTvfK/583SwOPokq7wfY/gt/TcwvzfL0b3LIvO8sM5XtKwXFypF7WVBA6zpEgQDamn472Q6PChA+cWpRTrjQ+cZcfqszsbne90t4fYoPKuS+BdK7Q+buo/oMhLveFErR4fwxixEekmNhY2gJZq1cUm0EynWujDXfgA==;5:NpPY0H3rFj+xWOtMYplrFORDLE9UV+5ub1CBW2nunn1WXV2/fRfDvcUUcSvDaoygSyT4MHnYnaPRzvVbkW5hdZqUj5dhbLWrHVuUbQx2/i+h9HUPDF11ruXcdn5+nd9MGiF0xg9bIi3rH3tlIpCitrvMcvNqh5uqIH2ykBk7sXScPXdcH1w6q1yZvp5kX4X12GZ9OpAJfF9KBYbk4/kFaQ==;7:slKxEawG0DZ2H97WjwJv29CbyFMRi1YXPkhnM7As0dfn1aHuMEaXzxu+Y0m0HpX11i+R4ai03/dZA6GGywxeFKh95v5eZsO6ujkhg0dJSKbgGNoGAcjTZSynX6XaQC9dY4BGpcf2fwK867lhOX2lEw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:20.4774 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dad80c88-c2d0-4aea-09d1-08d682964378 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4371 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 allocates DMA memory to prevent NULL pointer access for ct_sns request while sending switch commands. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 58b4bfe01202..aa72e8316533 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -4755,6 +4755,16 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags) if (!fcport) return NULL; + fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev, + sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma, + flags); + if (!fcport->ct_desc.ct_sns) { + ql_log(ql_log_warn, vha, 0xd049, + "Failed to allocate ct_sns request.\n"); + kfree(fcport); + return NULL; + } + /* Setup fcport template structure. */ fcport->vha = vha; fcport->port_type = FCT_UNKNOWN; @@ -4763,13 +4773,11 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags) fcport->supported_classes = FC_COS_UNSPECIFIED; fcport->fp_speed = PORT_SPEED_UNKNOWN; - fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev, - sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma, - flags); fcport->disc_state = DSC_DELETED; fcport->fw_login_state = DSC_LS_PORT_UNAVAIL; fcport->deleted = QLA_SESS_DELETED; fcport->login_retry = vha->hw->login_retry_count; + fcport->chip_reset = vha->hw->base_qpair->chip_reset; fcport->logout_on_delete = 1; if (!fcport->ct_desc.ct_sns) { @@ -4778,6 +4786,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags) kfree(fcport); 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); From patchwork Fri Jan 25 07:23:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780713 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 6AC4913BF for ; Fri, 25 Jan 2019 07:25:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 501962EF03 for ; Fri, 25 Jan 2019 07:25:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 443942EF2A; Fri, 25 Jan 2019 07:25:23 +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,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 DB26D2EF03 for ; Fri, 25 Jan 2019 07:25:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727507AbfAYHZW (ORCPT ); Fri, 25 Jan 2019 02:25:22 -0500 Received: from mail-eopbgr810080.outbound.protection.outlook.com ([40.107.81.80]:48544 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbfAYHZW (ORCPT ); Fri, 25 Jan 2019 02:25:22 -0500 Received: from DM5PR07CA0039.namprd07.prod.outlook.com (2603:10b6:3:16::25) by BYAPR07MB4759.namprd07.prod.outlook.com (2603:10b6:a02:f0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Fri, 25 Jan 2019 07:25:19 +0000 Received: from DM3NAM05FT037.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::203) by DM5PR07CA0039.outlook.office365.com (2603:10b6:3:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.17 via Frontend Transport; Fri, 25 Jan 2019 07:25:19 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT037.mail.protection.outlook.com (10.152.98.150) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:18 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:15 -0800 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 x0P7OEuo003575; Thu, 24 Jan 2019 23:24:14 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7OEYh003574; Thu, 24 Jan 2019 23:24:14 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 07/13] qla2xxx: allow session delete to finish before create. Date: Thu, 24 Jan 2019 23:23:45 -0800 Message-ID: <20190125072351.3504-8-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747190622968;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(136003)(346002)(376002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(69596002)(316002)(54906003)(4326008)(498600001)(87636003)(110136005)(36756003)(26826003)(42186006)(50466002)(16586007)(80596001)(48376002)(336012)(97736004)(26005)(356004)(6666004)(76176011)(486006)(106466001)(105606002)(446003)(2616005)(51416003)(11346002)(476003)(126002)(47776003)(68736007)(8936002)(85426001)(1076003)(4744005)(50226002)(305945005)(36906005)(53936002)(81166006)(8676002)(81156014)(14444005)(86362001)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4759;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT037;1:LY5wBJqMz3DRuDOQUVcq1XnBuyhvXyUEnjfaF2w/VrsQtS604ofsdY+H23dVNFPH3gJ3fdz1Wjwhqnsywu4bNIWO6TCD+kKueaLqhsPUj94OXiO6gQrisDIvd4+qFMhh48tNyhN6eQw8cxA33Tgo8A== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eba48cbe-dc1d-49b2-aa01-08d682964264 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BYAPR07MB4759; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4759;3:voJyQ0IXtCxnn7fjvCfY4Pcw4bhO2++otuGLriGU6WSaF8m0YOau+WGmVhGTInjKjtr7rLWovMuvw2KFdXYwuFeNFR14s9JTwrNFF0el5no1akE7fKkmpwCz+bb0mZbuMW94WlG8ioTtlhkTRsDPhV6S936NKE2xilr+hk6hG+UnfKu1Han7uqlnPzBERoL8aflufotB77cDpGjQq3k+6ZGfKxEkOCcWfmeOBcmZbk0TVyjOJ2RftjKwY9UkCO8jOWfSl3NNH2yDSBTku5G560tRdG7HJ3ot39B0kKKRdI8f4ClUviL+22KqEGwII2yNA4GBdUTi7kQLjmgN3UY/05RWEU/fyBpj5PGrS+e/uLsie5L357f3svat2nGO4hRF;25:gqFj6QkVbG+mzYm+UCTdSeaSrPUGLQFp6i5gFfhfGQnMbIejG5MxS+cWVWBLUN81beEigNcZ4t7L0ksrDRqh+2+gvlCGpl+38eViMzYmbEySWNPkctrrVJAj59cDoybMBnPIJiXL5ZcMws2HGO+XcMXc2yZxkI7yg7oQA1GWLKQANv3ZbvZeq5/RVstPlAKa4TEZ+9G+NTGAQxAptUKVlfeIxNqsN+jAqZWrb23Tc++bkhSoWA2HFw5layn7K3a9yK+9+oHjUxXPuu+mRr/Tu1Upqc3HOh7hqxc8AbmhQl0jTv65NBeJBUvoXJ7vFnx09tWZaU+akMEUeL0zLCBwVg== X-MS-TrafficTypeDiagnostic: BYAPR07MB4759: X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4759;31:e7kPjQOEGzetUkDLkMolOB+0f+CBwmA47Vr1d3qhB5FI83YWEa5XooTJzKYDjjx6s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pWRLI6aTH0lVwXpLfSqvg2zhZe6zsRBWxMi6vP8I2V7NGFppSQvCUaYQPWgxaI5wxMITpzOT4fwzaJO1Uj1BVOqU/rh6YQ= X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4759;6:iGhzKGZ8SJFjsBIoAUY8Q3NOAM4XhYV7wgTRyzdbcuC438iAa6OCMj8R00fZiO/resniAo+/GK/xdNrZoIMbmaERaSiloAqg9/PJ361dxx652pu7qRaL5mZFwj7hIqi8zWMaKYDxzyHq56hNKAGkKlsJzo65t61R3546dw+QZ3a/9Ipw/aJkbH10wnwvWkAnsY8QNlL8RHAvxEOk/bCe2p8YDrzvb/+cQvHy7qRCLhVI+O0XrJ3JuktrM+3bxEgtcjBs/kUQld5OfmDljtJclJP2lENYv0m13y8e+ZLpMD1MRkyG471LF0k2BfbjgrAbBUdxg6URPkgFrJ24XAKAtTeNa9ZSTdF5Uz5OMNdl0Y5ECrsQKYFb7p/J9qiopNgHmTC7KNYCmSkF37fv9A6ssBm0ZkGJAioKa3BKD+h+i4K1IJGg1Wyvsxb/6oDSfWXRJZddSvbcEUECgN2IErry9w==;5:mSajdJzEed998hmBFHZDEEvkKLmII6TwnHKBbDy9q8UPv4rxRc1W0jS9HxKc/K1XaO08w6S0bWXKdL8OIAJJgQxzIIEBuX9HU0r8jct7cLphoMWDK7e/aQ0bIK8lZ2YGBc9VorFf2IYx5G61EVTPUc4gsSdrVKo2ieYLJEnMsQmIc7grV/5xcVAC1eeuymcIkuiUYUON+VvbWXU1dMzQ/Q==;7:F1vqcpu/ivehbs4GPMSytFlxuGjY380YajVHGbqAaD+OuS6EMY3PI7PvGeP9aeLEtSDXjvqdF0eA2GsI9RRY8K5XptUM7nSQ7JOsUoim625FZkYKJ1NMRE7yti6RVrUssRt41p7NlZhm1SyLQEGT9w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:18.6789 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eba48cbe-dc1d-49b2-aa01-08d682964264 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4759 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 flushes del_work and free_work while sending NACK response for PRLI Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 8bc4c651af68..5d939a48f3d5 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -684,6 +684,9 @@ void qla24xx_do_nack_work(struct scsi_qla_host *vha, struct qla_work_evt *e) switch (e->u.nack.type) { case SRB_NACK_PRLI: + t = e->u.nack.fcport; + flush_work(&t->del_work); + flush_work(&t->free_work); mutex_lock(&vha->vha_tgt.tgt_mutex); t = qlt_create_sess(vha, e->u.nack.fcport, 0); mutex_unlock(&vha->vha_tgt.tgt_mutex); From patchwork Fri Jan 25 07:23:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780719 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 8675F13BF for ; Fri, 25 Jan 2019 07:25:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C6302EF10 for ; Fri, 25 Jan 2019 07:25:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60C782EF78; Fri, 25 Jan 2019 07:25:29 +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,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 0575F2EF10 for ; Fri, 25 Jan 2019 07:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728478AbfAYHZ2 (ORCPT ); Fri, 25 Jan 2019 02:25:28 -0500 Received: from mail-eopbgr710053.outbound.protection.outlook.com ([40.107.71.53]:44029 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbfAYHZ2 (ORCPT ); Fri, 25 Jan 2019 02:25:28 -0500 Received: from DM5PR07CA0089.namprd07.prod.outlook.com (2603:10b6:4:ae::18) by BN7PR07MB4754.namprd07.prod.outlook.com (2603:10b6:406:f0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.31; Fri, 25 Jan 2019 07:25:25 +0000 Received: from DM3NAM05FT014.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::208) by DM5PR07CA0089.outlook.office365.com (2603:10b6:4:ae::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:24 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT014.mail.protection.outlook.com (10.152.98.123) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:24 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:18 -0800 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 x0P7OHPJ003579; Thu, 24 Jan 2019 23:24:17 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7OH3C003578; Thu, 24 Jan 2019 23:24:17 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 08/13] qla2xxx: Fix SRB allocation flag to avoid sleeping in IRQ context Date: Thu, 24 Jan 2019 23:23:46 -0800 Message-ID: <20190125072351.3504-9-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747248978392;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(136003)(396003)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(36756003)(97736004)(105606002)(106466001)(498600001)(47776003)(87636003)(48376002)(50466002)(305945005)(486006)(14444005)(2906002)(50226002)(8676002)(81166006)(81156014)(8936002)(26005)(356004)(6666004)(26826003)(336012)(51416003)(2616005)(476003)(11346002)(446003)(126002)(42186006)(76176011)(4326008)(69596002)(316002)(110136005)(4744005)(54906003)(1076003)(53936002)(36906005)(80596001)(85426001)(86362001)(68736007)(16586007);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4754;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT014;1:fcMedpvRm8v2iKN/Ak25aG6IT821IVvx2Q69noT7CqpKmqWLEutPQ8cnmXUyUGpbdUhe8PDD96jy2oU5nyaUmmPBqJjDk671nUWfkY+i6v2Dx5aCsDjxsMQGNr+3042Z8r1u3nCIVzbW1l+u/sA80Q== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74e024bc-d84e-4c5c-9493-08d6829645e6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BN7PR07MB4754; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4754;3:DC382LZJFdPoavAcWPfKyL15D2P57Edxdo6vTk985gacdzk2eSBszhsCdd6CnoXF/9rrz/LwtNJf4kQxHTIrXaTw7d2gtLMLTWLOvcVV7C7g9iNvwp2TIDqu+XeBVf4iP2M2JnWdwxq1X/qsPWbAtoU51hGQZvyARLbdz4tw0wgzTe6Fb4dXXG/8mgOp8MRLGENmvMM/G6F7GLa5WfxLfqsWZOor7tuZSQNxJ0eT639BJmcYhErpTU+vbalTXx5VlYUoQ9CM5ugI50z2CUYCqIo/GTXsi/gprSsAwdcLWXKPg1tSRWvIL5gzfodIApZrVkfFvzX7N+fjaS4f4W2PrghWxKFcfRzwtzjrOKO0GCseUN6dcnsPeWBEng/Wh/tV;25:mqOncfoxcN9+JlJ3Evx4wUGZtfhpdSwHEsrVQFneR7sYNAxVosI8MYgE8/YQppPLDn1VVLrqXGuCJs/0tD5KOTgKaipCoUxZ0S+p6li9HLVPN8/cTL6Xcshcm6F5JWekym+ObCNSK91GRuiqb8pP1qnULMHfXNuFaD2mJFYlhnN9S9LK29qc2HdgUN9A/pNv/OyzlvgVTobYpzdr5lHdPl/hiZd7U3hgCEunilcY1Aeg4QEe80YEXahduujNzmUlB+qvh9wG30KbUEG/ZFSvVV5WdHNyPwsfKkLAxJF9gTJn0DSlQsL8GegUkVOufOmvTBwQMipEbBHwomAaW3i4dQ== X-MS-TrafficTypeDiagnostic: BN7PR07MB4754: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4754;31:biNcqAo1KYcQTpWKtdO8E85eEbnLzXLigeZUXPiQ7nJPTxnzS4TCKxYC/bfrvKs3OOcm/eYqEb0pSeTWE2wU5pO5UskdrhkUDN+1bZcjNPaJPTgQNBgqAqrm/FYxhaJnXNRo1r2gidN0flwaexvZiCx7ZvtcUzer/XSDqet+D3uKTcozHHPDChm8K4gH8o6PMbz1ptME+G4Sa4kRm+mV8lvdNrbV5KNAHIgrURZLE5A=;4:USCouWd+eaMjDm8Jx5e6aTIdWKC6LPs/6PsDewEsV79Zrh3Qlm3HT9/bJUFHvVRUQajami3xEXAX2yK4oYDS+o/yT32pNEduRmbPwtpc1apL03gkNrcSNAVODMJH/IbXz/vqRhQpnh+NaMydxLeb9oZn3+ULjQGJbWQmC2ZLgQIWuzTA7qW98nv5GZqsmfo5ZhhX3Yu0vUIRJW1a1hhQEFSpzOLJaDZqm7zi2t/0Ze/xLuJv+BSUulgbfeB6vYXBXTury+VKV0DgY1NqGSqu1EakkOI/7uPaix3P8uZE8O+te8lXWjesS6/EOxqL/VJg X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0928072091 X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4754;23:2bcHOLxv2lVJEnxZx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GgiSYbVkl3n/zApim4q/nqcjbkCfw==;5:csQKigftUaQOnQcW2htj6UIaRXRvxWujVzlueGZE1FII18NDIJFSEZ5Xq/dB7xyUCvs4eaFe4NeubEAXBqpEpHGab33j9iF6hNcTcQ4FI0i1ubS//6ssGGhgTtwvBHEXp1ylZTUL2Pko2CclqdGNERptJk9UdWi7CYudrMPuZGF3nAaKWJ5xZn3sZymWCbsbEy8jyDbGjmINJKV30AviMQ==;7:8yX7ouwfxDP/ZufzJgGn9l9Mk4JMyTEkRPRHTfZUidsX8urkTWGsknFr0pVcINPYicXtn+dnSxCA8sTjCkjiSiSND79jUbxnNQsOlTw4CJhpInsxRtbrbHYj0SObQWXyAv0dxgIGe74Rk8+GM6rzcg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:24.5485 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74e024bc-d84e-4c5c-9493-08d6829645e6 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4754 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: Giridhar Malavali This patch fixes SRB allocation flag from GFP_KERNEL to GFP_ATOMIC, to prevent sleeping in IRQ context Signed-off-by: Giridhar Malavali Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index aa72e8316533..3bb4fa97e40a 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1829,7 +1829,7 @@ qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait) int rval = QLA_FUNCTION_FAILED; sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, - GFP_KERNEL); + GFP_ATOMIC); if (!sp) goto done; From patchwork Fri Jan 25 07:23:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780717 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 A6C54922 for ; Fri, 25 Jan 2019 07:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C6832EF10 for ; Fri, 25 Jan 2019 07:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 803BD2EF78; Fri, 25 Jan 2019 07:25: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,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 0D9E02EF10 for ; Fri, 25 Jan 2019 07:25:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728469AbfAYHZ0 (ORCPT ); Fri, 25 Jan 2019 02:25:26 -0500 Received: from mail-eopbgr790070.outbound.protection.outlook.com ([40.107.79.70]:20256 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727745AbfAYHZ0 (ORCPT ); Fri, 25 Jan 2019 02:25:26 -0500 Received: from DM5PR07CA0101.namprd07.prod.outlook.com (2603:10b6:4:ae::30) by DM6PR07MB4763.namprd07.prod.outlook.com (2603:10b6:5:a1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.18; Fri, 25 Jan 2019 07:25:24 +0000 Received: from DM3NAM05FT014.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::200) by DM5PR07CA0101.outlook.office365.com (2603:10b6:4:ae::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.18 via Frontend Transport; Fri, 25 Jan 2019 07:25:24 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT014.mail.protection.outlook.com (10.152.98.123) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:23 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:22 -0800 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 x0P7OKVH003584; Thu, 24 Jan 2019 23:24:20 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7OKks003582; Thu, 24 Jan 2019 23:24:20 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 09/13] qla2xxx: Prevent memory leak for CT req/rsp allocation Date: Thu, 24 Jan 2019 23:23:47 -0800 Message-ID: <20190125072351.3504-10-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747241842661;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(39860400002)(346002)(396003)(136003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(1076003)(8676002)(105606002)(53936002)(50226002)(305945005)(106466001)(97736004)(336012)(486006)(2906002)(47776003)(86362001)(80596001)(26005)(69596002)(446003)(11346002)(476003)(126002)(2616005)(81166006)(81156014)(87636003)(16586007)(6666004)(85426001)(498600001)(356004)(36906005)(76176011)(51416003)(50466002)(316002)(4326008)(42186006)(14444005)(68736007)(48376002)(36756003)(26826003)(8936002)(110136005)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4763;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT014;1:oGKDpJ6PJzz2PFjXYDX77/ErQnstgHR+WwsyWBpOj0KKFYZwXKyohFgD/rXzz097T4TvYm/hd/hSTNzBE5E3Ir+IXaK8Qr0xDHe0P65f2XqJ18sI9xk8Dz1AtYYHVCj/yzUq8DCU83+3Dt6426Je/w== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c4f19f82-9498-4622-cfa0-08d682964574 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:DM6PR07MB4763; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4763;3:er9jd19yZntvLi0cQwxS+LvabhftdslvqdFw/M2wWVGNDyBuRnm/X9PlcbbFPhXP0OArSKnGt5t1Y0dJTi7w9Pm0Q/zT2pjur3OwopBUnjjueDgTrO5CR8AKCajqSz5rlYN4zWD8il2+ft9BXO+CrC7xWgBqy+4I/sEe6nI1dtoHroPvPK+zzWe6pGxOK0BNo7QTdadefURgb7gotaD5iJM0W96ohQbgShWUMUahsuRdc4sKv0T5Uxo2fvu1sZem3C2Byfl/qqifQ40criCsi5mE9gDJhT9Jxwc7BNfNcCRu123k5/2fwZ4J8n54vKMah+fmzaW8XYjEGvQf5wlHIEV9dKrrV3tTvTDqciNC2kAsnXnmw1NJNxm3Ll9I+ghv;25:ZCIWrdCOgA81D2XkE+iQF4W/Lc7MrDiwLmTJIwyXmxacKM+Ck3QhMdoKtwhcDGVngBJLaO8KpywGRpzEZ9OQDZ8MK7ejAk1HjA8V7lixDQJz0W2vUrPDAvwuijPxffcg81BLa4rZt4prNR+5rJmYeE2wxp5TwfE0gRQN608kMNxGgbsFAcxDdwYm27Ui1VOYxEMFtOQo8FJNdiq03cT2Zy5wFeCWzWanNbiNOSZzumEBPAbk9TPdbcYHAUjABFSzYfhDkN7nq1ELTN2t0krQnyxPGTWzUy2FsrHHnup3JqFBuaBVd9B26fiuRmyQmHNJ4ETJK/2BTZVrVUYpCvhGgA== X-MS-TrafficTypeDiagnostic: DM6PR07MB4763: X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4763;31:7BqWn+jG2SjIAhsELfNzCKyas7uhtswmDulGPTRr+hCYvjseoZr4FMF7E+G3C+4LJ02Fi1lv7rUZsdtbJR6v1Bo5QfXltuv2CYRU9jBfiIxj0JfPYTviZlQYOdOYprMavmFAvBmOdEl1oCeWig46HGq4nGD9pReGIvI7LHbVFnRZCSEBfgm6TqW8q0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pMQlJc= X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4763;6:UQBuKDkLh5pAD5cHTRRENL0ZUZuzDxOILio6oBjBlfx/vH6PGsUgSWRgJjtU2UN6hEs75qlO0EXOL0Rd5riehB+urpZMo204b9peOUl0HgkzLealgRiUUB4LKDkafbXCFbZufV6Jdhqtn6+LqMpSEkjpOc5d6ZPEFutC1Ysns7zTSwBDtOzcUjdsDO14cMtaqncYz3COqenriqmaijvmtoXj12s1P7Ie5LJKo1TmKk7hwaBONt9k1YKI2bUCGghZ4dAI+3zVJeut2iBZsqwF8re9s0vaVKHMDM5zikcb56uQEt4FCuBYSC8YfEEDzPiTmyXvYyrXmEvppegEVOSuo1ZR0ftShUyba8J3juafzni6ud+R8J6sKY8ovm1pT4f/zjFWg24Ma4arscTokPq8TMd62R6TIy4T5tRm4qgF0WIhV7X9+2o5J1IuRGT5K1N7EYslWtNm9Bvw9q2wvoNrQg==;5:tEPp7zRLOwsXYjcqGQi3N6zG1m2XnhdhERIoSjfAevSDujTHdfllusOnksSZwAt102Va3j+oN5CcqBZzxDwYn5Tg40tR7j8pT3z03rlveTlMsLRuHNRt+VQqHZP4MdVQJoe7uQX+Cpc9iJ9QdyEnBgEu3Xr0CTpH2FMUTek8d/kBEGzKFPwT3HO05ErCdZ8eizSGMmRA1mazyJe71mLA3w==;7:TBxNafeO4lPX7tJDbfTsdYY8MNborjnwvTIgFGAPzNnIAxiiploMMfMpO2R0vL3L3f4tVtwskClckSTp2SUuFODM1ovPRRFc0jvGjhdHMpFJ/Uj4iQstfDg3jAgBOrPd4nBFrRMjf7Csxx4tdsIdHA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:23.8079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c4f19f82-9498-4622-cfa0-08d682964574 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4763 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 fixes memory leak by releasing DMA memory in case CT request and response allocation fails. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 90cfa394f942..4aada6b37076 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -4157,7 +4157,8 @@ int qla24xx_async_gpnft(scsi_qla_host_t *vha, u8 fc4_type, srb_t *sp) spin_lock_irqsave(&vha->work_lock, flags); vha->scan.scan_flags &= ~SF_SCANNING; spin_unlock_irqrestore(&vha->work_lock, flags); - goto done_free_sp; + qla2x00_rel_sp(sp); + return rval; } sp->u.iocb_cmd.u.ctarg.req_size = GPN_FT_REQ_SIZE; @@ -4175,7 +4176,13 @@ int qla24xx_async_gpnft(scsi_qla_host_t *vha, u8 fc4_type, srb_t *sp) spin_lock_irqsave(&vha->work_lock, flags); vha->scan.scan_flags &= ~SF_SCANNING; spin_unlock_irqrestore(&vha->work_lock, flags); - goto done_free_sp; + 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; + qla2x00_rel_sp(sp); + return rval; } sp->u.iocb_cmd.u.ctarg.rsp_size = rspsz; From patchwork Fri Jan 25 07:23:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780723 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 249BF922 for ; Fri, 25 Jan 2019 07:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B7CC2EF03 for ; Fri, 25 Jan 2019 07:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 001BC2EF2A; Fri, 25 Jan 2019 07:25:34 +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,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 D76532EF10 for ; Fri, 25 Jan 2019 07:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbfAYHZd (ORCPT ); Fri, 25 Jan 2019 02:25:33 -0500 Received: from mail-eopbgr740075.outbound.protection.outlook.com ([40.107.74.75]:16000 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727210AbfAYHZd (ORCPT ); Fri, 25 Jan 2019 02:25:33 -0500 Received: from BYAPR07CA0039.namprd07.prod.outlook.com (2603:10b6:a03:60::16) by DM6PR07MB4762.namprd07.prod.outlook.com (2603:10b6:5:a1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.17; Fri, 25 Jan 2019 07:25:30 +0000 Received: from DM3NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by BYAPR07CA0039.outlook.office365.com (2603:10b6:a03:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:30 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT044.mail.protection.outlook.com (10.152.98.157) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:29 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:25 -0800 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 x0P7ONCB003588; Thu, 24 Jan 2019 23:24:23 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7ONMf003587; Thu, 24 Jan 2019 23:24:23 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 10/13] qla2xxx: Restore FAWWPN of Physical Port only for loop down Date: Thu, 24 Jan 2019 23:23:48 -0800 Message-ID: <20190125072351.3504-11-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747301578000;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(39860400002)(346002)(136003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(498600001)(87636003)(86362001)(51416003)(50226002)(2906002)(1076003)(69596002)(80596001)(8676002)(36756003)(105606002)(106466001)(81166006)(81156014)(48376002)(356004)(6666004)(4326008)(97736004)(26005)(8936002)(68736007)(14444005)(53936002)(50466002)(16586007)(42186006)(316002)(336012)(110136005)(54906003)(36906005)(76176011)(305945005)(126002)(486006)(47776003)(11346002)(476003)(2616005)(446003)(85426001)(26826003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4762;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT044;1:GO2AYX6eZDjsrrdZsPl2luG36X+JlBQGXCtPEWg6ZmFPT7gpsr+ZhBDdMhd9uTk1ccGV1DU+GDkicFLDjkzCmX8Bwozb7m/KqG/2kfammS+5s2oBlAmBmCzFZ4O/gp+ITznvPA8Dgq06qJxVceQj/Q== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 82dc09d2-d42a-43f6-56db-08d682964909 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:DM6PR07MB4762; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4762;3:aC8CGmfnE6dlxWCn1EBkF34cBZtD6iVNsdk/5xaQBh0u/9bG4CHaZqxo++13hieTGvQSOtY/igcDmcSgcmxnPtwJfQSk0zXs/0ALjmYhqZUErDWVVsziyWE6B/V4+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aY+/vuxDY3pfuoIoofEGwQZo6X+mTX8aTdsA01byCsSQ6zdR9pdbUXfIkrNnwp156oQr8Anc/w0Rbos+6y61ANotxaB4zdMoclJKp8aqKC7eBYnir5z3OmFkr0ZR4ePi4C2zqqkGQ8v0Fgj3alRePSX40AijXBgIp+tTMUy9JVFsxG3D6+XGmWPmWSWdz6gBWWDlPzOHghJYn1pOjRLLtbDHns5xSOTnc9yVfcq4e5+f3r6EjhL2hQ==;5:B5fLxGX7kwZiRLVlbYRxTXZs55SVAweIExBmFAPJHk8FezDmpDqJFYGIx563tmXdJCnoYsafJgs4arBB1IglABtEMxyAznYuPA48Ua8VGfuIRcuI43goZA8EhxcxbmLGbceuM2SKcFKUhmR5ryF9iSyCXkJsS+c3TT3lbxCQdJ3by+h2/bo134dMT5J0PqkQ7/eTjLnBoOwY+TB3rY8FPg==;7:Be+Rim+nmUaE/WwSh1XwnKbF0BDq92uZV64kPBlqpkAQT3lbEXNymLHP3ZhQqdUPuIMtuttMdzfNLBP0XpzrJpq2GxHn32HcANrUzeheJK/QFck0B3ISxDGDBBORg9pTRVXagXEYstv0tDRCwPdO5A== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:29.8185 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82dc09d2-d42a-43f6-56db-08d682964909 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4762 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: Sawan Chandak When loop was made down explicitly due to cable pull, then for N2N toplogy, if FAWWPN BIT is enabled by user, then it would restore some default(garbage) value for Physical port WWPN, so this show garbage WWPN for the port. Fix is, to restore phsical port WWPN, if it is fabric configuration. When loop is explicitly made down, and FAWWPN feature is enabled, then driver need to restore original flashed WWPN. Signed-off-by: Sawan Chandak Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_isr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 8507c43b918c..ed4d1d8f4d1b 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -834,7 +834,8 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) * Restore for Physical Port only */ if (!vha->vp_idx) { - if (ha->flags.fawwpn_enabled) { + if (ha->flags.fawwpn_enabled && + (ha->current_topology == ISP_CFG_F)) { void *wwpn = ha->init_cb->port_name; memcpy(vha->port_name, wwpn, WWN_SIZE); fc_host_port_name(vha->host) = From patchwork Fri Jan 25 07:23:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780721 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 E1B8313BF for ; Fri, 25 Jan 2019 07:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8E1A2EF10 for ; Fri, 25 Jan 2019 07:25:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD13F2EF78; Fri, 25 Jan 2019 07:25:32 +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,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 5D0EC2EF10 for ; Fri, 25 Jan 2019 07:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728508AbfAYHZc (ORCPT ); Fri, 25 Jan 2019 02:25:32 -0500 Received: from mail-eopbgr760044.outbound.protection.outlook.com ([40.107.76.44]:18944 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbfAYHZb (ORCPT ); Fri, 25 Jan 2019 02:25:31 -0500 Received: from BYAPR07CA0039.namprd07.prod.outlook.com (2603:10b6:a03:60::16) by MWHPR07MB3005.namprd07.prod.outlook.com (2603:10b6:300:e0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.19; Fri, 25 Jan 2019 07:25:29 +0000 Received: from DM3NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by BYAPR07CA0039.outlook.office365.com (2603:10b6:a03:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:29 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT044.mail.protection.outlook.com (10.152.98.157) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:28 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:25 -0800 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 x0P7ONQ5003592; Thu, 24 Jan 2019 23:24:23 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7ONKx003591; Thu, 24 Jan 2019 23:24:23 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 11/13] qla2xxx: Fix fw options handle eh_bus_reset() Date: Thu, 24 Jan 2019 23:23:49 -0800 Message-ID: <20190125072351.3504-12-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747290118984;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(376002)(39860400002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(81156014)(126002)(76176011)(50466002)(48376002)(8676002)(81166006)(68736007)(1076003)(36756003)(51416003)(97736004)(486006)(8936002)(85426001)(2616005)(69596002)(476003)(11346002)(446003)(106466001)(105606002)(50226002)(110136005)(86362001)(42186006)(316002)(36906005)(54906003)(53936002)(16586007)(80596001)(6666004)(2906002)(26005)(356004)(4326008)(336012)(87636003)(498600001)(26826003)(47776003)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3005;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT044;1:1FOvHf8Vz6MtDspbhFxmFaMzG3kErhgKx6o9SwdT9eS8C/yy4fWbcDRDQrgVNb/+6d4gvyaSD5kjOWobcIhMEMBCD77rq4EjRU7bUgsBQZm7B85Pu/0L8ITUoaEm8kfJFpPUGmIV/ICgLOygwyT8fg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a3e77d5b-0060-4a0c-55df-08d68296485a X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:MWHPR07MB3005; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3005;3:dUsU9O7oH16ZCXVcUderMBJSGMKTCKhxg/ECs+bLxVxbGtmrdewZxXhBz0PfTNU1JWSlBhkMZ3CjdWvXn+u159lpnPA0QjhPYmRGT+CsQ2GFX2bwMbupH0ciKgKGaEK34AM610xKkauhEhg+TKlOEHtWM7Gn0RedBrBxn3wv6X0p3/11xb979H2ofVGqWwAtaQLSy1P0Fkogu7yFMMs6/5e19HMOum7d1sNx2tfFKKkvFmiUIrLxRbeWDwd8Gepakg8zrnBJmjs97CYmChxb7/xTt3YR1c9Udx0ZNRwGn9aoxnsfzoydGSXJ67t0N3mzXE0oFZIgHd5xuLNLjbB3ZUAGUoJNhRl6GOb6H6iUc32OxBJHwQAdHgl7cpX/tIzh;25:9BcblScxYAu3WL1gBRKbd8VfR7vGCBaIpeiiXa8aEvg31gnyk26NCQDBU+j4LPdgDSK69+5VMSTqJo2cLqUeSWbPm+OCsLwMuc/TDVaWB9i6aR1YnY6slbIiVDL9JG2HNlOGxEhEeLsFrM3XSbdillCnVD9FsUrNaE71V1L8T+t41VYedbINOPZZQysmoxlSysy2xDJRJA6zyhzitJUCaSmmYCv4l2Sx9OX0Yo/PrphTX/sUs17OazBuwq24Ob4nbSoRr1AChlhX3k6yxFy3gU8eGPMR+iliDFmdLNdbahGfFf9IvVO4d2YvMnoxRwWac3R/pq/81zDbb6SFJbCxYA== X-MS-TrafficTypeDiagnostic: MWHPR07MB3005: X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3005;31:PT1y3kxTArqqF3XNxJEuyVreTZUCINV9tAOiS8CkIKojU5bCYN/djTG5Ih5/g2veRViSx7oMVD/iQjI16s46KkGWTLFCZml9FoZrxs8PNOz2iHOqfPe/lVYQYFW1+vfFf3X1PU1ICwQ6ReE29yGgAqhmM8WIXnOXNxyh/ceflhamzugJh3ByM03ANXgHzL+ea4jnjC5As1gh03G8VDLqBtkO/7/GW+ixfPrzQy1wa4c=;4:uv4kqFEnXvTzdkV+777Qf393gI5ZP7fv783EWx5kY6pe+Cmev9iT5lsJOvK6ggDb7DAeDQYS3vYwY+bqLxxkFbzn21TNoerLM1+8HPupeGA2EpGT4P9tPulh/dMovaLKrfRff8ByHO8ItlsqGl5gA0MF9fQ78jv4/mvjffGD/f9RC15vqhL3jYaEWAIonZeFKN5mVe1GLcJ16SNEUX7tzKUkSLnibC0PpwENyyqzZlpB+dPYJiD+ueOW3RbmSRPqchAfHfgpzytiojWDtlxi4hm1nEMX+cKBspybd95ZKYukRteWk0uIFk/tNfzMwxRe X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0928072091 X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3005;23:4rvZy+4bn3ihaffc5RVVD7/oQ5gyFxHt4VJur/f9gw7pFhFwKmOGVpy/8MWu7RwexKZIkcBry9VQq8VjZTemzErUR8PUVqDMMYgIWNrDMh5sowIUpdx3E1iWGc/E7Zbq8STXktiNr+lxbcKflBkt3RLaGNx+4BpnQ/+3FOtmarEEzKtFVfebDM8aQm09OoR5m9vCxx55K9Rn7Iv9WmGwpPu1U0bg2P7oP4ZbBkE57FSyFFi9jMzGxMom8+upN84Z9v9lck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JNnyjeYiC+C/uXoeJDCn9Ifr3cO/0YnLFezh15BiX+6+0Yd2WYmCl/P7b0NEZXnhXWSS868KWslTKzys3zg1pIU1PL44RMoBzXpcm0nnsR1I5xhUl4KqowMlI7RXg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:28.6716 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3e77d5b-0060-4a0c-55df-08d68296485a X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3005 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 eh_bus_reset, driver suppose to reset the link. Current option to reset the link is applicable to Loop only. This patch updates current FW option with the one that is applicable to all topologies. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_mbx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 191b6b7c8747..3181235c3a32 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -2244,10 +2244,7 @@ qla2x00_lip_reset(scsi_qla_host_t *vha) mcp->out_mb = MBX_2|MBX_1|MBX_0; } else if (IS_FWI2_CAPABLE(vha->hw)) { mcp->mb[0] = MBC_LIP_FULL_LOGIN; - if (N2N_TOPO(vha->hw)) - mcp->mb[1] = BIT_4; /* re-init */ - else - mcp->mb[1] = BIT_6; /* LIP */ + mcp->mb[1] = BIT_4; mcp->mb[2] = 0; mcp->mb[3] = vha->hw->loop_reset_delay; mcp->out_mb = MBX_3|MBX_2|MBX_1|MBX_0; @@ -2757,7 +2754,7 @@ qla2x00_full_login_lip(scsi_qla_host_t *vha) "Entered %s.\n", __func__); mcp->mb[0] = MBC_LIP_FULL_LOGIN; - mcp->mb[1] = IS_FWI2_CAPABLE(vha->hw) ? BIT_3 : 0; + mcp->mb[1] = IS_FWI2_CAPABLE(vha->hw) ? BIT_4 : 0; mcp->mb[2] = 0; mcp->mb[3] = 0; mcp->out_mb = MBX_3|MBX_2|MBX_1|MBX_0; From patchwork Fri Jan 25 07:23:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780727 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 CA48213BF for ; Fri, 25 Jan 2019 07:28:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A67ED2EF78 for ; Fri, 25 Jan 2019 07:28:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A64E2EFD3; Fri, 25 Jan 2019 07:28:19 +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,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 5978A2EF78 for ; Fri, 25 Jan 2019 07:28:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbfAYH2R (ORCPT ); Fri, 25 Jan 2019 02:28:17 -0500 Received: from mail-eopbgr810051.outbound.protection.outlook.com ([40.107.81.51]:43968 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727210AbfAYH2R (ORCPT ); Fri, 25 Jan 2019 02:28:17 -0500 Received: from BYAPR07CA0053.namprd07.prod.outlook.com (2603:10b6:a03:60::30) by SN6PR07MB4382.namprd07.prod.outlook.com (2603:10b6:805:58::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Fri, 25 Jan 2019 07:25:35 +0000 Received: from DM3NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::209) by BYAPR07CA0053.outlook.office365.com (2603:10b6:a03:60::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.18 via Frontend Transport; Fri, 25 Jan 2019 07:25:35 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT009.mail.protection.outlook.com (10.152.98.115) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:35 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:28 -0800 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 x0P7ORLS003596; Thu, 24 Jan 2019 23:24:27 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7ORUw003595; Thu, 24 Jan 2019 23:24:27 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 12/13] qla2xxx: Use complete switch scan for RSCN events Date: Thu, 24 Jan 2019 23:23:50 -0800 Message-ID: <20190125072351.3504-13-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747353705450;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(346002)(396003)(136003)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(110136005)(11346002)(105606002)(446003)(8936002)(336012)(50226002)(2906002)(8676002)(81166006)(81156014)(36756003)(305945005)(36906005)(26826003)(87636003)(26005)(498600001)(54906003)(106466001)(42186006)(316002)(16586007)(51416003)(76176011)(4326008)(14444005)(53936002)(86362001)(1076003)(85426001)(48376002)(486006)(80596001)(47776003)(68736007)(476003)(50466002)(97736004)(2616005)(6666004)(356004)(126002)(69596002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR07MB4382;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT009;1:XPhat2hbVUzhpb0XBoadL73aZq08U5Z/VQFoJ8IRHksFCFsksVNP2cuDWughlQQ8YOrQGvm2DFjAw1MCf+esZoiGsKvcMK5s5vjEHXbDp7cwjcGb0nvlTR6wiZP5RbCyoEWgu+Sd5Mswj/YkqJPlFA== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f5ac0cff-7858-4ac6-9679-08d682964c24 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:SN6PR07MB4382; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4382;3:hhoiFMqdMdqMFrahwUxd1TbRHJD4N1IaYT3pDB394mme4shbkWYx+11bObt8LtLr2pWT6WisdxbgtN0MUHAAShsqbuhqYYLUgpREJuIeYGynZuO5pM41WTQP5R8axBXr5v/H3SXW1qFOsyQD6BroAOExUpfkDMsf144v6jRbAI36Yww2YXGem1sEGobwpDyYt54sviYiWyMMD17QETKBtZOf3sxNSv7vor2BS/3dY1tUQbwITSjzCNocKYBbwsGvA8BmhKGJ8RpeyKPFZjHjfGt7rt5uwBb0OkY4of3cHTsnNgkUg7t9ahQkhB8P+bOopmhcXOTb5XXloOyC/YtiRHno/jSPJ3ahkWvWRbzIb3+dd6RE4ujBwhoLYkG7EVXF;25:9RehY4X0aEYlu9noNqM/ymDu5iJBQ7tTzbjt/pxpDEbK0X/hNUTB1GuTiwBl68rtfabpbfaAejy+ZxADHK44zXTtTYByyU/CBkalFVZhNCTlWBBpX4pTEFX7YCtd8CEckicNf+7h9g91EolMsnzkaIJehWK3zzyBaHGWqoOP/u92YSSf0vQ9qCF1DcJd2ZTNK86wOvWrxPvuwJwZU+wIXEiqNjagSDPhnqXBBAA13LFR8f8yK45kVgj2xuOtZ+Xl2KJ7t/Ar0XHCob1+IKHBCibVhcbyyiLaw7TqhPDR2jq96bJ6fiJuJ7ZV2zIgKnTN2k6b3KKJkS6f+NHUtv8tDw== X-MS-TrafficTypeDiagnostic: SN6PR07MB4382: X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4382;31:QtOF2akcDday7bw/nGqLVvjYv8/7jzyAl0pasusPZSoOOuFMga9TxFVZga9DXqXMd3ty5aT9tJ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ABDqG8vhd+v8DdSes+Fkj9xwURIPaHpWdo0cCBrg/FUt8YG2au3rrUBl0FHU+EvZma9jsSn/I+oLKdrEUoPIJJScqY= X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4382;6:McM8rpVvO9UWlWL0dGRVmHYOeErZVidUuQ/4whD1kIkMIOdspz33unTrflNLP5GOZFkeBasiUuJOaOu3svo5S1ca8ksx0JYh1SZk0OFW8Zx1BJh62wyNcSDDMsX893PRXPKEVfRdR5iHbkUI8HXcJE8jrz9+wk9J6YYF791QXnkCAqGUEt+ztZ3Jytt41fLvZxd+2MbnNO1xnJZGRbXFn81Yb2jz60bCpywtceD2aP7pwrLgD+vrt9X45x5DmOWI12Y7CjK7gKDRqKN0WW8kYR+MaNMsqmEUFfNurRAucJab66n3BlHGkjoLvpcrD7DjYhl/xyMI+Qi61HCZxP8XevMYiKRgEFGafqfXOWyVLLdMAAp8mh6YY2UbO7sPnP+xWUdpKEY3haTKvfKCKgi93o48lrK3M/xKzrEcwHv958Ub1Xy9QrdLkhGZzNMr4AUv2lOktN255MVqd4YjOSivXw==;5:RAYTxA1k+b68zN9DZIQFraypb7uOjH5fyHgqfNzJD1wV4/CzsGnD8IkcAirndJnCNwwtcQCXe+2UvBLcquSd9EP50Ox8GeTMYYX3yPY3ZyyiolS3KlnkWcldi5XCjxAUaDRp8QCoqxJWNELPLihadGaT1v3eU+ENUNjvXtsBTn+DfQcot/uqozHFAGUhQFTu2erDamL9T3YDLU1BSpe6IQ==;7:MznPXfoiCOoRODteNgRiNwxMUIOZ07QhbvFMrwLPEtduzKO30XKRQ1eujmbeuSUGoorkT0qjome+Q4I32DuJLXdzgVoZteh55KINfcKulW4RDGWDmPWjzO3i4R1grHNPcCe7bVbvJUZ2gPtrnHCZbw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:35.0212 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5ac0cff-7858-4ac6-9679-08d682964c24 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4382 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 removes unnecessary code to handle RSCN, instead performs full scan everytime driver receives RSCN Fixes: d4f7a16aeca6f ("scsi: qla2xxx: Remove ASYNC GIDPN switch command") Cc: stable@vger.kernel.org #4.19 Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 86 ----------------------------------------- 1 file changed, 86 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 3bb4fa97e40a..8307eac796a2 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1471,29 +1471,6 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport) return 0; } -static -void qla24xx_handle_rscn_event(fc_port_t *fcport, struct event_arg *ea) -{ - fcport->rscn_gen++; - - ql_dbg(ql_dbg_disc, fcport->vha, 0x210c, - "%s %8phC DS %d LS %d\n", - __func__, fcport->port_name, fcport->disc_state, - fcport->fw_login_state); - - if (fcport->flags & FCF_ASYNC_SENT) - return; - - switch (fcport->disc_state) { - case DSC_DELETED: - case DSC_LOGIN_COMPLETE: - qla24xx_post_gpnid_work(fcport->vha, &ea->id); - break; - default: - break; - } -} - int qla24xx_post_newsess_work(struct scsi_qla_host *vha, port_id_t *id, u8 *port_name, u8 *node_name, void *pla, u8 fc4_type) { @@ -1560,8 +1537,6 @@ static void qla_handle_els_plogi_done(scsi_qla_host_t *vha, void qla2x00_fcport_event_handler(scsi_qla_host_t *vha, struct event_arg *ea) { - fc_port_t *f, *tf; - uint32_t id = 0, mask, rid; fc_port_t *fcport; switch (ea->event) { @@ -1574,10 +1549,6 @@ void qla2x00_fcport_event_handler(scsi_qla_host_t *vha, struct event_arg *ea) case FCME_RSCN: if (test_bit(UNLOADING, &vha->dpc_flags)) return; - switch (ea->id.b.rsvd_1) { - case RSCN_PORT_ADDR: -#define BIGSCAN 1 -#if defined BIGSCAN & BIGSCAN > 0 { unsigned long flags; fcport = qla2x00_find_fcport_by_nportid @@ -1596,59 +1567,6 @@ void qla2x00_fcport_event_handler(scsi_qla_host_t *vha, struct event_arg *ea) } spin_unlock_irqrestore(&vha->work_lock, flags); } -#else - { - int rc; - fcport = qla2x00_find_fcport_by_nportid(vha, &ea->id, 1); - if (!fcport) { - /* cable moved */ - rc = qla24xx_post_gpnid_work(vha, &ea->id); - if (rc) { - ql_log(ql_log_warn, vha, 0xd044, - "RSCN GPNID work failed %06x\n", - ea->id.b24); - } - } else { - ea->fcport = fcport; - fcport->scan_needed = 1; - qla24xx_handle_rscn_event(fcport, ea); - } - } -#endif - break; - case RSCN_AREA_ADDR: - case RSCN_DOM_ADDR: - if (ea->id.b.rsvd_1 == RSCN_AREA_ADDR) { - mask = 0xffff00; - ql_dbg(ql_dbg_async, vha, 0x5044, - "RSCN: Area 0x%06x was affected\n", - ea->id.b24); - } else { - mask = 0xff0000; - ql_dbg(ql_dbg_async, vha, 0x507a, - "RSCN: Domain 0x%06x was affected\n", - ea->id.b24); - } - - rid = ea->id.b24 & mask; - list_for_each_entry_safe(f, tf, &vha->vp_fcports, - list) { - id = f->d_id.b24 & mask; - if (rid == id) { - ea->fcport = f; - qla24xx_handle_rscn_event(f, ea); - } - } - break; - case RSCN_FAB_ADDR: - default: - ql_log(ql_log_warn, vha, 0xd045, - "RSCN: Fabric was affected. Addr format %d\n", - ea->id.b.rsvd_1); - qla2x00_mark_all_devices_lost(vha, 1); - set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); - set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); - } break; case FCME_GNL_DONE: qla24xx_handle_gnl_done_event(vha, ea); @@ -1709,11 +1627,7 @@ void qla_rscn_replay(fc_port_t *fcport) ea.event = FCME_RSCN; ea.id = fcport->d_id; ea.id.b.rsvd_1 = RSCN_PORT_ADDR; -#if defined BIGSCAN & BIGSCAN > 0 qla2x00_fcport_event_handler(fcport->vha, &ea); -#else - qla24xx_post_gpnid_work(fcport->vha, &ea.id); -#endif } } From patchwork Fri Jan 25 07:23:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780725 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 2E661922 for ; Fri, 25 Jan 2019 07:25:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14C442EF03 for ; Fri, 25 Jan 2019 07:25:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 092F32EF78; Fri, 25 Jan 2019 07:25:40 +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,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 8F8982EF03 for ; Fri, 25 Jan 2019 07:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728524AbfAYHZj (ORCPT ); Fri, 25 Jan 2019 02:25:39 -0500 Received: from mail-eopbgr680088.outbound.protection.outlook.com ([40.107.68.88]:42304 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728517AbfAYHZj (ORCPT ); Fri, 25 Jan 2019 02:25:39 -0500 Received: from BYAPR07CA0053.namprd07.prod.outlook.com (2603:10b6:a03:60::30) by BYAPR07MB4758.namprd07.prod.outlook.com (2603:10b6:a02:f0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Fri, 25 Jan 2019 07:25:34 +0000 Received: from DM3NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::209) by BYAPR07CA0053.outlook.office365.com (2603:10b6:a03:60::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.18 via Frontend Transport; Fri, 25 Jan 2019 07:25:34 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT009.mail.protection.outlook.com (10.152.98.115) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:33 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:31 -0800 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 x0P7OUtF003600; Thu, 24 Jan 2019 23:24:30 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7OUvU003599; Thu, 24 Jan 2019 23:24:30 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 13/13] qla2xxx: Update driver version to 10.00.00.13-k Date: Thu, 24 Jan 2019 23:23:51 -0800 Message-ID: <20190125072351.3504-14-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747340864469;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(396003)(136003)(346002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(105606002)(106466001)(8936002)(81166006)(81156014)(8676002)(68736007)(85426001)(486006)(4326008)(36756003)(14444005)(476003)(126002)(97736004)(305945005)(47776003)(53936002)(336012)(11346002)(50226002)(2906002)(2616005)(26005)(446003)(87636003)(76176011)(48376002)(498600001)(356004)(50466002)(26826003)(86362001)(316002)(54906003)(110136005)(16586007)(42186006)(80596001)(36906005)(1076003)(4744005)(51416003)(69596002)(6666004);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4758;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT009;1:0dUA6K9MSJ9657ducgg8OlsNcv68HBjjouPa8H1FczNlZ4zETxFCZUwUngo2zgNzg4fyIawH0eTy77jU85OkDVArzgeWSA8L/8FkdmOrH1Jp5x2lVR8UWG7cJaVat5LAjhvUp5RibLit+N/km965Pw== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1bb7a2a7-1cdb-4b7d-c3ae-08d682964b5b X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BYAPR07MB4758; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4758;3:kDGVyxTIIH6ga+QI/b5VXNtm2dQlJ0h+q+TWiQSEz2uaIzb8FkxqHcqe1zQst823tKj/1AuYWKBmmWIkRJ6+47ZYeoZsAJ+fRG3uaq70uGRIYSOeHHcSFUKAifwIgHACbMQaJC+3hkWGFoAGUkKQxBnQKHjojvR/tnYcvBjHG7GWfXv4mWf0julmo6D7zaeKfYASO7vGDXCj44EFooe5vmG4uBlKor4R0OErCxmEbsOba1uMrkKIJSsx1KltuuvqQ29ZKg5Z59zAgvFGYSeHgFGct7vy47IefnHaLq2VmGEaYM6n4oJHw35VuElIfYdm2Auy3oFXiVbdMpZWkkA3IYZrg23I1IhwIJMxQ/QB0ajuf1mYaLxDyTuYNjtzckTi;25:9enVQ0Pvc/URfOkkBRl7QSNC2CPgvFn1+Dfd2DhiKai4sZxG4bk1Dw+HIV2+fVBg3BDdJwvhKaptxjc7IyBkDu4D9gVj/4rBVcxUEG5bRd2cgHYTfHJj6/9SUWYfJs8G8VlFrfsLkE5moUr0dAuwOvPkkbPHkXpCGWMpANfxJwf+9ZkLe/Z4uIbQaO/MA2TPd0HdhE3sqqAWnjJYVlEIq4bZwr7t7qO9xrxI1JLULr2tUSW0hdbQ3i+ccMLwLolkRlWYr9kH1VV0brw8r/oza1sRVgy+FXlnMGQymYZGVrdku2n+7vOaM4vFZJjW4EV7nVzRPNfWY9zZV4NI1ruD0w== X-MS-TrafficTypeDiagnostic: BYAPR07MB4758: X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4758;31:+Qu5Mh3MNevSKn5phdlF8hK2Xmxhu32YCk+bZVtXvrGnU4rF9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 07:25:33.7111 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1bb7a2a7-1cdb-4b7d-c3ae-08d682964b5b X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4758 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 ca7945cb959b..537098e8f1c1 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.12-k" +#define QLA2XXX_VERSION "10.00.00.13-k" #define QLA_DRIVER_MAJOR_VER 10 #define QLA_DRIVER_MINOR_VER 0