From patchwork Wed Apr 25 13:08:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 10363177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E071601D3 for ; Wed, 25 Apr 2018 13:09:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B60B28DFA for ; Wed, 25 Apr 2018 13:09:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F39A828E02; Wed, 25 Apr 2018 13:09:48 +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 74D6628DFA for ; Wed, 25 Apr 2018 13:09:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753329AbeDYNJr (ORCPT ); Wed, 25 Apr 2018 09:09:47 -0400 Received: from mail-bl2nam02on0078.outbound.protection.outlook.com ([104.47.38.78]:39088 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754015AbeDYNJc (ORCPT ); Wed, 25 Apr 2018 09:09:32 -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; bh=epyK6UnLl15Ve0hD9Hxv9iha8z+bo7vWFpVZfjOjUzg=; b=J7h83wR+7Wghq09D03O8XQ4anBouhNkKSFRCUTJlfagtsb+qR2B59wTsS1oKkM27MJDEFkgnY7EfXb46+KV81XijjcE/4dpYdEsculU68fCoc/0TO8wvUpxQz8O3pjs7+cApNhPPpE9EDtCCzv0hN7CngIMBBVbNAH/JBELcZO4= Received: from BY2PR07CA0018.namprd07.prod.outlook.com (2a01:111:e400:7bff::13) by SN1PR07MB1518.namprd07.prod.outlook.com (2a01:111:e400:5838::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Wed, 25 Apr 2018 13:09:30 +0000 Received: from BN1AFFO11FD013.protection.gbl (2a01:111:f400:7c10::106) by BY2PR07CA0018.outlook.office365.com (2a01:111:e400:7bff::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.12 via Frontend Transport; Wed, 25 Apr 2018 13:09:24 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.com; 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 BN1AFFO11FD013.mail.protection.outlook.com (10.58.52.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.653.14 via Frontend Transport; Wed, 25 Apr 2018 13:09:23 +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, 25 Apr 2018 06:09:22 -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 w3PD98ja006460; Wed, 25 Apr 2018 06:09:08 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w3PD98bg006459; Wed, 25 Apr 2018 06:09:08 -0700 From: Chad Dupuis To: CC: , , Subject: [PATCH 10/21] qedf: Return request as DID_NO_CONNECT if MSI-X is not enabled. Date: Wed, 25 Apr 2018 06:08:54 -0700 Message-ID: <20180425130905.6385-11-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180425130905.6385-1-chad.dupuis@cavium.com> References: <20180425130905.6385-1-chad.dupuis@cavium.com> 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)(39860400002)(39380400002)(346002)(376002)(396003)(2980300002)(438002)(189003)(199004)(50466002)(486006)(476003)(2616005)(44832011)(446003)(87636003)(48376002)(478600001)(47776003)(186003)(11346002)(26005)(356003)(2351001)(126002)(36756003)(4326008)(336012)(72206003)(107886003)(51416003)(76176011)(86362001)(6666003)(106002)(69596002)(5660300001)(50226002)(80596001)(316002)(42186006)(16586007)(81166006)(81156014)(8676002)(54906003)(8936002)(6916009)(1076002)(305945005)(106466001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB1518; 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; BN1AFFO11FD013; 1:EcP3vK5qKxwmp7JnQoWhJ3m9OBmwiV47hXAJTW8/HfaYOgcJYz9M6OLmfZ0aQ06qi0a5oo43yGyNY5rMcYdBhh80LOTaG6nNaoPZ1luvTnfiPCbELMUg3GOd2nYrWBpD X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:SN1PR07MB1518; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1518; 3:gzEIoxFu+APqNfWrG3C3GLm6B9PX2HqJTAbXdrSNo66XRIgM6KcnYxNGWWLDLorDKcz1o2+eOuscYl4jn1g+Xtc4fBC20tEjSXVFEmdaiAbXp+Vn6GDkA3mIQw93QN6uJ3jXT9GYKVfvjmSVZTFmPGC2kQbaasPntdOBW8MZRWE4TJLmDHhNKZUD5URXzv+GJbhf6UTaClBCdgXSdfdnaWvD0c0sFnFCNeezJNVghNvskZgA51DzRBO1cAi+qD3/vVBlw3FByKwErSt7FnzptyQxulAnInTQiiFKVAsIR0dYoocxntD7ejIS+K4V7JyXTGbZmOpB6J6r2tmsu6cJYLrBywts3/aU/c81fNo47kM=; 25:YQ0mF983k2Au1zK/ZjCPtJ6UXL+AEPmZo+RLS8iWmQ5RiJbF/3Okl+mcQUbyqNy3WPofA8YMMBKK9eNkNsw4fzCZh/6CaxHEEo5b+k0Ns7TwiDHhnk5VhKiKBIZPbUJXSJFKSxdIUsDfRkQc8+HJTs7zxaeoAMSz1b3woytl5vPl45gyV8uO1aM0UvAejCqr6DPJ9AqPthMiWS2dds4n5X88oKaNT0/UnvEpCbBF6Ps0bBu9RC2LtSwHLBLF+UB429Eruj6JcimSdNlLc10ci6UGCIoR7eWCccAK+yvAPXGam4jnLrp1jT/CTITO4Y08RZyxlhKvaPTbwAVkT7+a6A== X-MS-TrafficTypeDiagnostic: SN1PR07MB1518: X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1518; 31:SBgIpGKtKoKcAR14oZ+XlLNU9ndidgRV32fJgWEUjPMxkiHDQNPzrkfxZusBzeIIDhQNsLXxauONM1R5hNJWYbQ9dZX4nr/13kgGpt2SfF+ez1e7JbdbcjxpmRErfWKRgJT1Rm4k+WSmFtIyJ9jqF7su+iWd7XQWjcL/CkmPGTJC15/ovea6pN4vrIW5V/UAWDlm/l5KzvLJnjJj7Ablw+jz3AJHBzReCRKiNubxWG4=; 20:dmw7wt+IUjvU3zIyotxRVXFi160DCA6rZ0SLvpks/NOOWuZNftqSpoN00S5fU1sT84/vLbbwcr+DJTzhDVD8iqnQI0Sull1EOGWbMgwmkbvAzFpW58xWTaPToZjCbNkCOHApTObI2XFsU1jwH0MqppBuD4NJJ9Nu8Sgx6g5SxYFdIobcXTSAwoZyslpJL8EDB3AR2LKgUCz6WQYUFvxSsZ4Of4RhAgBWqooWNmkkgC7UNPAmwml69oPkLig+i5gWXEqR0G5R8PoUVcp3mharymy0hhN9WL5KW7cFHFOUueFTUWm5eGvLMiW7Olcs/RHW2olCqhMtVmbiKm9V1eR/ZvrX1MzXYYotZTwbAQfNc5yNSfKbBgYnQwRJgiJwKcfg+3ZJrxR33Hu5rX3jm//L5JVWX5RNjfUW4YjikvcLsWWj/vm+Ze7loWx/joGN9eh16QFqz8HLj3O+XHK3febYCt3Ut4l2GAc9yEOUY5t1GupyLkTNQij6sBkdfpBZT4aE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93004095)(3231232)(944501410)(52105095)(10201501046)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:SN1PR07MB1518; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB1518; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1518; 4:S1cUfY0jhYUahtpd9d/xcgo9Hr+4nU4mhqwmUukmVCbDlIebyx72WdXyr3nDkXDfNFE3sAauT+JSW9t/hUg2/HbuByiF5ePCHKOua9lxx3TsXcBgFivIt0fHol9Yr5FkWj98c5wmmEFIv6FWjkx7dqCGb4qi1d/p9Pbgvzx4Jjff2ZCIB+R3U+Ig1Gz7KTus2HE96C5FPV8LHFH5/qlmakyFyyhC0cD1yq9m+9ihXBlRNtV9ryKLIWnncOXCUhHHAka9ogsebxzrDG5eqmHbiA== X-Forefront-PRVS: 06530126A4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR07MB1518; 23:mRvZCbfcHCgWE2PCrx8KgkQHR/0j/tAb+Pwlthfl2?= =?us-ascii?Q?xQ6JfnTCvuUfritKGryMTSLQieA1o3QPu2AzEoJppSNnw3kuzo0W9XO0FAtT?= =?us-ascii?Q?qd5MU7iKW8i+KTEMzjd9j8JEMcZfbKtaKcr8lQ73ZLMtwdtqWtWc7Af53kHt?= =?us-ascii?Q?aTbsTbmls8xes+evTscNOtlACFQWK2P9+Sn6Lq7WsNf3MrnGZrA4wB+FPuwY?= =?us-ascii?Q?X+OOFK3+diPtt0Z0AjJYSQUr0ahkQ4prSRh6Ex9nitBeNdv+n1/G6QzxCG6F?= =?us-ascii?Q?GLY62+zIJtlmbIGSqlvSBhzeKa5upFsAJrjOkjesruRl0kXeg5BVCFx27LFJ?= =?us-ascii?Q?tlePoZv8auTRYZxurkWY/ER5vnt7dQDy0ermni5zM1lR/lqn4+f+wj+UzP9L?= =?us-ascii?Q?UxVTLH6RIEyI60mWDv+YsFFCM0+VPt8640qwPzepqwA9akhyHDRrVqVrZoiI?= =?us-ascii?Q?6b+s3vk4Ha9i6cOR589ekhoU553A85KY2ep491XNvUzNfiAYj2td1dXy/lCA?= =?us-ascii?Q?HZKdErhcwe5b7fsxNRY0cl3o7KxLpDIbeGSdZ2k/sLN82dUUNXIZzUxZ/IF3?= =?us-ascii?Q?+NAoOqJNAdwYzgTQCXwTeIq75GHbmWC2I3dhiDRVbxq90ejGGUyGPtoWl5v+?= =?us-ascii?Q?otF4j9+vk6y/a2fjtTuQrF4CpeLv/LRKNyrbW1eGS5BJFZSlYSX5S1gkw0ob?= =?us-ascii?Q?MAj9gSB9WKYpbvlO0+HXHVLT6p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0xtyTR8mIfERfoHXeNhZJxlhVR+roggr9yFdqE5ud7XTnWoF8zLwid+H2jsyM2QoJ2Cj4Dz5RMvWAStUQ95Q+OHii1DrlqMbYyxuTnyvzMrVrAbEb7F0tcD5iL6bAfPPM6CbQ44CuMPAcGIY3AXc10LHk7kbb6U0mmOfCVSUerpXBePtom2RpnOWX3jEbRyGMpHxIGHs72A==; 5:q4HBGVi9vpYdpVk9xrmRkmJvFbmjxOX0c9uhx8ktz1z4/h/bzTSq/3tNyrwbGt0dIRSRuvruUzUy3ljo+Hfp9FDWYsU/ghVfdgdSnd57Ey6ezBxHRrhKIIia1Fc/cOg8Lu6ARzBA0ZWE/sanlFiCZiVnkiLDgILGCgYe0RrZEGM=; 24:9OdZfxd4g3haWFBCjH9teFceKiC5CEqjlJSTLvXosn4ANiwzx3InsaMa4505piyE9OERs4djW2lto62e1DE5ikBY3AwLOD4PBo+/tjSgIp4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB1518; 7:xnzFQkVwsBCoQrZb97hDNTkPKaXcHLASzHuWFcXSjC0ahW/Tq+a3N/gILTTiLeWfR1oEx/wXTov5DDApbwkAYN7UaY/LX7aBmZB7gjQKsuD6mjEfcM+bvkeWY4nCS7OgSAtqD0GN3L1QI7kPNC1PiemxWVi7Aw+76ZArCe/Ws82WOihyO+MjisImyxVo2cI1dmja/Ze8VgpFMRqR+N6GHj8b4sC9/GkOc3FFfuaUJTHyu5Dt8H2pKDn9J7ku2XFC X-MS-Office365-Filtering-Correlation-Id: 2662617d-f7fb-4794-d984-08d5aaadc435 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 13:09:23.7444 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2662617d-f7fb-4794-d984-08d5aaadc435 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: SN1PR07MB1518 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: Chad Dupuis --- drivers/scsi/qedf/qedf_io.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index 94d6455c9ddc..78cbd126c7e5 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -931,6 +931,15 @@ qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) return 0; } + if (!qedf->pdev->msix_enabled) { + QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_IO, + "Completing sc_cmd=%p DID_NO_CONNECT as MSI-X is not enabled.\n", + sc_cmd); + sc_cmd->result = DID_NO_CONNECT << 16; + sc_cmd->scsi_done(sc_cmd); + return 0; + } + rval = fc_remote_port_chkready(rport); if (rval) { sc_cmd->result = rval;