From patchwork Wed Jul 18 21:26:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10533311 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 EDD366053F for ; Wed, 18 Jul 2018 21:28:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBBE129885 for ; Wed, 18 Jul 2018 21:28:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D01F929A37; Wed, 18 Jul 2018 21:28:58 +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 629C929885 for ; Wed, 18 Jul 2018 21:28:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729753AbeGRWIo (ORCPT ); Wed, 18 Jul 2018 18:08:44 -0400 Received: from mail-eopbgr720060.outbound.protection.outlook.com ([40.107.72.60]:60224 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726968AbeGRWIn (ORCPT ); Wed, 18 Jul 2018 18:08:43 -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=klhXP8D8MgGVJhE9dp26T4mz45f2zsldL6hYpV2uXrmXPadUxa5ZwC/+x8Wr0++M6yLbU2EYEjkqBO+npYiKZOBjSaxIoMlT7uq9kRzEuOAQjvuZocyi+E5LzmLYf98l/hP2VwJOShZtDaDNbEiq7RyWW6uf3b/02xATOPCTzhI= Received: from DM6PR07CA0001.namprd07.prod.outlook.com (2603:10b6:5:94::14) by DM2PR0701MB1389.namprd07.prod.outlook.com (2a01:111:e400:5119::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.20; Wed, 18 Jul 2018 21:27:03 +0000 Received: from DM3NAM05FT028.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::203) by DM6PR07CA0001.outlook.office365.com (2603:10b6:5:94::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, 18 Jul 2018 21:27:03 +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 DM3NAM05FT028.mail.protection.outlook.com (10.152.98.139) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.995.0 via Frontend Transport; Wed, 18 Jul 2018 21:27:02 +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, 18 Jul 2018 14:26:55 -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 w6ILQtNM013380; Wed, 18 Jul 2018 14:26:55 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w6ILQthw013379; Wed, 18 Jul 2018 14:26:55 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 05/12] qla2xxx: Silent erroneous message Date: Wed, 18 Jul 2018 14:26:47 -0700 Message-ID: <20180718212654.13325-6-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180718212654.13325-1-himanshu.madhani@cavium.com> References: <20180718212654.13325-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)(136003)(346002)(376002)(396003)(39860400002)(2980300002)(438002)(199004)(189003)(186003)(8676002)(476003)(81156014)(76176011)(106002)(81166006)(15650500001)(2906002)(4326008)(26005)(305945005)(86362001)(50226002)(87636003)(126002)(2616005)(50466002)(356003)(8936002)(72206003)(36756003)(478600001)(48376002)(51416003)(42186006)(44832011)(80596001)(446003)(106466001)(11346002)(486006)(14444005)(1076002)(6666003)(16586007)(69596002)(5660300001)(110136005)(316002)(47776003)(54906003)(336012); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1389; 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; DM3NAM05FT028; 1:4FvurNINx7Aq2Wo+yXBC9jiC4Q2pGKY9iFJyKoRbSxvwp7Cd54kcGSbsXJHvOGhucA8UqTxgHNhvtQxGTc69cGrON0foUUPMi04frMIzBldpZ8CcRmaVoffLzBHxfwKG X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 993de5f4-1d38-494c-286a-08d5ecf53442 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060); SRVR:DM2PR0701MB1389; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1389; 3:RQdcejnrV62SEZOXAR5LxCPBsmZ6kCHw11AuY8W9TvpT30u4H1HAU39cy2TEyGvxAoqQP5fMiNWjrtIJIO9De0Op8giz0L5AFsGHp1M4uAhxrXa1LUo1OUleQ93Z5q4bE6M2Xsbn6UfXAal59v94FK+tYxwmJ6YjU4vBf1B8BAdkcng15s+4gB0SrblziexHI0lGSUUmNAF2AzKn32AB3jfliqMKBtkuzBmvsn22DzSgkvMzPzVLt3q61dMzwhH8RzA6TtQNATF7KbENYUeU2Dtk6eLEDjyAyr/4f0T84OniCtGVuv0mDGb+p//+KuCxWzCkE/zkaWn6ku0JUGIgLB82TXoqm7H4xLRUy6r7Lg4=; 25:6AJOrlsrJM2X1dbAyAESnoU9II1F//gUSpBwrUb+ldalpZJg4WwpYmtGRv2V6/w1zFZ91h/hXn2IC/D4td1gGcniWT/fhAwHyaVWu30echjSpaImU0LKwu9ShPwdu0sbJvyD+DC1KVIIa2yiCGmGXm8ygC7y8+xHIsc0YRCHhjxywA/z1LMuSyP3+E/JgD8g0etTlSzhpenCXlvAIKHmNyHzpZLLl9QrA1QlOlABwmAZNoTjlOCVjuA/ymu79RsZicoMQbhjyKVLWu+oh7B16dZybHdLdKMLjFkUF6HZQbYkhCTNflwmUf0nUa1o58sdYGVEUF3+4Uz32QHm4jmkEQ== X-MS-TrafficTypeDiagnostic: DM2PR0701MB1389: X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1389; 31:pwO98ycbb1j5/4LvkSeusi/abvlK0jTfJDUR32KgtPJkqhUqrzUQLh/J/7o88R21mWMS1shXCGMhQXEvJgVviXdTQDvQpmKs3HEb/NhUr0RjG/QRohWo7YNanaq3H/VdyR1ciL8Y2zHaFZ5Q9XEW/QJKMvuOszEg6ZrtOth5g3jEmPM/2Mg+jtzdDdiohw25bsJXozPfLBvqgGb26Z18YNLxauHKNH3ePi2rgNpgWP8=; 20:8F5iqnS6+J/SA3WVf/1t4A0fYBJT4kKGWhJ2M54NT0gNajHF1QupJp+SWS3iImGYuwGLis0Cz9uhfyXhR4OPPE7eL9EOv3/6ggs5/Oa+VLWBJRayf0p82C+gBSFB6067LXbaLGI+f91F1kNL9uAgkC2St8biBo1HIw4tJIFxwBZ1f/y8GgBHlAmSkieH1YyXNqPvywan2BaJydql8VJjfuJYe7DJlHOMQBJ8UDPki9wat3dDXdZlZVsrxI/VSbo+KG1gRYKib92GCRzxNUGNxcqp21WdV39fsFBWdoTy7qyi1dthrOHHgkTQ6Nl/EBzKMbxWZbBQ3LEzevwN8w0M3nRLDtZhO2LnwGNnwbGpZzpCGcvgDRfammpCIfenpe5xyVmpycZI6NqOePAWy5C/cPo+1O12xtzbgWSDVw1R8SXkVPOrmcg74KnPR/PBe1mAR0YAGhvao39gMe4I8ucRY5UjAe+oGfGdhUS6F1aQaMVCeqMI/ysioTD4BxG5xiNE 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)(3002001)(93006095)(93004095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM2PR0701MB1389; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1389; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1389; 4:uOA47lpH3O07FFoddZbYegskmRQq7JjuOD7aR4q8bcIMuncCO5gkFIWBgho5OVGMkXseWoWhSj02rNBsJNhNrKbqIv3HDfpc/b2pK8SuT3TiZD/z/HlXCQz6yx/y0smfYue9CaSQ0euTIGO/VHa0yw52druh+rHDQpL+Lrlm31GAWiPNQqV8mJ27Tn1pv8b/pIDrMFxmfE/+IBpFK9ZkwDjC+ttxASsld4cWk4HC4Y2uFGGqKpEua0cfUpjgHbCpc/UgBm3ADRcQy28Sf1SumA== X-Forefront-PRVS: 0737B96801 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1389; 23:eegfrF1vvPpnOwNWB3+xT+ICp0i2Avid4YPbNlh?= =?us-ascii?Q?MlzMDcvyQFQ6V6Bdi1TdLcjMKla1KMZcUxqQGeBB+FBlxNBUXZPKzlz5WG5p?= =?us-ascii?Q?10uM48q17rjm5nmHsvDNZjdAFCJOatU4zuZKNJzv7XRpJgNRUpiGw/jrQvBo?= =?us-ascii?Q?5WyAYj9AKZGJjy3fYeZqTfFe4tA2au0giM7Ietibms6WHUCid/P6+lk/jmCN?= =?us-ascii?Q?8UCGsF0rU0zvx/IrnLbUE7jDGx1bpSQO4Se9jReVRCBxJLJTvjp97v3SVg4p?= =?us-ascii?Q?TYkuKZ+w8z3zvNJ/WAeJHvAJ21i5U9aryBESlPV3gMSGnYqDBTcMOBKkyjHq?= =?us-ascii?Q?6sDeu+fVBJXZpUde0ay8lit4rMf9hnBM6DL8XaMBn7SMHaImBn5qHwFFykhR?= =?us-ascii?Q?MNsJcIynuOKISXYSPvIHLj/BOhwXISYt76m/F/e6gu8iCxilpsMwVhrAOl5E?= =?us-ascii?Q?W8+HGMmKucLJiVuLCWo0lW9lPkGljL0sqWLw0K48ZnXeIndzq23LSjGjfyVc?= =?us-ascii?Q?8jK+AWVgO4XMz4mxqyFImflpilUUn1uoYqtJFjPtqyeiTfqivmtYer1k6FD7?= =?us-ascii?Q?+DqQ4kRfUXcwJAwQTkhAqieEEBxnaGn+AtzDZz30JBHlFvicrqEfWVoav/wL?= =?us-ascii?Q?9Xh+48BnxQy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Xf6MPxPhi50LkfW8Ib6o0ntIay2 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2018 21:27:02.7874 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 993de5f4-1d38-494c-286a-08d5ecf53442 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: DM2PR0701MB1389 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);