From patchwork Fri Jun 2 16:11:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9762949 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 0153C60365 for ; Fri, 2 Jun 2017 16:12:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7E9F28556 for ; Fri, 2 Jun 2017 16:12:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC5BA28567; Fri, 2 Jun 2017 16:12:20 +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 55F5D28556 for ; Fri, 2 Jun 2017 16:12:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751200AbdFBQMT (ORCPT ); Fri, 2 Jun 2017 12:12:19 -0400 Received: from mail-cys01nam02on0043.outbound.protection.outlook.com ([104.47.37.43]:47392 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751141AbdFBQMR (ORCPT ); Fri, 2 Jun 2017 12:12:17 -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=aqwH/Avno7xf4LT08ucuTJ041nMlRgE1BHGb9ICNYDg=; b=G49nWtL6/9yRkAF6AWC/h6mILt88nYNRLjyoIJflrVTxpYd4L9qYL4+gfMByZWoDTga+5BkbSJBlCUaeQUmBPjg97N6oqdGQnNwpVOYMuneg0f2M1V+lynLR291BfWmODCuj6kiWBb1SXdH0l+xgtYKXbKqNTgY0KfO/xom96rg= Received: from SN1PR0701CA0029.namprd07.prod.outlook.com (2a01:111:e400:5173::39) by CO1PR07MB427.namprd07.prod.outlook.com (2a01:111:e400:103d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Fri, 2 Jun 2017 16:12:14 +0000 Received: from BL2FFO11FD055.protection.gbl (2a01:111:f400:7c09::118) by SN1PR0701CA0029.outlook.office365.com (2a01:111:e400:5173::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Fri, 2 Jun 2017 16:12:14 +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 BL2FFO11FD055.mail.protection.outlook.com (10.173.161.183) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Fri, 2 Jun 2017 16:12:13 +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, 2 Jun 2017 09:12:07 -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 v52GC7ow006707; Fri, 2 Jun 2017 09:12:07 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v52GC7GW006706; Fri, 2 Jun 2017 09:12:07 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v3 03/15] qla2xxx: Retain loop test for fwdump length exceeding buffer length Date: Fri, 2 Jun 2017 09:11:55 -0700 Message-ID: <20170602161207.6660-4-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170602161207.6660-1-himanshu.madhani@cavium.com> References: <20170602161207.6660-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)(39450400003)(39840400002)(39410400002)(39850400002)(39400400002)(2980300002)(428002)(199003)(189002)(9170700003)(189998001)(6666003)(4326008)(36756003)(42186005)(2950100002)(80596001)(86362001)(305945005)(2906002)(47776003)(478600001)(87636003)(72206003)(5660300001)(1076002)(50986999)(76176999)(8936002)(50226002)(33646002)(101416001)(356003)(48376002)(8676002)(38730400002)(50466002)(81166006)(54906002)(105586002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR07MB427; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD055; 1:Rf+W5YUy7uMpc5a9EQokud+nFd2EG0QtlJNvCrEB+PP6wfsViylvA7bmjZkujkL1N52EmKYtz6Yn1ka+YkXO6VnqWZ0vCAgMbV0uUtn3IQBD4eFZYaoigI1SLi7V0qjJMVnHt3xplM8gWbwplIhuDFXfECoJg2mZmgfgoMnNXZYKOz4GdUIP+VZC81QyCDtW3J3bzMWT7hrpFxNuWb6DTZJnn7+hHaVq7LIw91d3AvWqM4+zuJNBu+WGWTabxCXHZ44T46ujOjSbqX/d8eUxCi15iEzO7ivUt2YP3VwtuyYtHhcpw1+gRtXESmyoey6Ym8Iipf0DR45VmFw0PLjI4eDyrh8PWR/Rmr8591CbXocVdz9WOtaZcaWNmtNNAa9C9MAwuu4RKEg0OzJWU4FcQ9zHlcRJ+YYdUF6kunyqADRMS0tHjsoYOiCxWtKissmOBlR5+2SRoPA1xEg7uAUm49W3aSmLnH60QqAry+LYp/c+NiAwUxxoBvWJ6WvWlWhU X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR07MB427: X-MS-Office365-Filtering-Correlation-Id: d865b1e3-4cfd-4be8-5c98-08d4a9d221e8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO1PR07MB427; X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB427; 3:aj5ekf9Lzs2Y7sL70Zvy9anWHwNW6mm06nuZebWzyhFGm2VS0R6CVmUS9BxLqZdP5ApqCWbcW/n72dAJhPDv8XBsuEhANwHk+jIb6dQM836nvT8STSlPhjs770rY1vwIIPdw2WtuoR43SNgo4bjqhey2b0t4R8MyeeNZFoVrHnFNWZbS86LC2PXmy8/QfgTzMMkhK0DLULsC3Ot+lNl3/KFV9G0jIjjnzN+f9q6y2FsmUuC/HEaNY3gaGkCothKaV0KHPhnI8PqOOhPHWpa+PYi06OQ7r6JVaIgQoJ/RZAayf4tWW+y/1u9AR0X4NP6ptkM3sjKPj++QpXiWORMyhnlzitnG+EOUB3iKOGltbIQsp03MdyzuL9C7KABwUJm2iWDEcjPFBpnH9fAhj6J7hAudcYqg7eLzAEhrdrE4gbxilwY6veydpcXDyZJTrcz5RZzwnP6JlntesjoDmwHFw9iV3ssMUyuPSp/9LTS8V0bXX/5yI3bhpIxLQfjO0z+d X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB427; 25:BXS3k68pU5GUUeeVfI0M8zXmyHWlD6K+3+9dsfgkObzY51W7as1jCs5q4EznvS0BxzcQSONgFSkzouq2UkRO0OV8vIfiq9Wvu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pOrtoR6nvTIiSQ8ESxMUj2NFMH41oAP5ReMT0TpmgZA/91wDGwpFPWwKbKTfvBK8GAfnNqV3fBIBaKmj6SeBSP/h+psy3ohQM/fdMQ6fNoaVXmtllqUB1mhowi/9pQg/cHtpMb7ExOzKSkvUO224 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR07MB427; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR07MB427; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB427; 4:WSabwh/ZQEkDpwpo495e5BTIDse45yzd7MLTPg3oDG0?= =?us-ascii?Q?v2jJGrTSDptfnpOm3so5dG6BGheb9vx0k+MaNhfiDG2WdKKajMz7VRhDCO4K?= =?us-ascii?Q?yPw1Z9M94RRSg0feeAlpXU4Yua+0PXZw9427RWkKU5EyZDXIvBiJub92nW0x?= =?us-ascii?Q?gVHE/aS+mgkj5tmVjAVb56lprLIKZM93s4LTRXWafMLJ7/oXZdZs5fildrk2?= =?us-ascii?Q?7OkiJ1o7N1KiVhJpPIOsROEhasyP10hbBKzmn046SOTB4sKt0jCQpS+33nCJ?= =?us-ascii?Q?vBQhsi/CYAnV6ztJprEbstV3XvTHpyEgnXYQN/Cz5VcnNbsc8yms33RibZcr?= =?us-ascii?Q?3wr89Nn+NPIxQJ6Ds0v+hA9woWPbuNoo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ii?Q?=3D?= X-Forefront-PRVS: 03264AEA72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB427; 23:hcafrFpym3fPycUfUweocrp3eOYISU1/hgCZKGl6cT?= =?us-ascii?Q?wx/SxgJCSP3fNCtwuQgTqVEY+qNgwnqXtfc73qhBzAvODcg8h75dQCY70Ze2?= =?us-ascii?Q?fPQweXDO6d+XFTYqqNq/u8YtxMfJop3F6kKSu0Pn92kjUh2F9ROCeg3S4U1F?= =?us-ascii?Q?rzya//k4yi9YS9+FB/9WIN1lBiErOWOhqG21xkEKQcDArI0A/1ZYk94voD/p?= =?us-ascii?Q?ExbgA+MFgFeZCjVsACSvSuTbo2s1bqfiRZcLkV7mR6hh/lQp9jegm8tPoMYU?= =?us-ascii?Q?bpVc8gYF14iX/TEIswuFHlwPRfnw+C6nB01m6XxI9xU+Y5yHyEO12yyNbylT?= =?us-ascii?Q?DRhrSI8phafapn/4z+EsQkpDODzGeebO72+dmiSFYVYEcZzgbGpvSDX15Oxg?= =?us-ascii?Q?taXRAPKwYTe50ttqoNR2Kv+WtKpTzPOMozM2BrbbfXb+X51l/4Pjg2eZ4PWk?= =?us-ascii?Q?GbbghXfa/BMsIM/Gbb139Vbhgbi4173w8tGtc4w+I2Z74t7lSL0FXwxhu4f8?= =?us-ascii?Q?tF2HeVHy6C9LjbTf2GcZ9k25Kwp1MZXhJZdbKrxBqvuApzd7/SOcjMVoZBgC?= =?us-ascii?Q?/+9nW8UnfPCRAG6G+eBB7NmPhDEpI/i7WTD0vFZL4KLW3JctWTDqGxucRZou?= =?us-ascii?Q?hrXOa7G/IFNLT3FWUMxK3D1pDkSHmyn8ljOkbZkslfTJr74lbhMbk9d6r7EK?= =?us-ascii?Q?SQX0jSzodCGa93cQ4eq/T5uT8oLqM3oX6edgXJHd/SSCsBLrbK7HD0l/I1Q8?= =?us-ascii?Q?Du5zgojRCJFjGN4b3gu5EbnlLzo31ZzDZ4dLQapc0Cbb4lsstKtmW6IVRjbt?= =?us-ascii?Q?tMraOiJ6kiNfcgWQ3ASI6TyJ402fQ9c/eLcheBS+7BLMhXARZezJNnvT2No/?= =?us-ascii?Q?NOSh5jmGMiqHmvfyHhOedcHQ0tvM6dyi+yMgFTWg8adjlyB8Y5ICzM/vnELH?= =?us-ascii?Q?Htwu5+tlduOSkwjpQp8FVrXW7ynXnNtDjPdcwg78ydqc0FmW9QyuAKuobAP3?= =?us-ascii?Q?EsMpzaiAGXme/aShw14aLkO6XGHhGStq5COGECgtTpwLgk+kNSfPxZEtNDnD?= =?us-ascii?Q?xJdjU=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB427; 6:G7NpdknkC9z0YOmRmhJSd5byNd8lNDvoF0RKnBRzit3Ru4ZY4sinLx0gt85P3aA6MUXijI/4WIQG0Jyzojq0E8K4y9riFuEWrI6ZdnVu1EdEDMgpCQTzNvuZGZOz0pbTpeISE6/IpPuZUG+c/t0hOy7PgskR0L4Z+Jjc0/8HOsBlWNj8nEertNetpBWx0dhz530EIezKZ5yhar8Ux4hci0xhRSSx1k0vXDDM6OsjjAciunWC1HnvgmU0uBbwmSjEn+TNKUHi00AGScJYF+9QXc8VFTDhotQ/pHaEKx99W8QKhd0SkELcsBqhQ+YM8NFMelyTkDleaCoVgFNACWbJwQkJ3+8mp2b06KTQTAi9peerv1fAlXFR9mIhypxi2lGKhINQ/68lILkOhSKVm8zgznBqDNJTuqIwMIV499c1x+jW9tML0tkULecwE8fk4hk0YOjmabSF8MNLoiTQUCA6OiOl/qwIbyB+II5vZ4S226WLaui+paWBTIkAUEI2yY3qNyYxE5XArQ1VjBYQlcSKhA== X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB427; 5:TDjjIIsoJzWrkeFrktjSBtCvqi1P77fU/J1rDFDKu2cR5kJN3xQOxTTwB/FClQCC8OOqr4DovFWwh1hMBrRNLEElvi+4mCUZ8l390Hhk88+DBnzPjiZjH8bevUSGah26NVjU2oh7OHnuU26YXBKVhcZ6QOPx4DiNiPOabAU2T82kJt48B5zktL8gaAXeWwWBoHMPiyIY65Lr3nu53WUzv5Rys59EALlphKVeeu3c8njetAq7xHpds+Q6XW4MIwo1Z1f80eOuKuB/aICe3VaqQ6jtiCe7TVcTNdhs42STduZNAte0jjo1Fe6oMq7o2XolvvT+1MYuAhmJC666HXaL5ialqwWloigi1s+hYdb+wskrtC6XQWSPfjANjTTnq6/rpuEve+4SX0nshOzn8x4L3emeFFJgmZoPoMY8VST+KvquuW2holos7L0cP5BHlrotp8x9RYf+JRGq/+kHHf5Mo2bC0CTUBYso8jX9cQ6sMEhjFy0B0r/HPWnpSxz/Y+YE; 24:jvKf+9n0OXwbfJjADxm3s/6ELVGoRiEwx35difqWqmDG3qNa76ocTwFDDoySDsoF0Hb/MnkU8LUHpxHlSXXwValBx0h1J5PxY22Od1HZwec= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB427; 7:KmfDqaMN6XZYAHN5GTSxQY9PdKdzuxzINbibMeQz4nfUTH1iXR6/xRRbx5SAwsZ5aq7tZxNxOyi06fTxmaLubjE0v7RtR698s212z0euRtYFxa9rZ7Sf/ilBSMNod2oNHSItVx5M9FjsIPCDg8XNBzPCwRK8OZcnKxSO78yqMj1ZQZZebGrSSu5GzkGrcugdtKmhI7DpRtF01AnFdM40fWx35ZTEfsICm0/ebnOh1awnjGU8MBAZQ9Ws+VYNVFddKloIBp0Pkfkr3qyIXQ/wDrI6FULyqXgv/1CAi/2Ip2aDD+esL4R8Bq7CAdNNDKnEXbD8LcRdwagYGU1i7SWWEg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 16:12:13.9597 (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: CO1PR07MB427 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: Joe Carnuccio Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani Reviewed-by: Bart Van Assche --- drivers/scsi/qla2xxx/qla_init.c | 8 ++++---- drivers/scsi/qla2xxx/qla_tmpl.c | 16 +++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index f6130e8b1ca1..e4876f4220e4 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -6356,8 +6356,8 @@ qla24xx_load_risc_flash(scsi_qla_host_t *vha, uint32_t *srisc_addr, "-> template size %x bytes\n", dlen); if (dlen > risc_size * sizeof(*dcode)) { ql_log(ql_log_warn, vha, 0x0167, - "Failed fwdump template exceeds array by %x bytes\n", - (uint32_t)(dlen - risc_size * sizeof(*dcode))); + "Failed fwdump template exceeds array by %lx bytes\n", + (size_t)(dlen - risc_size * sizeof(*dcode))); goto default_template; } ha->fw_dump_template_len = dlen; @@ -6658,8 +6658,8 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr) "-> template size %x bytes\n", dlen); if (dlen > risc_size * sizeof(*fwcode)) { ql_log(ql_log_warn, vha, 0x0177, - "Failed fwdump template exceeds array by %x bytes\n", - (uint32_t)(dlen - risc_size * sizeof(*fwcode))); + "Failed fwdump template exceeds array by %lx bytes\n", + (size_t)(dlen - risc_size * sizeof(*fwcode))); goto default_template; } ha->fw_dump_template_len = dlen; diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c index c197972a3e2d..33142610882f 100644 --- a/drivers/scsi/qla2xxx/qla_tmpl.c +++ b/drivers/scsi/qla2xxx/qla_tmpl.c @@ -219,8 +219,6 @@ qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) { if (buf) ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; - ql_dbg(ql_dbg_misc + ql_dbg_verbose, NULL, 0xd011, - "Skipping entry %d\n", ent->hdr.entry_type); } static int @@ -818,6 +816,8 @@ qla27xx_walk_template(struct scsi_qla_host *vha, ql_dbg(ql_dbg_misc, vha, 0xd01a, "%s: entry count %lx\n", __func__, count); while (count--) { + if (buf && *len >= vha->hw->fw_dump_len) + break; if (qla27xx_find_entry(ent->hdr.entry_type)(vha, ent, buf, len)) break; ent = qla27xx_next_entry(ent); @@ -825,18 +825,20 @@ qla27xx_walk_template(struct scsi_qla_host *vha, if (count) ql_dbg(ql_dbg_misc, vha, 0xd018, - "%s: residual count (%lx)\n", __func__, count); + "%s: entry residual count (%lx)\n", __func__, count); if (ent->hdr.entry_type != ENTRY_TYPE_TMP_END) ql_dbg(ql_dbg_misc, vha, 0xd019, - "%s: missing end (%lx)\n", __func__, count); + "%s: missing end entry (%lx)\n", __func__, count); - ql_dbg(ql_dbg_misc, vha, 0xd01b, - "%s: len=%lx\n", __func__, *len); + if (buf && *len != vha->hw->fw_dump_len) + ql_dbg(ql_dbg_misc, vha, 0xd01b, + "%s: length=%#lx residual=%+ld\n", + __func__, *len, vha->hw->fw_dump_len - *len); if (buf) { ql_log(ql_log_warn, vha, 0xd015, - "Firmware dump saved to temp buffer (%ld/%p)\n", + "Firmware dump saved to temp buffer (%lu/%p)\n", vha->host_no, vha->hw->fw_dump); qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); }