From patchwork Thu Jun 7 05:19:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10451141 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 C0FA060467 for ; Thu, 7 Jun 2018 05:19:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1D7929653 for ; Thu, 7 Jun 2018 05:19:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6B062973D; Thu, 7 Jun 2018 05:19:42 +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 4144C29653 for ; Thu, 7 Jun 2018 05:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752496AbeFGFTk (ORCPT ); Thu, 7 Jun 2018 01:19:40 -0400 Received: from mail-sn1nam02on0071.outbound.protection.outlook.com ([104.47.36.71]:30880 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751556AbeFGFTh (ORCPT ); Thu, 7 Jun 2018 01:19:37 -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=sDy2Rj8sooct2FM26G/Th/nZ6ZRwkOkvteM+9jBj7SM=; b=VMcGDsRetsY0lfqG+LY09csfzq7Q1YnSJ17utvmTlDQ4xUkmPXg+cuoI78OMxY14W8K+OVxqMXnsfB0ZYovJElt4GHEemlv/O48zHR89oq1udoWlSbDvYGZzFMlKxAuPFRZYsYrtvvkQIGNiVK5ML/8k3LJl+uIyGVbMtoYemDA= Received: from DM5PR07CA0105.namprd07.prod.outlook.com (2603:10b6:4:ae::34) by DM5PR07MB3179.namprd07.prod.outlook.com (2603:10b6:3:df::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Thu, 7 Jun 2018 05:19:35 +0000 Received: from CO1NAM05FT060.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by DM5PR07CA0105.outlook.office365.com (2603:10b6:4:ae::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.841.15 via Frontend Transport; Thu, 7 Jun 2018 05:19:35 +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 CO1NAM05FT060.mail.protection.outlook.com (10.152.96.178) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.841.6 via Frontend Transport; Thu, 7 Jun 2018 05:19:35 +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, 6 Jun 2018 22:19:28 -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 w575JR4I027995; Wed, 6 Jun 2018 22:19:27 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w575JRkf027994; Wed, 6 Jun 2018 22:19:27 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 05/12] qla2xxx: Silent erroneous message Date: Wed, 6 Jun 2018 22:19:19 -0700 Message-ID: <20180607051926.27940-6-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180607051926.27940-1-himanshu.madhani@cavium.com> References: <20180607051926.27940-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)(396003)(39380400002)(376002)(346002)(39860400002)(2980300002)(438002)(199004)(189003)(80596001)(110136005)(26005)(5660300001)(42186006)(16586007)(316002)(15650500001)(47776003)(6666003)(54906003)(2906002)(81166006)(86362001)(48376002)(76176011)(81156014)(59450400001)(106466001)(8936002)(8676002)(106002)(2616005)(36756003)(305945005)(446003)(51416003)(1076002)(69596002)(478600001)(476003)(50466002)(186003)(486006)(72206003)(336012)(87636003)(356003)(4326008)(11346002)(44832011)(50226002)(126002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3179; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Pass; LANG:en; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM05FT060; 1:1tgTYiBlBXHnAr8fFlwg/lm+Y7tP++Oory7e1hGVQtJSyp8AiXrLClizsguW0yBmibgMgyZmAXGKVoabsqyeHpoj4m68x9Fv8VFxucWFvl+l8jGGs+QVLPR/OQyrl0Od X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM5PR07MB3179; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3179; 3:EW62vRnW/cq7t5nIJtXwdDCAZLHYsOKGeywQutEMw8cetdKXGiMDTxXMUl/gy+6aq9NCXlzVZKga5hMcCwJ4wU3FOp8hSWLI0Ia4qgTXZtXvC4VNtJ56oQW4T3zphqFaEyRgTVb1RBDqukd2iZ+NwVgxdd/rt70iYAnb57OlazvwaCLklPjAUp46EUqMoRpUD0zk6g9Jy0c6HWM0CT3KTLzXdDD4PLGf1qqJ9o89yyIbh8ijtyhJ3O+lJoXXbdanjulN11PqyfMnBQ4CHXJcq/0POBO4n48dlzZj6hyG0sl6LlesdWBJMJ8/T+5YyVRLuWCJkHXWMfCWlRDwCIDpLg2wVIldi3ZodgKNxrRkBh4=; 25:xbWTOlyJcTpNpYZktYbMM1yo+1d31fvL42gLl/0M9lS8JcrmFNIEjLfsQw8fm5rieUPOzAdHsYfjTVFlOBExcmayz/U5kolLrrsyIX2C4ckUFHxB7PhjxHoUwZxUzyfcO25M0/0bAtPNsUQ5aKChlcLibPTAP/OcdwTWKH/6jUQp2ZMAhLF7sJoVlJwJLrUeApobkWaCUOv0Oa4SOiHNniwMzOTulkEEr3aSmKObbC0v3Heuyw7jJMyfBOZLBBLBr1tlM6XspxCiSZBIXkfWr+vh28yc47iVDzb9m3OXqdNMqCJENFkphsxFHN6A8kNcjfRpGcj7i8kwQ8RwfL0iiA== X-MS-TrafficTypeDiagnostic: DM5PR07MB3179: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3179; 31:9iNpLTNGtK5lXHtC0gO9LChxrXY4FG7WFDknDMQOckNF0iyDkL9RmQZ0kGogKf/10zxZzyZRsJiAOUK9yWbvHMPNDPQHs0ISVlsTKuTyI50hJZOKW1bCxEo4ykpQ7Bvn1jDrBS0JDh5aFtiQaEI+umEV6kMYe2YpKeLHV02sfAyF0GFeUfx3I+0CXsu6PpnSp5ToQO1ZwV/PnrwPaS3hlFf19jpdrgqpM1qed68oe1A=; 20:XBSz4B4VInFpUIlBLxWnUeceYs2dGgWKrQDvKB4s55ImjZyuX8eoxsauIOwxYu9QRrj8RcngrVpezowmFMdkKJiHhCqU/6O7Z1vEkLqmCpxM6zJQyLSgnBbq1YojWaoTxGf/JS9oUpoV4kS1RxgpBpdOrdVM0MAxj70ffyd+5dfsy61mGew7JcSvscMebBE9bP4g6SKxG7sShBXKYYH8uFG6VtqdFh6NffZkdXUmopqRq84gXStQkj5wUnAaJ24C7UmLhFBE0DV/lbwIzja11eVMVbRe/h3Bm7vZJw8IxIvHCI9IeOZ+RV4sqzJL5Cw61XabNYXfWeECyuPCvmpdF03bOrga7FoeodGf5Pk56xKMCNaZ6UgJJUYS35Ofcs39W/5aXP/06WbgxECKfK6dvlxt8BOIy4U8P2Sjp2AYucX9WZwbSMkHCzV2qFFmxRYKXjvne5RWrcInDDpqnFdw7Xn/tQ7bXpMx8IRYB9b5/FqI2qA8oMZV1DTuO2zSPAq4 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)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DM5PR07MB3179; BCL:0; PCL:0; RULEID:; SRVR:DM5PR07MB3179; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3179; 4:Etlncs1F3jC8Y1RjjJgsgC4kmuEKmfffafvADBYETjcDQRIDxWycWLlInH+T0UOOePeYOxuESKiZNNyHjZ7PbDljHp5PuFQd72Ej6F67WXLbm0DhO1Hk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5XY3iFjAb8C5nwbW?= =?us-ascii?Q?sv+aBDKKWy3U9KKTfu6ZEQuaY9e5dFnTfiGfCztxc7IwoxWuX4wWm+x9PNNU?= =?us-ascii?Q?5QCecC/qtvjZZzTSr07/Mqhvucpmlaye9Z1ZLUZoJv/OUsWH0oNBK+69HVO5?= =?us-ascii?Q?vDLPWb1OftUzhkDTY2sieqL6fS8ubmxkSNrQ2/7gctUtdP8N9XugtbiuTnHR?= =?us-ascii?Q?cxbY29a1DMIEI26Bi0GZSl5FYp/i4I0M6SASiUwIsJONLBimw5cerzPrJl2U?= =?us-ascii?Q?EUtaBm3ssdXjhPEmoTb4DPwNq2lRFh9Sz43qLZnZON81E3qU6Bur2c4b2Ar9?= =?us-ascii?Q?Egs+IOMELD7EOs0oZPDJSrZhLOROodQutU+FIHQwTyTmPsqvUUx6g7Mr9jy3?= =?us-ascii?Q?fa1OvOt3ztlfsn9lY4BmNTjsgABJt3kJnFsq6SwIWrbOd5RkSb3W670ssNAq?= =?us-ascii?Q?SddZoT3rDJbqGAUQKXbttDO/YNW+CnLJkGOn9Jg0jthoGbG6aJFCBMF1pPDJ?= =?us-ascii?Q?RDE9Qc1YIzZ76w=3D?= X-Microsoft-Antispam-Message-Info: wUP/UxQTUy6W3myWs7zdco/4DEwlvfgrMc5jbSDOKv2TaPpz3GEKXA/Oub5agqzctTam/823gzej7L/VtiaequxDSDceC8e6NRrv2ex+xCXk4/LLv7tgni0aa5TsritbotbUyZZ8ajt6TCDbsPGgFQ443Tm3+ZcDBur9Mnzvb8vO3Npmbxf1qJ9ef/pqCIQe X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3179; 6:Z8KlCWsydbibRJU0McCN633Jrxgf1ww4Xz37kPjxloQYRQkEHX4icVOn9ZwIpW4iR3AwywsLC1nbzahx4e1q1mpBX6a++/BFxQkzAuMr2kGEcCzzx1acwxZCu3OjgITGBQxpuxPu73pCqQG/oEi/mDRhITtY5diyTk/WBycMpa7N5OEdqIbim94mZjeYsLA9xr8qZZTglHW30If+Vwwj9mwSUcptoMXh4e696GJ5BRwEPlP9XUIlxec+lBNClQrj2Rprc47gHb7TRI5RnKYqIurK5NmL0MosXajmn2tmbPQNE0Ljh2s1/t8SVZi1/DlewHpJF7/4ZAa8n4tHRTjZUQ/smVgRrJ6AvSACniFQCfTjkKCKupKSXStAYO0V9RKP0ITZHX5Uf8c9/xzfyRqAkTweV4u+ZTci+wMVh4DT514mdaK0mkgZtKShDWYXyTBMefaRKgJIFoRpwLr8BvECkw==; 5:C6Vdisjy6U79c4u2Ckm852/DYNj1fm6cnS96izsDKjpmofNEXuPmdg/XWkkxA6ql6BgYJ5xjVFh3AQjAnhnPTYc5iel42IYa5w43JTxe54Zlj3r6Ir3PPKnLiTikiWzxKlZ7M3m0Bk+R/bCHuXi1WNm9IOQ6oTnGdMVgqIp0WiY=; 24:uOf9uTsoI6pLBuRzgpaLmzkj4nwb1XF/OXxUGkS6O/IEXQLh3hfMzB9keTY3Aj7O1XD6rdp4sothMqDDdGGF662RF8fFARBJIyZZ8dGPNwM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3179; 7:iBihWx5PRQjI5Ii+3ZodA6jciwQQFXcSRSh2wpmtADLfUupwRhoaX1mEB7l7DVNakERWP4cjUus74Cw5fSaviekRD0NvcnBWnY0yKKxOihGTXe1il2I61xdUazxtlnuu/s/Ki/MOWB56YgRJJsB9n8OhDvbZiVD/biD0FWWXdk9W/6IlmiwLbAItFjJQolRZGTbI40DqP35S3Rtk3jpwLlP0xuF3HeiM9g/WTooMbVKSie3G2JmjxpIPzfGmE+T1 X-MS-Office365-Filtering-Correlation-Id: 6ea7a35e-8c40-49f6-ecdd-08d5cc364253 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2018 05:19:35.3389 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ea7a35e-8c40-49f6-ecdd-08d5cc364253 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: DM5PR07MB3179 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 kernel: qla2xxx [0000:81:00.0]-d82b:19: qla27xx_fwdt_entry_t268: unknown buffer 4 kernel: qla2xxx [0000:81:00.0]-d82b:19: 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);