From patchwork Wed Jun 14 03:47:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9785259 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 6C43D602DC for ; Wed, 14 Jun 2017 03:48:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EBA127FA3 for ; Wed, 14 Jun 2017 03:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 723F12858D; Wed, 14 Jun 2017 03:48:38 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 C962A27FA3 for ; Wed, 14 Jun 2017 03:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754239AbdFNDsf (ORCPT ); Tue, 13 Jun 2017 23:48:35 -0400 Received: from mail-dm3nam03on0047.outbound.protection.outlook.com ([104.47.41.47]:38432 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754206AbdFNDsS (ORCPT ); Tue, 13 Jun 2017 23:48:18 -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=J8XMGbYLcOuPDIZMUdIZSfHz4CdhmWWkSRiT/pSKG/k=; b=IA6eYCZpoGr01d2RMoVIX2SWnF4yeRsF8YNTOklL0nAMReP/USM+SC2pEq4CTCWg5ppeQHUjYImXEAaxGE32AH+x0Uvpeyg9DA0Lek4yG3s36/QRxEvt3dE54T42NIks051J+3Huq4Gl67ziqFonCVBmJ2X6Md82cViQ7re8zaY= Received: from DM5PR07CA0028.namprd07.prod.outlook.com (10.168.109.14) by SN2PR0701MB1022.namprd07.prod.outlook.com (10.160.57.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Wed, 14 Jun 2017 03:48:16 +0000 Received: from BY2FFO11FD018.protection.gbl (2a01:111:f400:7c0c::193) by DM5PR07CA0028.outlook.office365.com (2603:10b6:3:16::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Wed, 14 Jun 2017 03:48:16 +0000 Authentication-Results: spf=none (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=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2FFO11FD018.mail.protection.outlook.com (10.1.14.106) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1143.11 via Frontend Transport; Wed, 14 Jun 2017 03:48:16 +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; Tue, 13 Jun 2017 20:47:57 -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 v5E3lvpd015519; Tue, 13 Jun 2017 20:47:57 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v5E3lvNO015518; Tue, 13 Jun 2017 20:47:57 -0700 From: Himanshu Madhani To: , CC: , , Subject: [PATCH v2 14/15] qla2xxx: Include Exchange offload/Extended Login into FW dump Date: Tue, 13 Jun 2017 20:47:29 -0700 Message-ID: <20170614034730.15428-15-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170614034730.15428-1-himanshu.madhani@cavium.com> References: <20170614034730.15428-1-himanshu.madhani@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)(6009001)(39410400002)(39400400002)(39450400003)(2980300002)(428002)(199003)(189002)(9170700003)(106466001)(87636003)(33646002)(8676002)(5003940100001)(5660300001)(81166006)(105586002)(42186005)(356003)(189998001)(575784001)(4326008)(305945005)(38730400002)(50986999)(86362001)(6666003)(80596001)(2950100002)(2906002)(76176999)(478600001)(50226002)(47776003)(101416001)(48376002)(1076002)(36756003)(72206003)(50466002)(8936002)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1022; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD018; 1:pqy0UVnjK/IgYg+jJVR1hGtREsFz01QDd+Cm1mkLD+ljclsA9AJ7KnvLFeCrGngnQAMhQXnQN77CdcdsVlnolxZWvmCwfhf4ogzHy5lqpGFUi1WqKHTS+ptCXzTXbW9xOFBxhQDIweny5e4Rbbaj3i5s1hh6GBU8rhtuDXVU2Q3UOejA0ALt7KM11boy9ln7QSe1DzBOINFQ1W7g+kvhRqIqcMnMVIh56CzOj3Ml82Rz1czkr4I3H/RqkVYJZyzqTDz+6wwoiLuE4E0sb4kgykPH0oaoEr2qnrTouBXPiHlTph5c4GPBSesd+zflce/npC9tvBdsAUoP6AB9pS9BJ1wRea+B89PSpnkn/8Q6nbmtu2RR2EI7a808hyZWlCxeYc5m4hkOvF4/BCcdGY70Ym+gMbw83ky3SwW/SjgH0CzEUUpRTMn+W3R7lKuGCsGx7syuuvECxm3ziDYb/MG0mYazQ17UuC7cg3vkZwzQyCkYCwYE17HjXvkXo+gsWaPNorlp/ToYVwJqdtR0Zp0xuQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN2PR0701MB1022: X-MS-Office365-Filtering-Correlation-Id: c43eccdc-49b5-478e-ca1a-08d4b2d83085 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:SN2PR0701MB1022; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1022; 3:+E1/LsAl+jFIg2pUY45kn+R7rU5wc5zH8Ess+8EWGnlWvMZZVmQpkQF7TzYBZBS3hjjbF9kZxakRqnHkt1PM+HopReliQbX3DYv9hHtcF3OnPqxxO5bxX8QnxjWAuGJLUFnK8hnLDKvf/jo4uAtA23MBWapVuZ/n1lmENbzLMKynad/oeFWAAfZQTDKw9/Eg25m3ojldqGUQ8TEFFLCJh4V5kkSwisGP0w7BX2HuR7DdFZVsZhiUM5xUd5nGMnynQADWhb5Hc1tDTVqVnYE+tRiNL3G1Jb2oTWURD8oBedC/Bpt1hE+pOf/Nez+OVxkuvVVo9e4a7ULUKpWfzm2xVembjOhyYunVTrsxWSVxLwhULCWdEy2PKqAm8sqUFLkcN0S6GYKt/rSdj6Dtbhyyz/vW4zht1GBeCihFi1nb0Y/3t9B3mIgvZd6OdVl3Kvk3Lx60j9f9hmdOdt2fPuD8/heaQGOOqI+/DJZXJ6BM/tCCR8jhJqyLiUfcg67mZ+KX X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1022; 25:CjbQ6GAiw6nTgKUqVpeBi2D2PkUZflRQvwI6cUPZnZPiG9mLUUNowFL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p9Dah2AHqYWBA3CglcJgvymez+htQ8/UT9oC87h83/UuFuap1QqrDLlbulUdqmUw3o/T0IdNdALRA68bhH82N0hMzeuv0s78Hch3AwPSu6mIm4JvEN6vKIT59xTXKa7vv+ALeHjFZYIBll1zgw3dZSuLgWvhWUZi5dxDY5XZXxI4dAeuZGn8BL0PYOvWMI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR0701MB1022; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR0701MB1022; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1022; 4:KiRx+p52Gd6gsqtr4YMWPlETBlsCHQ7+99eBltrl?= =?us-ascii?Q?gBpO2qeRQSgI6LhQ91Mq4IaEvSDGVX5H+5pfYjMX4yQR0Ez4RlJ+B2Q8GSLa?= =?us-ascii?Q?mC9Sm6KWxXGQINgVbFpZkM4zBqzz4147kW2eKM0Zjsbjn7SnTlwOd3LsTLjZ?= =?us-ascii?Q?yrgfMF4EsNfWCO0ADnEe3ct7losJgxumlKAop3wFiG6Zd/nKs1iZ2ZL7oSXh?= =?us-ascii?Q?uBr8ijrA5TN4CY7aEqLEKNFEyqCOagTBbVpekMcr0jGdzNsZ4UqoLGczMii6?= =?us-ascii?Q?MxCbS+0s4uveHYZhwOWYZURqKLcWhP0hHOgTJ8OZ1zdE9da7wiy+qsDmoWZZ?= =?us-ascii?Q?2DD8fnQYMOiBATLriJgDYwZbANMpHvUKSPQ6TYoxlyfVoAiDbT+3yqKe+3ci?= =?us-ascii?Q?bB6cGJnfAg2zMpS3IJEEdAPBCcEURKOL0j0Oa04UvljSTt040DJFPd3LSyAf?= =?us-ascii?Q?2Q3rpwjv9K1USsql4arGFZsZjJGX6QwvAnCduUBuIPGSCWLqSs5C3dSeh7+y?= =?us-ascii?Q?lkjYFZ3lnVyb+HRl10aqzke4G/vzEnq2sjRREUoBBlcQK23tuC+a7z7OJ+eh?= =?us-ascii?Q?ynj29utAH8XrrOfR1HswmJGuCM7BKQoe5y/fVGS4ds3mP/SLi+axDwlDUKrn?= =?us-ascii?Q?KbBndyRCQPGbCw0/RIb368ARtJOjtpU821ajURRVtmtnOCA7EkUYy/s/dJbu?= =?us-ascii?Q?tkVzaBCFYyT9l4oS1DzXQEwrEeYEQz85GnrJQ+XRpptAZ185JJeDWgvhR8b9?= =?us-ascii?Q?M0/9Bmv7S0WNj6/TakCB5smaYcjN5TUJHf7+BZe3tRf/gW3jl46Vkf8Qyap1?= =?us-ascii?Q?fH82/R6j5sUsmNIDaokBIfzKtbkVKWll3JaU0vJBBKdHLGb18FATPXzWsd3L?= =?us-ascii?Q?X6RgaHuBixkAE0ZQC0WORsDAWfEf7Vs0ciGh7f+2uG0e3ZQcd+vT93tYOErP?= =?us-ascii?Q?uozvTybOxPQahFhVsSVUx/RNE4CzovUcLhbGI5XXdl6LMZEzkOfYywMvg4BF?= =?us-ascii?Q?PhC2JSAjQEIWl67Ry9WDdO5UazZYRKDlvjAeFcERBsMrFNZw6getBiAF62Iv?= =?us-ascii?Q?O/adj/vsZKX5qeqTVhim/D915IuloDbHBrenF9AaR937fB877Bmv4QBjT2fr?= =?us-ascii?Q?LFrxipti+VjMwNpcI9H6x3DFGackDMX4Of0WKlqfulqPrFtssjWJKFN4IzU6?= =?us-ascii?Q?oAzME3LKlLbZmxI=3D?= X-Forefront-PRVS: 033857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Qb7BBElHPFMDdC8dbEEjsxO4MsT3wRCgRFIcailoAsCHExx8ShVR5uBVrRxz0Boosbr9vBLpLHsNRLSPTZwvjxcj+Wq3XyACFSxG34RWIcRenBWeMURYzyXdrhKsSFIXK3BXlmHRhoBBRR6kHoOW/REKgTp5rOFLo06NQZE/3CrS8kaAOGwhbKDFP0UWhmRawm2MYkVXgIESzopHiqFbrDPzTFCKBdfsQunX0zB+yRs4K4z+/WjTArd1PvizHAa+x4iXP6oFi/8BYFoC/9ZEJf5hYLWlH02MBJl3ooHHFMivk6quC0GOw24WnHKaeJ50AAF44ro5qKFDe/gvVzSk+pHfD29M6q5U0ksjS8en/; 24:s4G2IWK8RXzLsKoOaFFyO1q2ZExFWQS5FDTD4bku7uGtZEgjVjv/WYyfnEZO6BKbzRD4oVSfToZFve+l0IsZINqJo5Ie83hCPckkS1GNXsU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1022; 7:IcdQ8si3CKIsgh1ZmPm8BWvrkA1qyEaOqRdITtCkkNpO9fuKnmQdRxUXerYe/K+LNebzQYsPxdRpBRkW+SLNz/+xbdFmr/Iwcx8yRtl5bZ9TaL0wgtteZ4FILgI6tOaeMjloeJzjsLEyYlUoBjc3yuHJ9zsqccBGRksQh3XhAkn+ZIOwgFYug6hvQ8dYF0quYQmzLxsYN2VHxnTkXFcfPj2Uh8fxqzXTnFgFGZmYgogmrrU1XOtvxZ6t+cHhXTNWXVzYx78mq87jEmwHvd3qf+BY+ibSU/cA1wmx0zMGbVsGmVhMDwJ8RG2QX5HS7KfPS3i/p+1b74AFM+zEu6xA8A== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2017 03:48:16.0653 (UTC) 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: SN2PR0701MB1022 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 From: Quinn Tran Add missing memory dump of Exchange Offload and Extended login into FW dump. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_dbg.c | 49 +++++++++++++++++++++++++++++++++++++++++ drivers/scsi/qla2xxx/qla_dbg.h | 11 +++++++++ drivers/scsi/qla2xxx/qla_init.c | 7 ++++++ drivers/scsi/qla2xxx/qla_os.c | 3 --- 4 files changed, 67 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index c0c90dcc7c7b..f91ee717202d 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c @@ -498,6 +498,50 @@ qla25xx_copy_fce(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain) } static inline void * +qla25xx_copy_exlogin(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain) +{ + struct qla2xxx_offld_chain *c = ptr; + + if (!ha->exlogin_buf) + return ptr; + + *last_chain = &c->type; + + c->type = cpu_to_be32(DUMP_CHAIN_EXLOGIN); + c->chain_size = cpu_to_be32(sizeof(struct qla2xxx_offld_chain) + + ha->exlogin_size); + c->size = cpu_to_be32(ha->exlogin_size); + c->addr = cpu_to_be64(ha->exlogin_buf_dma); + + ptr += sizeof(struct qla2xxx_offld_chain); + memcpy(ptr, ha->exlogin_buf, ha->exlogin_size); + + return (char *)ptr + cpu_to_be32(c->size); +} + +static inline void * +qla81xx_copy_exchoffld(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain) +{ + struct qla2xxx_offld_chain *c = ptr; + + if (!ha->exchoffld_buf) + return ptr; + + *last_chain = &c->type; + + c->type = cpu_to_be32(DUMP_CHAIN_EXCHG); + c->chain_size = cpu_to_be32(sizeof(struct qla2xxx_offld_chain) + + ha->exchoffld_size); + c->size = cpu_to_be32(ha->exchoffld_size); + c->addr = cpu_to_be64(ha->exchoffld_buf_dma); + + ptr += sizeof(struct qla2xxx_offld_chain); + memcpy(ptr, ha->exchoffld_buf, ha->exchoffld_size); + + return (char *)ptr + cpu_to_be32(c->size); +} + +static inline void * qla2xxx_copy_atioqueues(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain) { @@ -1606,6 +1650,7 @@ qla25xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) nxt_chain = qla25xx_copy_fce(ha, nxt_chain, &last_chain); nxt_chain = qla25xx_copy_mqueues(ha, nxt_chain, &last_chain); nxt_chain = qla2xxx_copy_atioqueues(ha, nxt_chain, &last_chain); + nxt_chain = qla25xx_copy_exlogin(ha, nxt_chain, &last_chain); if (last_chain) { ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); *last_chain |= htonl(DUMP_CHAIN_LAST); @@ -1932,6 +1977,8 @@ qla81xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) nxt_chain = qla25xx_copy_fce(ha, nxt_chain, &last_chain); nxt_chain = qla25xx_copy_mqueues(ha, nxt_chain, &last_chain); nxt_chain = qla2xxx_copy_atioqueues(ha, nxt_chain, &last_chain); + nxt_chain = qla25xx_copy_exlogin(ha, nxt_chain, &last_chain); + nxt_chain = qla81xx_copy_exchoffld(ha, nxt_chain, &last_chain); if (last_chain) { ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); *last_chain |= htonl(DUMP_CHAIN_LAST); @@ -2443,6 +2490,8 @@ qla83xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) nxt_chain = qla25xx_copy_fce(ha, nxt_chain, &last_chain); nxt_chain = qla25xx_copy_mqueues(ha, nxt_chain, &last_chain); nxt_chain = qla2xxx_copy_atioqueues(ha, nxt_chain, &last_chain); + nxt_chain = qla25xx_copy_exlogin(ha, nxt_chain, &last_chain); + nxt_chain = qla81xx_copy_exchoffld(ha, nxt_chain, &last_chain); if (last_chain) { ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); *last_chain |= htonl(DUMP_CHAIN_LAST); diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h index f60138f66dce..8877aa97d829 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.h +++ b/drivers/scsi/qla2xxx/qla_dbg.h @@ -232,6 +232,15 @@ struct qla2xxx_fce_chain { uint32_t eregs[8]; }; +/* used by exchange off load and extended login offload */ +struct qla2xxx_offld_chain { + uint32_t type; + uint32_t chain_size; + + uint32_t size; + u64 addr; +}; + struct qla2xxx_mq_chain { uint32_t type; uint32_t chain_size; @@ -258,6 +267,8 @@ struct qla2xxx_mqueue_chain { #define DUMP_CHAIN_FCE 0x7FFFFAF0 #define DUMP_CHAIN_MQ 0x7FFFFAF1 #define DUMP_CHAIN_QUEUE 0x7FFFFAF2 +#define DUMP_CHAIN_EXLOGIN 0x7FFFFAF3 +#define DUMP_CHAIN_EXCHG 0x7FFFFAF4 #define DUMP_CHAIN_LAST 0x80000000 struct qla2xxx_fw_dump { diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 48c0a58330d4..72d9ca138ffd 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2538,6 +2538,13 @@ qla2x00_alloc_fw_dump(scsi_qla_host_t *vha) ha->chain_offset = dump_size; dump_size += mq_size + fce_size; + if (ha->exchoffld_buf) + dump_size += sizeof(struct qla2xxx_offld_chain) + + ha->exchoffld_size; + if (ha->exlogin_buf) + dump_size += sizeof(struct qla2xxx_offld_chain) + + ha->exlogin_size; + allocate: ha->fw_dump = vmalloc(dump_size); if (!ha->fw_dump) { diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 88e115fcea60..f7c4f723c405 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4176,9 +4176,6 @@ qla2x00_set_exchoffld_buffer(scsi_qla_host_t *vha) if (!IS_EXCHG_OFFLD_CAPABLE(ha)) return QLA_SUCCESS; - ql_log(ql_log_info, vha, 0xd014, - "Exchange offload count: %d.\n", ql2xexlogins); - max_cnt = 0; rval = qla_get_exchoffld_status(vha, &size, &max_cnt); if (rval != QLA_SUCCESS) {