From patchwork Thu Aug 2 20:16:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10554171 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 A29461708 for ; Thu, 2 Aug 2018 20:17:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E47C2C444 for ; Thu, 2 Aug 2018 20:17:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 812F62C48D; Thu, 2 Aug 2018 20:17:22 +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 950092C444 for ; Thu, 2 Aug 2018 20:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730196AbeHBWKB (ORCPT ); Thu, 2 Aug 2018 18:10:01 -0400 Received: from mail-sn1nam01on0085.outbound.protection.outlook.com ([104.47.32.85]:55901 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727047AbeHBWKB (ORCPT ); Thu, 2 Aug 2018 18:10:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5QdRcw8BG3R7PmDl3IzkLLgjnKrbtAvOLIx70HJ/uE8=; b=En6/OyVPGU2kT+VIxWd4yw36nqAPyJzArnxzuKoZ1W7JpUV4Za2QFayMJW45hcctyfkMG5x9YrwWaIAVQdmjbc6uC2ZbkQkpadVodtxOK1KRCOW6te+OVrGdix/TSsp4qWsehuuMClWbVVhEhb/iDn+zEnsO9ZIAN4S0utb+Rh0= Received: from DM5PR07CA0085.namprd07.prod.outlook.com (2603:10b6:4:ae::14) by BY1PR0701MB1383.namprd07.prod.outlook.com (2a01:111:e400:4810::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Thu, 2 Aug 2018 20:17:00 +0000 Received: from BY2NAM05FT006.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::202) by DM5PR07CA0085.outlook.office365.com (2603:10b6:4:ae::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1017.14 via Frontend Transport; Thu, 2 Aug 2018 20:17:00 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2NAM05FT006.mail.protection.outlook.com (10.152.100.143) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1038.3 via Frontend Transport; Thu, 2 Aug 2018 20:16:59 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Thu, 2 Aug 2018 13:16:59 -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 w72KGwGJ007938; Thu, 2 Aug 2018 13:16:58 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w72KGwWT007937; Thu, 2 Aug 2018 13:16:58 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 00/16] qla2xxx: Updates for the driver Date: Thu, 2 Aug 2018 13:16:42 -0700 Message-ID: <20180802201658.7903-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)(136003)(346002)(396003)(39860400002)(2980300002)(438002)(189003)(199004)(110136005)(186003)(36756003)(106466001)(2906002)(26005)(47776003)(86362001)(4326008)(80596001)(106002)(51416003)(69596002)(14444005)(54906003)(356003)(15650500001)(16586007)(476003)(50466002)(126002)(5660300001)(2616005)(305945005)(486006)(72206003)(316002)(6666003)(44832011)(42186006)(48376002)(8676002)(1076002)(81156014)(50226002)(478600001)(81166006)(8936002)(87636003)(336012);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1383;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM05FT006;1:xxZMNRk88vR/r9yDj/Hn7PPrAO+qNrvF/mbHxyUZcRtik0DBisT+izTjprb0bKlkVNCRYuphKFEupC2vQEvmIz0unYr7RpcGbAOttADiYoekE5/7yjcfwYRO2ODBprYl X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c48be790-23e0-4f2e-d884-08d5f8b4e729 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:BY1PR0701MB1383; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1383;3:WjTCDfhbGPkKvJZFZ0KHlwysLWg325GBVVDCwY4n1GUScIGl0shrUfR0zxU2TZigtui3RJgzIYwTogJ5dnlImxU5xl4OPZt9+FSzwtitI78YN05Ti6ZRLzyHTbGDGqNt0BUyhYGDDijyh/H8HrI5bykCVhYup6Jc7EMF935qMHANkqtXYKgqs0jfg97ZU55fd1UntWv2qTpv7qDfLj4DWPy+F2z0QNzGz4QZEBfTmlDdPo7OB1RbH70KOsWxtsM5kD+RXzSPZ/vB+KRzAwvJgz4g3F4zoVGucGeMncHwMh7N2vW7MNgBL4NrOI90yfD5/POzP4U7tDbh9L8LzadYw0QxsPyRhbiTfnIyhhH/Kv0=;25:oaD5HvSwcz7ALYbKjGmYDy70kIGY1HCruhExKHC0R3D4Ftm2Y61/tF4i3OXjXQr7rbmqWh4wSctbGhnv1OKwI3y3LfLKSNuOmCQF6gQhFGGCApsFBxUegr9xZ8puBYN709vKLFTH4FkcPZdUlC2w7aSN6mjgFqDIFazuXNEFSOZ0KePjaBVbzfPsIzRB5VNio55hym967zSA8E7GY9+R1aGwSlzOvCIZNdNcdUef6ERBzooDrxwjTUeb+RdbGvWjVDB7RWNJ0lQ/nMXv1bx9e6gW+J6cCaOuNnSfIpfKpRNyHyDbvJ5CA9fKApmUJRfKAJqG8pR0j1drUGTcwsrWcA== X-MS-TrafficTypeDiagnostic: BY1PR0701MB1383: X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1383;31:6HFGrh+Gb/TOdF6r0KedZBke3tS5lwdONk5YNa2yUk7VqtKNZtz1ATW12TlN5/3y63LPtYj2fBzScRy680UMPLo4ZlPVjxVXO+FZbnatXxpoTKVFSXG3tCKcmLeSbPueCrh5IWsdTHT2ufNn5uCVFqPhU1sFQvwKrl8+ralqkyl5Rnyq8pM3aK99UjsRcqX3OK8vgdJ5FfKFwxNlsKMmUeVDMF881vJLed1wFDwu4E0=;20:iUYOPKv8csNNeKw+7iARXV7piNHgIpNeLQR/JmtGzz8iRff/WyAyxkxX0+vo6nMFNsYqmUcN0e3PcrZoa301q1O+IcPv0aMJedPrjVl7L9aLaRJNTACg9P9B9Xx0w2wrZ4C4o2LxDYRep0a04cDC6pk4xM/iQNxPsEvSPU1NADfnyj4SVnNjYLQBrgf+GikvXSd48CysTw0gWMfilESA0cslW2dS3KDJB3BUujy6rVPkVLhUfqEZG2qcuZlvpW/mC0NaHFlsru9mD4zk6LyCvlxBpW1eDMzAxiWFRx2lNW8NcAJWn7TMLEe2/G/CiF/9ROMjBCE26+2JuSayB4kDPE90ghFnSFAejhNHtGc6ey3jgYv289A6w3+pp32u66Qppxb3R0h63iLtkSwAJhJuHyshMyPvFV5vglhdfUBlbl5UTQf0I15qpbXjKLYGOsOFWbf9IxoYM+BktBCzBxSO05ABrIxt31A1X+C7Sa1feVJsIzvN/U9NAwqoD1wWMffm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231311)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:BY1PR0701MB1383;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1383; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1383;4:Svmp7h5K8Wj5iwNAsxHzLvj2G5wrK2loBe9C6yGBer6xNkVMm4mM/p/W2fmbslwQXh44B9IgWVAFpoTOoKfF398NDSieyO8RxijRhTq4bTnwwlT0H+DAmh8porEZ9OG/cDB6uwzYofYJwB0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6KnDjnR6mJaJeeYhhKukq/JlZKoe3HW+aLtjrdZpW3dbu5rIw2ZeBQ1acsLzUJFakWkb8tBDYZM+TYyQA==;5:iaKYg/Toth/ZD7lHX9bQ3A5iV2ZBVWR8DyS63HEf0f1h7qUl177AS7RPGsueyNiqCmuBXJ6yHL975SL1LJPL0DLh0Uo146hSOpyZFwiemGNipdvVL/jnBsX3FczMACa+FF5KODPChpDuwl2cqMvElGLcUbtFw4WuUAUBDdc2HvI=;7:xg3NOh8KTNzW5e1OoEV64XUMdn+FNd4trRz6GMCy/ClrCJa38F4hSL32DHzvjH3slgG8O0TlIYblLDLyBBzXG7An01ux7UMLrI5xRr4LQGZ/0AjmwAREASGGiNJFbrWAClM9ggv7hJ+0eJ3pt6+Z6/KxOIunzKoJjSAB82ZRPFHoR4K21GLxBaJ4eBzifH/84ums/gGn1zLkSNuOrp3gpHItAfY6Tm1LvOZqF0K1BxtCprcfA+O5qOD9fvpzco/N SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2018 20:16:59.6842 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c48be790-23e0-4f2e-d884-08d5f8b4e729 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: BY1PR0701MB1383 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 patch series addresses issue with N2N connection for FCP and FC-NVMe by moving login to state machine and handle various state change. Please apply this series to 4.19/scsi-queue at your earliest. Changes from v2 -> v3 o Cleaned up warning Changes from v1 -> v2 o Rebased on 4.19/scsi-queue Thanks, Himanshu Himanshu Madhani (3): qla2xxx: Cleanup for N2N code qla2xxx: Fix stalled relogin qla2xxx: Update driver version to 10.00.00.08-k Quinn Tran (13): qla2xxx: Fix N2N link re-connect qla2xxx: Fix login retry count qla2xxx: Add longer window for Chip reset qla2xxx: Prevent SysFS access when chip is down qla2xxx: Silent erroneous message qla2xxx: Fix redundant fc_rport registration qla2xxx: Fix session state stuck in Get Port DB qla2xxx: Fix unintended Logout qla2xxx: Flush mailbox commands on chip reset qla2xxx: Fix Management Server NPort handle reservation logic qla2xxx: Fix race between switch cmd completion and timeout qla2xxx: Save frame payload size from ICB qla2xxx: Migrate NVME N2N handling into state machine drivers/scsi/qla2xxx/qla_attr.c | 33 +- drivers/scsi/qla2xxx/qla_dbg.c | 3 + drivers/scsi/qla2xxx/qla_def.h | 22 +- drivers/scsi/qla2xxx/qla_fw.h | 5 + drivers/scsi/qla2xxx/qla_gbl.h | 6 +- drivers/scsi/qla2xxx/qla_gs.c | 67 +++- drivers/scsi/qla2xxx/qla_init.c | 729 +++++++++++++++++++++++-------------- drivers/scsi/qla2xxx/qla_inline.h | 8 +- drivers/scsi/qla2xxx/qla_iocb.c | 153 +++++--- drivers/scsi/qla2xxx/qla_isr.c | 3 +- drivers/scsi/qla2xxx/qla_mbx.c | 155 +++++--- drivers/scsi/qla2xxx/qla_mid.c | 2 +- drivers/scsi/qla2xxx/qla_nvme.c | 15 +- drivers/scsi/qla2xxx/qla_nvme.h | 2 +- drivers/scsi/qla2xxx/qla_os.c | 133 ++++--- drivers/scsi/qla2xxx/qla_target.c | 15 +- drivers/scsi/qla2xxx/qla_tmpl.c | 13 +- drivers/scsi/qla2xxx/qla_version.h | 2 +- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 3 - 19 files changed, 889 insertions(+), 480 deletions(-)