From patchwork Wed Aug 1 06:13:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10551743 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 7ED1A96FA for ; Wed, 1 Aug 2018 06:13:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F1782A64D for ; Wed, 1 Aug 2018 06:13:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 620982A645; Wed, 1 Aug 2018 06:13:49 +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 02C142A645 for ; Wed, 1 Aug 2018 06:13:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733168AbeHAH5p (ORCPT ); Wed, 1 Aug 2018 03:57:45 -0400 Received: from mail-by2nam01on0074.outbound.protection.outlook.com ([104.47.34.74]:62880 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733087AbeHAH5o (ORCPT ); Wed, 1 Aug 2018 03:57:44 -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=kWeJNHbkW7iBysk/UWoN/4KD12JGaMYwnPGNSvX0k0WIKNRz40Rrw/wLARTqD30AiNPeXT9EcOaS7A1bvnllzANvf73AUiZ68H76/pgLSyFc6qHIiTSha4M2H2spJdWqj0e1AhQaS3CRegU2g2sI8nWtGtJf8UMcl9Frde4J1AU= Received: from BYAPR07CA0027.namprd07.prod.outlook.com (2603:10b6:a02:bc::40) by BN3PR0701MB1378.namprd07.prod.outlook.com (2a01:111:e400:4018::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.19; Wed, 1 Aug 2018 06:13:44 +0000 Received: from BY2NAM05FT043.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::202) by BYAPR07CA0027.outlook.office365.com (2603:10b6:a02:bc::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.995.17 via Frontend Transport; Wed, 1 Aug 2018 06:13:44 +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 BY2NAM05FT043.mail.protection.outlook.com (10.152.100.180) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1038.3 via Frontend Transport; Wed, 1 Aug 2018 06:13:43 +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, 31 Jul 2018 23:13:36 -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 w716DbSh028769; Tue, 31 Jul 2018 23:13:37 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w716DbD9028768; Tue, 31 Jul 2018 23:13:37 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 06/16] qla2xxx: Silent erroneous message Date: Tue, 31 Jul 2018 23:13:25 -0700 Message-ID: <20180801061335.28709-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180801061335.28709-1-himanshu.madhani@cavium.com> References: <20180801061335.28709-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)(376002)(136003)(39860400002)(346002)(2980300002)(438002)(189003)(199004)(446003)(4326008)(47776003)(48376002)(110136005)(50466002)(16586007)(42186006)(476003)(6666003)(80596001)(36756003)(44832011)(54906003)(2616005)(486006)(69596002)(11346002)(50226002)(26005)(106002)(5660300001)(126002)(316002)(52396003)(478600001)(106466001)(76176011)(81166006)(72206003)(81156014)(87636003)(86362001)(2906002)(8936002)(15650500001)(305945005)(1076002)(8676002)(51416003)(356003)(14444005)(186003)(336012);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0701MB1378;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;BY2NAM05FT043;1:Q5CuvPkukOiaVveHVwDnfVyKsg4CxM44H95Z/8bSMwfgO+1V9z23qJTclo3xSYOYFhC7Jj3pzShU/NoJ/pVcn+OeHP879XHRpoOuTTm//HvHyN5A9ruXKDrHP64DjaoP X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a561455a-5755-4987-8c7a-08d5f775ef3e X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN3PR0701MB1378; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1378;3:N/nNv/WmCU3lz7BJTCuQGMrMA79pAkoqDNUDIMHEGPJNXZkK2W6eoXRk8ZRg8LhPoCjNoic2/ek8o5OfvvHzn6i1jyNW/fC3qMLpg7P8RakC6lySrWGepMB19owEphW4fAKRvyYXgb9hrrymbeYNHiqcLdJo2Xx7fvLsCcUtzg+DMfVWoIzFc2JqjydHDISKHqhfHvERmnGeId47p0B1dXxzccJvKFYgfl6qmVLkTOVlZ9guSZr3QaCUh2KJUdg7xrgDK/r6KUN6vRJFyFjvKSX8sxCOI9HByZRLOIGo5PxbW/TI/Lf6DPNgsHHhHNZ6yOitbNa6lPMtUoan82l+LdgfGX4JrnbGxdd/9v1Jwo0=;25:IFL9Shf3Y6J7Lysczy1IrqVzgu/D13n+n+Hl0S++kZPrFxIJPG2hWsO8U5YoTIG1F9WZUrv7P/FstJD3XYHIRAoDLqDx1eA1JFG3rf+VJKnHN2bLwB2+EKtXmbsBv43VtOMYpy2FSJsY5b1nUlnivaZPNjqCQ9R3223Tnet+fWGs7ebZxmstrDbma18MGgr4oz2ZEoSykI/eCHrIAOAZ0SpQ0O83Yawy564Izwg7bxPTj7Lj//oJQOc2JmbN4hxxXmgbXUYlemSLMMss7u1u7vKQ7m82v9e0VbXFSE31yYe7idAMyCnM3gh4j0tcf/y1KQdTEZzRX6TdD6DEahNwjQ== X-MS-TrafficTypeDiagnostic: BN3PR0701MB1378: X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1378;31:zaZSpNo4+0INz9J9tFMLuZ4tSY6+1ESw2jsy4UsaIWz5HAzUS2SzBrZGqtvHRwsQTsKmzTEL2+Q6avFiwv3WeBVFEErwgXdAv+Al7JVdHJsNImPuuDU272RURPDw6npwtfsbtCwzRNauhzL8Ef55GrdHVn2wLq+hM6seggQ6PZ3V3PVCWDlgTYA9nl3HAvZSOtiSzKlH02cIoosg10HgaIvhHIGBHz4EdDjBbxx8m5s=;20:czCKZ4nxg/UMh+NhLgY757cKi3jAqhjDxz9hclTwtX12vifhTb/jXY4iGXyyek2dx/IG9lvCuQdqAWsAMPvQtAWm8pINvbg8dRKag9TmBj6xQSgKD9mFBIZJzS8ijuTXh8TIuueozMIVqTmcD45jbkkkwfUg6/OeN+gVEiMhVunTQL1taSgkA5ZHKxILXskK3CZAubVcNDs/juzCC+gTvgBcAv8TuPXaPzM/Iq6+cYFg8WbaeJmVaCp9M7sNc4G3/YjkYRQaJXT2V6G3eeJrKVY+12Y0EHjYoIh9rCu3ln9Y3meL8jQNl/8eT24GPg5+AdNaab/AbCR7qYpVKhoVgVksNLl+AO6KLdSOfKv2RTRN822y2sM0zf1p6lkVQMzJ713wAkkxNYYeq883W9SdknCemmTfnhy5H041t8UEzV7bIMZlTpJuDxayaCNqV3csQZpOnsXLffxgcFeFWMnMp6RygTmIScExOLFNqwD/PAQxiTIldR44Bc15xP7GoHml 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)(3002001)(93006095)(93004095)(10201501046)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:BN3PR0701MB1378;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1378; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1378;4:VdmmXj52ACQ72SKEREbrR0Np8vdlEU4lLzfJXuQ1AGXmv7ikuBfmFSe6S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bSOC6IC9iwcLRiODxYGr60CcMK0vrVi4S1OBoRBVX9ycdz0Qj7X8lKCjuZfrDBgP9E1Q3pVg1D1S7YqMm8/Nzh2JloD2tZgczPkFDJZeMjIs38pP4VRSMGEHM78wCApouiWGDH8FYGWfgnztvULF/+soj7JAwQ8UhpePHGx5E+1I1ZirzasTeWtabDnFHFLYbIeCuWbw==;5:KwtOfwZmLhMIfFD83fNNBQSbTk8+RJjs+tnTePv9a2qk+Q1MLP9GzI6kQf+5fY5r2ckR+Urh/S4+bD1BEtluQ3brAyYv7xRUuSQgOtvjFAXzIRFOLWbL6GEraXBuyC5y8fwjFri7XOUfbhnQi8k7L5/P9c5umsJDn0jaeZvArDA=;7:rqJPaWazkK60nr4ZqxgqDeatH4FIY3pLJ6GGCTGt+ENLC05RLkeGghz4YRKAbs9TIKPBj+0SEHPpdDnD9q0Yz+EJVLcMZTvmfJm/YCaLl1Q/U8rm3XOGpjgnr7KUUKoUhJ0SV8I3tLR/e3RVC2G0zTYxQV8yvhjTa6Y2Ibuz8n9t1J512MtqJ5KE9YV1ISRPIewf/hTFIzwV69Icugel0Z0FRjXtarOdXoL9k6T+Y6fEVLBPVteXMWPSFH5zrx2M SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2018 06:13:43.7850 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a561455a-5755-4987-8c7a-08d5f775ef3e 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: BN3PR0701MB1378 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);