From patchwork Thu Sep 27 05:05:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10617267 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 586A8174A for ; Thu, 27 Sep 2018 05:21:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4708F2AAF2 for ; Thu, 27 Sep 2018 05:21:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AAB72ABC6; Thu, 27 Sep 2018 05:21:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C3562AAF2 for ; Thu, 27 Sep 2018 05:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbeI0Lhg (ORCPT ); Thu, 27 Sep 2018 07:37:36 -0400 Received: from mail-cys01nam02on0064.outbound.protection.outlook.com ([104.47.37.64]:64320 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726631AbeI0Lhg (ORCPT ); Thu, 27 Sep 2018 07:37:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XmOs9GPXpvS5ovuzIZfyEj3lz+wYl2Zvu5b9nx0oPJk=; b=eP1U05jk6mhv+qc+FrPGi3OHsRB7eeIrIubox527SD6bv8WHl3Ncyxqm+mrkz0gY3gA3eokUZO3Ra/lmKS0hEZTD19CVwbjMIj/Mq/u9J45821ql2HNcLaLWd/M5HMjPGXKdHBsFQUW4bK2AnVNP2QmW6pgoVy2KnVJKZa7ATuY= Received: from CO2PR07CA0052.namprd07.prod.outlook.com (2603:10b6:100::20) by SN1PR07MB1455.namprd07.prod.outlook.com (2a01:111:e400:5838::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.19; Thu, 27 Sep 2018 05:05:22 +0000 Received: from DM3NAM05FT007.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by CO2PR07CA0052.outlook.office365.com (2603:10b6:100::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1164.22 via Frontend Transport; Thu, 27 Sep 2018 05:05:22 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by DM3NAM05FT007.mail.protection.outlook.com (10.152.98.113) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1185.5 via Frontend Transport; Thu, 27 Sep 2018 05:05:21 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Wed, 26 Sep 2018 22:05:19 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w8R55JDf007182; Wed, 26 Sep 2018 22:05:19 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w8R55IHS007181; Wed, 26 Sep 2018 22:05:18 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 0/8] qla2xxx: Bug fixes for the driver Date: Wed, 26 Sep 2018 22:05:10 -0700 Message-ID: <20180927050518.7147-1-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(396003)(346002)(136003)(39860400002)(2980300002)(438002)(199004)(189003)(110136005)(54906003)(106002)(305945005)(1076002)(80596001)(69596002)(51416003)(356003)(8676002)(81156014)(81166006)(5660300001)(87636003)(50226002)(8936002)(36756003)(72206003)(478600001)(42186006)(316002)(16586007)(106466001)(6666003)(47776003)(86362001)(476003)(14444005)(186003)(336012)(4326008)(2616005)(126002)(26005)(44832011)(50466002)(48376002)(2906002)(486006)(34290500001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB1455;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT007;1:6bCf5whogyCQqkLDmRGMGFYKvoo22lniLoL5ECIhFp2nVBde7ZbSoaroMwZ4QoGWHLd1Tw2NCAvcv9Qv/N0lDjOYO9vzMxnFri3Qw6FEA/h5dQKfRaWzg+4CE75jaHVD X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d68822f-aa19-4f9c-0978-08d62436d3e7 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:SN1PR07MB1455; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB1455;3:rnR+S4dI77AhqilAeZaZM5VpcmrqHBSGAYNtqtRdZX8uFkREy1b/Mq8wX1iQ83S+BtLj8veYMJQGn5y0fRmKBdvpdjmK/N6uTKGms8NJp8CYOskKxbAI7H2sjwch3xEPMFToSW9sNYaap+0duLCAjuxTfDD/wMDj3vSdWj90FEo0nF/LQaWiO8qwCl8ICMCb0GW4sgbcSDsOs5LqdbJ7/I12RwKiN4Zw5HNiLFLNu3e7339TLEq4Az83MZUkCt6r4ARbspvfeiNc24HnGi5JF8rKvXAGfCOk4TuZuTOUXbanKOadayCxGbNbXfOiADrJhQGu0B+1s+eY2fLTQ13ruZTv4efQyeyawDRm4Fu2OK0=;25:R+IrSQfTsc+Fng8XVthO0IOMISf794wkqn8oMoQROdAOG2Z1gTE6df7JnV5hp73zf7wkRKRvoedsrcX2qL+QBNA9+eFf3b2iG0w/0Yqbb/howkrYlAP+QjSCSHrLw5RyOBybAg1TC3UoFZjC6wQXtxpZa59VcV6TsXsVHwlAvBB9Oxl8Nzhbp6XQ7nUJ79VY4YkJqeEvsV3gDr4SRO6N59YVCGuHdIKz9QV7R3KqBIzBo7TgSVlFofGu5lDJTzTmpuFN4jraFlba+nVr9sJcbdab5XpfiqUe3/pLXup4SebOFbQmNDaJDrBjVxw8DpNqXjy61q8Pnwd/yzqABVZQHQ== X-MS-TrafficTypeDiagnostic: SN1PR07MB1455: X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB1455;31:Li5sCEgXJ+RSTiuNJvbe48c3blU00OnBFVYc2hJ3/s9EiDsWC6nd6gKOZ7ikourKg0As8AbiMipOi8ZEJLvHQg88Lpho5gxaOb0C+4jQ+avfhjQ7TrYCS37n0gn8lmACb7dNUBj7cNrzuelib9I8naqAVcjXNqEGK7B3bknzjVOfWVWgn5RAwVgo8l6pLfBcnJ0/29k+yX8GPaHlcE+M0Tmm6L2QYObMAIRcMLYe/x4=;20:OqdMYoJ1MJ4jo3+qxSQS3ogKc6W4r1Ihr3CSlYggPIXnfGFhFRI6WQIlUJSpoEAq8hCNofOOazqhW+UA/azMNkFaI2KC25+duuzN0mwyqp0PZrPIhiRdjMwLKse1WDmKVQjDJJP+wehh6Z9U07rqbuJaN9vGGFc9S5VxP7X6xQzhtYLH1spxu9Sz63oJPKia+ekLKFhdb0LHSy0eaS2+nWsgZls5m5Yhvar0+8M5eRSMkfTdp9wyJ8GQva2Mp3/90kp0519l4u3Kw1eUShNVvl3S/GrBOUVqXJ6AmD/BrxDgrbriLFB013aSXPc8u7OOF8JMj6MlTtgDUiHJy34mIGUjphVLoa1m9CU0WflG8xjxd69FPo5rkEFjxL9ABaRfjMVqoQJUhhgiPmAbSgjhR+/Yui8FV7JuP4MjfCEWTqX1QlxXdtMq2tztNCr5xibCz5oPvPqLPKRmwyrcfTJKWZGMm+c/wc5nwo5hryfC2d0MR3TYDt8D6L/cqlDPLUEu X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93004095)(3002001)(10201501046)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:SN1PR07MB1455;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB1455; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB1455;4:RinWYx6NCFwvjtpEUlwX7cDP4eG0iB3d/z6aWd7W7wu4X54uHsfABHLPU74Kh01767shsaOzXE1IqMNE9bHmpIxfW91SSBhh8xi7NtNibWIljqB5oRdLWyURYsy1tWyw/9zK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0EN2JLER63v9j0EUtY0liXiDuXGLfsuNiipdRGZa21Jkzl3peOvL1nPXiDHSoFN+w==;5:YxaL3ETxzAmxEVaKJuWXAR8737drZoTGbnM0s0cb3bOF/JlOwGav6KqfMMx8OMIyoR4Fbuw+wkUU9V8t8Ap7mBtZCzH9I0mooTkWr8jkygM5ZCtVHxrNBSW2sB8mfo0Bjjj+3kSpzZNhAjXbPiw77C3bb6clwLD/qycUVuc5xks=;7:KSGyFyNoHTNrowGQ6sUZ9ps7/WdAid7ZtOs5fjSDNlJI2DW2O9qeuE0W9druLv+KGyxM6dFW9bHprsxzMykHuxwvlYQzPBQomdf7Gn9PlVhVx+0RJl/R1Hko38F+5rG+mQVjqVLwo6THrsePbFC+lBe0x/byzVy12Mid4aAuIwfrjIhvf0MSgU5owmTq/4wfItvbpa1uli0MNnhjPdn9Gu8awTFr7kjVRCkKk6ak+VCEZAIQEowl0Ywy5B4EVPlP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 05:05:21.8502 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d68822f-aa19-4f9c-0978-08d62436d3e7 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB1455 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 Hi Martin, This series fixes issues found during out last test cycle. Patch 1,2 and 5 fixes misc NVMe discovery and unload hang in the driver. Patch 3 fixes issue discovered during BFS test setup resulting into installation failure and hand because driver could not discover BFS Luns. Patch 4 fixes case where driver was not clearing up Loop ID resulting into PLOGI failure. Patch 6 was corner case which could lead to recursive mailbox timeout. Patch 7 and 8 are fixes for SRB double free. These patches were made against 4.19/fixes branch. Please consider this for next rc inclusion. Thanks, Himanshu Giridhar Malavali (2): qla2xxx: Fix for double free of SRB structure used in Async switch query commands qla2xxx: Move log messages before issuing command to firmware Himanshu Madhani (1): qla2xxx: Fix driver hang when FC-NVMe LUNs are configured Quinn Tran (5): qla2xxx: fix nvme session hang on unload qla2xxx: Fix NVMe Target discovery qla2xxx: Fix duplicate switch database entries qla2xxx: Fix re-using LoopID when handle is in use qla2xxx: Fix recursive mailbox timeout drivers/scsi/qla2xxx/qla_gs.c | 24 +++++++----- drivers/scsi/qla2xxx/qla_init.c | 81 ++++++++++++++++++++------------------- drivers/scsi/qla2xxx/qla_mbx.c | 2 +- drivers/scsi/qla2xxx/qla_nvme.c | 5 +-- drivers/scsi/qla2xxx/qla_os.c | 4 +- drivers/scsi/qla2xxx/qla_target.c | 3 +- 6 files changed, 62 insertions(+), 57 deletions(-)