From patchwork Wed Jul 25 17:01:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10544475 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 1738B14E2 for ; Wed, 25 Jul 2018 17:01:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 032F92A1A0 for ; Wed, 25 Jul 2018 17:01:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBEA22A807; Wed, 25 Jul 2018 17:01:50 +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 CE6F82A1A0 for ; Wed, 25 Jul 2018 17:01:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729150AbeGYSOV (ORCPT ); Wed, 25 Jul 2018 14:14:21 -0400 Received: from mail-sn1nam02on0049.outbound.protection.outlook.com ([104.47.36.49]:13952 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729106AbeGYSOV (ORCPT ); Wed, 25 Jul 2018 14:14:21 -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=vRRRrV6nQQ+T0x5iGi8ui+tamwxP6yomvdPrq7XDmbs=; b=XYb96WyOtJ2biupibHYsqI4diKj5IOcV4i4NwK1L6Ys3/a4oYcKwOg1M3DOQZXtPKZnDWYn5uHsG4iLldwJdDWTlH2l8uUUY98m5757aHDj/9y9PvCa956TB1hjgjhhFhvJDYT/u+D3b5XXAQj/VDeNpev3fhkcsEQg7o9X8rMs= Received: from DM5PR07CA0028.namprd07.prod.outlook.com (2603:10b6:3:16::14) by CY1PR07MB1462.namprd07.prod.outlook.com (2a01:111:e400:50eb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Wed, 25 Jul 2018 17:01:31 +0000 Received: from DM3NAM05FT022.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::208) by DM5PR07CA0028.outlook.office365.com (2603:10b6:3:16::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.973.16 via Frontend Transport; Wed, 25 Jul 2018 17:01:30 +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 DM3NAM05FT022.mail.protection.outlook.com (10.152.98.132) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.1017.0 via Frontend Transport; Wed, 25 Jul 2018 17:01:30 +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 Jul 2018 10:01:21 -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 w6PH1LPH010328; Wed, 25 Jul 2018 10:01:21 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w6PH1LGE010327; Wed, 25 Jul 2018 10:01:21 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 06/16] qla2xxx: Silent erroneous message Date: Wed, 25 Jul 2018 10:01:10 -0700 Message-ID: <20180725170120.10269-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180725170120.10269-1-himanshu.madhani@cavium.com> References: <20180725170120.10269-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)(376002)(346002)(136003)(39860400002)(396003)(2980300002)(438002)(189003)(199004)(50226002)(72206003)(6666003)(106002)(106466001)(54906003)(81156014)(36756003)(42186006)(16586007)(316002)(110136005)(4326008)(486006)(1076002)(44832011)(87636003)(5660300001)(476003)(126002)(2616005)(14444005)(478600001)(446003)(11346002)(186003)(356003)(80596001)(69596002)(50466002)(51416003)(86362001)(8676002)(15650500001)(8936002)(26005)(81166006)(336012)(47776003)(2906002)(48376002)(305945005)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB1462;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;DM3NAM05FT022;1:cXqgEE+siklVSSr3BpQOZForyVia6mtztVpx5Cu+qX3g+ECwtA1iroV1ZH4i0WIFY7cORyqTsM9yC4PPQtofHy9DTIZ3TeVliYNv13RquTs3LWHhOkjjdy24RBx74WXc X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5be8fab8-03ab-4c6a-d882-08d5f25044bc X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:CY1PR07MB1462; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1462;3:YmtivUfnUpCsj7evA52AMgdILLeCyv2/S1EKAqxa3biGr8jzr6G8C2XifXJ8AHSDqDdP1K1nebpzCe8PMHzioKWgD32xGMwAf0gJH4FbKqsUrZWeVt9ism+aA+YMEyVHsXqv6b2edK5GSFRKqrCAIEJRm1ngcwWVXyDdNfQlbrwSnic/mBwFVw6nkvKjJ+8o4aO158L+R5yBtnMceFYDUh6aogNojU2ujT0j7ZjqQrzsUvW+k/BO6yw2+3FOcHlwX7ZfNicBQEYYVlxYiLWcBge5PTWl1pz2PANNtMminHmnOK25jkEtWa8e949a/lyc4ywGml1YN8ExxnRfo6BQyWhLorkUy9iqOpZTiVmDWvw=;25:V6u7xhe3wM1AsT0a8ZvIzXIigKQpDQGWU0a9lUjKX3UB+vHEOylChDVO12ehokY8jGhq6GU5XjRyLJ9jsubqReL9EGqRcgIGCDlTeC26mHko7NxTreT9ayKjcl5Yx6geYNCmfON7Ag+Ulxp+uRPo5iHMlneZaKdpYhJQGb2VjBv1S+I/k+6ypa1tfV56P0OjRogCG2JSot4pPKT2HzsltThIyESjIN2YDWsMzE6WQhiyVokVceBx6mPv0SgvkgTNxT6G+UEayZN+1J/jBhJEL/hUKcWGNQcAu2joEqROC7WQJvZ+dGIoHEmUx885tRo2vmCvP3t33GQpW9p4oQGTOg== X-MS-TrafficTypeDiagnostic: CY1PR07MB1462: X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1462;31:x6DGS6Rwr1GBajdbE9p2igx60PXx71/fzMSSr4+sK9ajOONJeyG1isx0hxCpXmRPjS4i0Z+SJFKDqOpqWUzb6CP9Lmw701m7+aeZ7gSpesZtUAXUCWGuwA5sxu0SB7pawJawtqwhNQsNaQewtDS4lt6dQwaItG8dG2AxZJV0vkIzxap3lQAfj2/jr+m061BdvIlyddzEd07AHIjZFZ3RyCzGBEmJVPSvLOR57cVVY1o=;20:MXN/i+K9f+o/rjoIDDMQLoRseVp0i3nsnp9l7DFp7ZJnPt7ikxs3JLfnEOxXGvG7JQe2q/w+AKnoxFiLrkUxhlOw0euIDIIk0d8ThCfwcY7iY1GgilAp2RE+gt4Z0/VHHxnG66XL0ajlCV5Yhnx90nXPcsagVBd5CCX+vyQNziteJazu6upxcoSSjWgN2HW+0jKWF9hnLRfwKSqgGd2s79r51WXcHwZ3+7hpaISAu4Vf1fCS+YJyQqIV0eCbvl7etC4KwyyV9hRfvXllu6htkFgYRHUy954f8/qK/mzqGg3/HzNnDOkOeXvYUCgDe76WeQE7kdCo4BwqfWqNruVn0cFSeJ9OsZr+dCiC+N1XCfalStZ1woZ6nF5YEiMhlrK2KnDqn0UqdokfZU6AT3Vbst36F8HHWg9LtIZbgrbATPqE/+WE4xduinyhaX86/vf4Hdi0/mXoDYD/MM9YLToXivzWrI2qA6ZbPqj1QpN0L15RrYso7wxLv4MwrbxTOkZy 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)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93004095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:CY1PR07MB1462;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB1462; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1462;4:KUvBwPZYYOcnG0xRMU8H8Ndv/vfcfkoF0sVw4VFjkiUTlFWcrYORMl0+aqyqQQj81upTDlzzHH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H6KmCUU20jCMlwMAhnGBogKhw36rmcT0GvSPJomRf65jNZiluf0YflYf8xyPqjDB2orKszNVzI9ja7A8H20pEHC8Auy3MsT5Op/UkCLPpQ+6fTCm+V9sc+x/UpYPETmNjaXMJ9WvSjMbmTXUqIuXTR4i1u9PDnYR0C6G7aJocfi/6+zg==;5:HHtnm5cinMaqtRZOXEueXY1fBr7JZmi1VkUZp/wLki6PEuu1gNLKbHJ0LuS8c4+wL40d+3t8xT/cHPeRVP5faiwQWM7rSEKW5bN5hiuJBq2d1SrX1uG2dVlHskdNy33XUwy48XDd6SKeekT3NWYK507+T/qMA/kDyWPIo7Yk6zU=;7:WoKiu5ffl456/aw/tHv3o2z2BNJPXQqmRUKXhm0wWgvqE48ZV5DXiIsRMJEN5Laq7M+xLMeU3A1cvGUtTq60rnakzTJVfiEEpNqykWO2fuX8+oAxbYmguBLN6O+IxvcWm8NhbOSiPsXTb+90oZSJ6WCthplRaC42F9pM2NTTbMc27g4fJL9vN4AoEwGIsqiCAtmkTocYwFRqgt/IGwiS/a1L6ptoF+olP7b9TAcIRnDKfy1dxCLPFKSptIerV6uf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 17:01:30.4513 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5be8fab8-03ab-4c6a-d882-08d5f25044bc 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: CY1PR07MB1462 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 Driver uses shadow pointer instead of Mirror pointer for firmware dump collection. Skip those entries for Mirror pointers for Request/Response queue from firmware dump template reading. Following messages are printed in log messages qla27xx_fwdt_entry_t268: unknown buffer 4 qla27xx_fwdt_entry_t268: unknown buffer 5 This patch fixes these error message by adding skip_entry() to not read them from template. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_tmpl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c index b170eb54aab5..0ccd06f11f12 100644 --- a/drivers/scsi/qla2xxx/qla_tmpl.c +++ b/drivers/scsi/qla2xxx/qla_tmpl.c @@ -571,6 +571,15 @@ qla27xx_fwdt_entry_t268(struct scsi_qla_host *vha, } break; + case T268_BUF_TYPE_REQ_MIRROR: + case T268_BUF_TYPE_RSP_MIRROR: + /* + * Mirror pointers are not implemented in the + * driver, instead shadow pointers are used by + * the drier. Skip these entries. + */ + qla27xx_skip_entry(ent, buf); + break; default: ql_dbg(ql_dbg_async, vha, 0xd02b, "%s: unknown buffer %x\n", __func__, ent->t268.buf_type);