From patchwork Fri Sep 14 21:28:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10601253 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 DC51C1750 for ; Fri, 14 Sep 2018 21:31:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C34FC2BC37 for ; Fri, 14 Sep 2018 21:31:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B78202BC53; Fri, 14 Sep 2018 21:31:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E8502BA24 for ; Fri, 14 Sep 2018 21:31:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727749AbeIOCrY (ORCPT ); Fri, 14 Sep 2018 22:47:24 -0400 Received: from mail-eopbgr700082.outbound.protection.outlook.com ([40.107.70.82]:64784 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726969AbeIOCrX (ORCPT ); Fri, 14 Sep 2018 22:47:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nx+vMzXNhBijespSw+IYB5j/BcUUxmAN8L2A6LAswfY=; b=jHhwdfg3xH7SdHn8vj924FtbAy0S0GFh0gxfeVQ4SZQIGJ6YTpaderfTif4Z0icVM75AoMHHu6iHHbeMqs882yhUpSVcwwDymJ9vlwaOI97xD2fLdk6tKSo/TD5Is3lR0PpI44jOz2J4MqAwlegR8F1OE62GLpffiZjj3OZ4MVs= Received: from BYAPR07CA0032.namprd07.prod.outlook.com (2603:10b6:a02:bc::45) by BN7PR07MB4387.namprd07.prod.outlook.com (2603:10b6:406:b6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Fri, 14 Sep 2018 21:28:13 +0000 Received: from BY2NAM05FT006.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::202) by BYAPR07CA0032.outlook.office365.com (2603:10b6:a02:bc::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.16 via Frontend Transport; Fri, 14 Sep 2018 21:28:13 +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.1164.5 via Frontend Transport; Fri, 14 Sep 2018 21:28:12 +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; Fri, 14 Sep 2018 14:28:12 -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 w8ELSB5X011498; Fri, 14 Sep 2018 14:28:11 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w8ELSBtP011497; Fri, 14 Sep 2018 14:28:11 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 0/6] qla2xxx: Add FC-NVMe Target support Date: Fri, 14 Sep 2018 14:28:05 -0700 Message-ID: <20180914212811.11463-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)(396003)(376002)(346002)(39860400002)(136003)(2980300002)(438002)(189003)(199004)(486006)(6666003)(51416003)(356003)(110136005)(36756003)(42186006)(81166006)(5660300001)(81156014)(305945005)(48376002)(54906003)(50466002)(106466001)(8936002)(16586007)(44832011)(316002)(87636003)(106002)(336012)(478600001)(1076002)(69596002)(186003)(126002)(26005)(14444005)(4326008)(47776003)(50226002)(476003)(2616005)(80596001)(2906002)(8676002)(86362001)(72206003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4387;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM05FT006;1:xP1QPibHEKp/p2cAjakcJI84ufb7iLIgrP5WRgvvr9kKZHw3AebrnElAuefaBrUFmZ17nghr+Oojrm6qDkZgh5dMSeWyJGyJqt5YN14ZqyaSQjf0FuOf3IkqeIU/ofK2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4cc318b-8910-4132-8d52-08d61a88fa04 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR07MB4387; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4387;3:6V++kN/5GCsV02egYYzIIvCNhvSen4FT/Q32aqxs7SDDPvQOeHnJ1z85bwT6MCMgKaadVDhnOodZvpqII4ZAGmy+IIImFxB4xTPffjwgvBGLukw/wdkNBQj1Y7gWW+O23Mj4BqHgPj7hDNYGh+S48IAdSGgVqICHXhRHsYCDbXzKqXw3+O/TY/8ipdCF7nEwTpcq03cNn8E0++aYzM9nsdq0WdGSoLJ14CIRsyqQNECo0osx+f8PCv8UINRcLH+72EI1cFgaYXLaFI26trbFxB+kxZQ7hKLaBkuRlSZf4rS+uMny81ZZgMzitvBLeAU9NUqQqRqB0aXPVNT9oV4DSl2ohU5ukLrG7oUl58jo8m0=;25:D1z5pey3Bk5Ko/8kVQxkDRjn37wrVYmME3V3IgqneaNm8IsxgZZrT5m/RBzuEF8V+2N16GHdGAmVcSPTJ2pvWJGbY+AqwgzYXfVZLoNNrKOZcxPU5PrAEhMhyvCC554cHDCjIUUlti/BP1qZUzl5Lx9+P5FJ9ziuNa4CS96ls/DgXrn/GK3zBqLAij+1c66jeQlW8hwHFI8ygyibYvP+4Bm+9nON/3+JyhO6FWgq5+4xfVCGnsTHCFyJ8y551nKnYZ028+JU88OJWErzYrnj6KafbmvIK/onSguLpe3kKoFaeNUaUV5n7isKmXKQbMpZo+qRPJGk6diQryNOxL4bOQ== X-MS-TrafficTypeDiagnostic: BN7PR07MB4387: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4387;31:LCcsETI/bo4eqNeJsSRi8q4kNnYcWPdMWNygTBLK07gNN8N5kFUE9rLErhCAIBZsUls55nVqqxY23wLtU0psOPFHsFbaFz2T++zLJcFldY+QiVVdCghqQXIZ+DYrH+dc/5OK1O5FpL4q18xLl3bQvXWZJBAfw9xUww7spWbyH3s8boGSgeXuo6olg880XWJFEFJ9XlP23gfUYrDAw0qC8DLFasubZsARqTh4h5J+9MU=;20:2FyPgoD/GTNTMk1gKoLCHtPhBbIlQm02wfofE+Dcum9JxnnPEFAeOlcE7+C1mI9N1h9dhq/pdcc3uyyEgJHY+OYpQKkAdNOsfbDi9kNHviVGhitEpzGM6eIhLilCWP/c2X/nBCXqG8U9u7pfEPo7YCd8vYhmXt/ZSeb1uWBg1a9FnV/6PU1MzNas+AzoKoH1neruJjyF9x0UgEhKeh5iV0hvO5rViJQEV283M7mJPjeH9xDPspaunFC/k+QHOl1XY+kVmbBA4V9H2ySx+EPWFSQGeqBMdQn6T8UdZRam8/9Laxq4Vnfhg6IOSqT+Js0opUf2XDwk8pe7lCfqPRaNqUl1EttEo8LsdI8olzd5ojZqvyizXbaHc34o2Y725ulFmPdPEXj9pzSIWMHSM/58GtCG4OtNUeQxWqWN4hBgn7T9nybakp8RFB5i7UhBe6kJ9Svg46OgpRCI7aaPiobOjV8IDh0Bx3PAb9wGu2qG8XWQQRQLySz14b0KU+KFaA+7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699050);SRVR:BN7PR07MB4387;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4387; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4387;4:iZxdGgSnd3nTjSwQFLtW4xzPgrURJwXtftBj3WADszUdMnRmg3Z5WcDkNvM3Vk5DxZE6UA82JO4pbzu1uX/3w+8iDzOkv9LH6Ou0+BaYXvRTNaiJTRdVCZfM4G99KK3zXLdv8c6hRmlp33drCZeL9atgfVEh0WG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TP6bc9oDEF2UA==;5:jfskeKRgS7XVbGgqN1JEubNiUjIIJ7lAV+zUkMBtJhin71qJpL4MtQMEpAdBL/ELHYYzFbQLEQscAPOonpO0w2ZO69qyDjQKyOKfGTvdnlkbbAtEXpDskKG19igGbI+gQS33/VZ7mkDvpHgWa9wFcGRBVkbtyDvsPbwmpfbNaJQ=;7:1Rg0xDDx12CaFecjn0RZyH3f4eCnLzFtpuSzAZNz1C7ZWQJoA+hvA/HLLqgqcHCROYwMwbyJfsyYbH1B/ORlB/Dh0jnNYQXv5XOfr+guz7DXwc6cMxHss7TBQc4CxqKsMjFzwaS5tFvSRLYyB6V9ZxMyE/wo0zkSlgspkll/ixX7Ez+us8+BPpkNMJAwPiF2cYVkxt6eQ4x+WyIvbWIi9ggaLqWPqbMh86RfQ5pIvsCi3QXAPNfkaqhTVG3/M416 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2018 21:28:12.9792 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4cc318b-8910-4132-8d52-08d61a88fa04 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194;Ip=[50.232.66.26];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4387 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series adds support for FC-NVMe Target. Patch #1 addes new qla_nvmet files for FC-NVMe Target support. Patch #2 adds Kconfig and Makefile changes to prepare code compile. Patch #3, #4 has bulk of changes to handle FC-NVMe Target LS4 processing via Purex pass through path. Patch #4 adds SysFS hook to enable NVMe Target for the port. Note: All the patches in this series must be applied before they can be compilable. Please apply them to 4.20/scsi-queue Thanks, Himanshu Anil Gurumurthy (5): qla2xxx_nvmet: Add files for FC-NVMe Target support qla2xxx_nvmet: Added Makefile and Kconfig changes qla2xxx_nvmet: Add FC-NVMe Target LS request handling qla2xxx_nvmet: Add FC-NVMe Target handling qla2xxx_nvmet: Add SysFS node for FC-NVMe Target Himanshu Madhani (1): qla2xxx: Update driver version to 11.00.00.00-k drivers/scsi/qla2xxx/Kconfig | 1 + drivers/scsi/qla2xxx/Makefile | 3 +- drivers/scsi/qla2xxx/qla_attr.c | 33 ++ drivers/scsi/qla2xxx/qla_dbg.c | 1 + drivers/scsi/qla2xxx/qla_dbg.h | 2 + drivers/scsi/qla2xxx/qla_def.h | 35 +- drivers/scsi/qla2xxx/qla_fw.h | 263 ++++++++++ drivers/scsi/qla2xxx/qla_gbl.h | 17 +- drivers/scsi/qla2xxx/qla_gs.c | 16 +- drivers/scsi/qla2xxx/qla_init.c | 49 +- drivers/scsi/qla2xxx/qla_iocb.c | 42 +- drivers/scsi/qla2xxx/qla_isr.c | 112 ++++- drivers/scsi/qla2xxx/qla_mbx.c | 101 +++- drivers/scsi/qla2xxx/qla_nvme.h | 33 -- drivers/scsi/qla2xxx/qla_nvmet.c | 778 +++++++++++++++++++++++++++++ drivers/scsi/qla2xxx/qla_nvmet.h | 129 +++++ drivers/scsi/qla2xxx/qla_os.c | 77 ++- drivers/scsi/qla2xxx/qla_target.c | 977 ++++++++++++++++++++++++++++++++++++- drivers/scsi/qla2xxx/qla_target.h | 90 ++++ drivers/scsi/qla2xxx/qla_version.h | 4 +- 20 files changed, 2689 insertions(+), 74 deletions(-) create mode 100644 drivers/scsi/qla2xxx/qla_nvmet.c create mode 100644 drivers/scsi/qla2xxx/qla_nvmet.h