From patchwork Tue Mar 26 07:38:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurav Kashyap X-Patchwork-Id: 10870499 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 64BCE15AC for ; Tue, 26 Mar 2019 07:39:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E39C28FF1 for ; Tue, 26 Mar 2019 07:39:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4257328FFE; Tue, 26 Mar 2019 07:39:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,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 C8A0728FF1 for ; Tue, 26 Mar 2019 07:39:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbfCZHjE (ORCPT ); Tue, 26 Mar 2019 03:39:04 -0400 Received: from mail-eopbgr800048.outbound.protection.outlook.com ([40.107.80.48]:36250 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726266AbfCZHjE (ORCPT ); Tue, 26 Mar 2019 03:39:04 -0400 Received: from DM6PR07CA0040.namprd07.prod.outlook.com (2603:10b6:5:74::17) by BYAPR07MB5366.namprd07.prod.outlook.com (2603:10b6:a03:64::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Tue, 26 Mar 2019 07:39:01 +0000 Received: from DM3NAM05FT049.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by DM6PR07CA0040.outlook.office365.com (2603:10b6:5:74::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1750.15 via Frontend Transport; Tue, 26 Mar 2019 07:39:01 +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 DM3NAM05FT049.mail.protection.outlook.com (10.152.98.163) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1750.4 via Frontend Transport; Tue, 26 Mar 2019 07:39:01 +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; Tue, 26 Mar 2019 00:38: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 x2Q7cxSL026827; Tue, 26 Mar 2019 00:38:59 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x2Q7cwBq026826; Tue, 26 Mar 2019 00:38:58 -0700 From: Saurav Kashyap To: CC: , Subject: [PATCH v2 00/26] qedf: Misc fixes for the driver. Date: Tue, 26 Mar 2019 00:38:32 -0700 Message-ID: <20190326073858.26792-1-skashyap@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131980595413449130;(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)(346002)(396003)(376002)(136003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(47776003)(42186006)(8936002)(68736007)(26005)(50226002)(51416003)(2351001)(105606002)(106466001)(2906002)(81166006)(305945005)(26826003)(498600001)(36756003)(81156014)(87636003)(97736004)(53936002)(316002)(1076003)(6862004)(36906005)(80596001)(69596002)(4326008)(85426001)(86362001)(48376002)(50466002)(14444005)(16586007)(336012)(54906003)(356004)(126002)(8676002)(476003)(6666004)(486006)(2616005)(5660300002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB5366;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c42a50e8-a1d8-4d1b-e800-08d6b1be1d52 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:BYAPR07MB5366; X-MS-TrafficTypeDiagnostic: BYAPR07MB5366: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 09888BC01D X-Microsoft-Antispam-Message-Info: UjrOD09jhu5pDtHrzjsyPMayjWfMwAV0yfOtfucGGCuaiDTL7n8FPGFuHZABU9QscgvSQsayCNry1jh7F77QzZEeL+WJUnNcbripWDkC3ofIb4DL9eUhVC3wJ1keeGZoXyBQ2Q77FcvI6HvMJJT8YdD4b/Kw0H+vnwI+t7lq6oJ0OF0Ak9wEvaXPMWNRUF32uU2PkwmbUrbLxnaaVkbIgax2E98+SwL/AvD9vABsii3fo3PvPlJOMghoTNp0qdqk2pGzPwqMSIaHqGZEmv0muZhNpIpWYefavYcGKa84HV9yPCL0pfsf/fNT8OVcc0rNGkDy/ISbfn0zpRv/YYE5MXb4+LTMarEgNVArP4XT40fwz8VzWgGUmjwKHBeoD3lMjEgS9qzfFf8xm/1fQATEJdFj8Y9/QewBYuUFYZhvAhU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2019 07:39:01.0056 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c42a50e8-a1d8-4d1b-e800-08d6b1be1d52 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: BYAPR07MB5366 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 has misc bug fixes and code enchancements in flush routine, abort and TMF path. Kindly apply this series to scsi-queue at your earliest convenience. Changes from v1 -> v2 - Fix sparse warning for patch #4 Thanks, ~Saurav Andrew Vasquez (1): qedf: Correct the memory barriers in qedf_ring_doorbell. Chad Dupuis (10): qedf: Do not retry ELS request if qedf_alloc_cmd fails. qedf: Correct xid range overlap between offloaded requests and libfc requests. qedf: Add missing return in qedf_post_io_req() in the fcport offload check. qedf: Simplify s/g list mapping. qedf: Use a separate completion for cleanup commands. qedf: Add missing fc_disc_init call after allocating lport. qedf: Add additional checks for io_req->sc_cmd validity. qedf: Wait for upload and link down processing during soft ctx reset. qedf: Add missing return in qedf_scsi_done(). qedf: Check both the FCF and fabric ID before servicing clear virtual link. Hannes Reinecke (4): qedf: missing kref_put in qedf_xmit() qedf: fixup locking in qedf_restart_rport() qedf: fixup bit operations. qedf: fc_rport_priv reference counting fixes Saurav Kashyap (7): qedf: Modify abort and tmf handler to handle edge condition and flush. qedf: Check for link state before processing LL2 packets and send fipvlan retries. qedf: Don't send ABTS for under run scenario. qedf: Check for tm_flags instead of cmd_type during cleanup. qedf: Correctly handle refcounting of rdata. qedf: Fix lport may be used uninitialezed warning. qedf: Update the driver version to 8.37.25.19. Shyam Sundar (4): qedf: Modify flush routine to handle all I/Os and TMF. qedf: Don't queue anything if upload is in progress. qedf: Add a flag to help debugging io_req which could not be cleaned. qedf: Cleanup rrq_work after QEDF_CMD_OUTSTANDING is cleared. drivers/scsi/qedf/qedf.h | 51 ++- drivers/scsi/qedf/qedf_debugfs.c | 2 - drivers/scsi/qedf/qedf_els.c | 72 +++- drivers/scsi/qedf/qedf_fip.c | 76 ++-- drivers/scsi/qedf/qedf_io.c | 736 ++++++++++++++++++++++++++++++--------- drivers/scsi/qedf/qedf_main.c | 249 +++++++++---- drivers/scsi/qedf/qedf_version.h | 8 +- 7 files changed, 903 insertions(+), 291 deletions(-)