From patchwork Thu Aug 2 20:16:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10554183 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 47AAE157D for ; Thu, 2 Aug 2018 20:18:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93D1F2BFCB for ; Thu, 2 Aug 2018 20:18:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 855F32BF97; Thu, 2 Aug 2018 20:18:02 +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 1F1972BF97 for ; Thu, 2 Aug 2018 20:18:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbeHBWKn (ORCPT ); Thu, 2 Aug 2018 18:10:43 -0400 Received: from mail-by2nam03on0078.outbound.protection.outlook.com ([104.47.42.78]:43967 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727111AbeHBWKn (ORCPT ); Thu, 2 Aug 2018 18:10: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=vRRRrV6nQQ+T0x5iGi8ui+tamwxP6yomvdPrq7XDmbs=; b=A/DJ6WhKgFAHym6FYoH9bseLWkSi7gHjxMGD03Q3Dm6AjAWcmqKKGHMCMSCPiDVTpisfyEHBrir+WGyDX4ex5lFyw5SFFSnT8nNEM60nUR0wmKgFwqK4OVudhpw9CqKKLOJwnaHKa8+eqF40HvH5uYyeaATh5HCxnGQU42l8QB8= Received: from BYAPR07CA0016.namprd07.prod.outlook.com (2603:10b6:a02:bc::29) by MW2PR07MB4076.namprd07.prod.outlook.com (2603:10b6:907:7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Thu, 2 Aug 2018 20:17:07 +0000 Received: from BY2NAM05FT024.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::201) by BYAPR07CA0016.outlook.office365.com (2603:10b6:a02:bc::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1017.15 via Frontend Transport; Thu, 2 Aug 2018 20:17:07 +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 BY2NAM05FT024.mail.protection.outlook.com (10.152.100.161) 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; Thu, 2 Aug 2018 20:17:07 +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; Thu, 2 Aug 2018 13:17:00 -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 w72KGxh4007962; Thu, 2 Aug 2018 13:16:59 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w72KGx60007961; Thu, 2 Aug 2018 13:16:59 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v3 06/16] qla2xxx: Silent erroneous message Date: Thu, 2 Aug 2018 13:16:48 -0700 Message-ID: <20180802201658.7903-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180802201658.7903-1-himanshu.madhani@cavium.com> References: <20180802201658.7903-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)(39860400002)(396003)(136003)(2980300002)(438002)(189003)(199004)(81156014)(4326008)(86362001)(446003)(11346002)(336012)(1076002)(26005)(15650500001)(51416003)(80596001)(186003)(76176011)(2906002)(87636003)(478600001)(8676002)(69596002)(81166006)(72206003)(305945005)(16586007)(8936002)(106466001)(2616005)(486006)(6666003)(356003)(48376002)(106002)(42186006)(14444005)(476003)(47776003)(126002)(50226002)(50466002)(110136005)(54906003)(44832011)(36756003)(316002)(5660300001);DIR:OUT;SFP:1101;SCL:1;SRVR:MW2PR07MB4076;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;BY2NAM05FT024;1:Qa+hYN23+ULM2Kxkom0AiIE/T0Pl+7ZRm0eiCs3vMKQALL4dh/mGxFBvCiPWXhXmbE/VnrPWpfpUHq8TT80XnGFNnhuELPbErcc33NlOxWreO7XXy63M4fJ8R4vuy98v X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 404ff4b6-f5c3-4c1d-0d80-08d5f8b4ebe5 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:MW2PR07MB4076; X-Microsoft-Exchange-Diagnostics: 1;MW2PR07MB4076;3:nXUcMLs9YAqnSsGU1TTeX0+BZAbQmkd1PZFx9a5QQZHCPNEItWdWKHCzDFyVtz0mU+p3fdCBZixisrrzvz5z6TvD91rIXt3imdAwjC/wVW+BjR8KJSaVxsSulA46vYnMlEucgUtdDBHzjwA0FTvZvxkDRzjFq6u+UzKyJFs6yqdYADp/L2CN2h0QAC4ANSCZfe8oEe2Op/u+CY4cGmJkYl+UdtOUplKnTe2kgVMGs5WQze5GYYpV4d6mJIlp+gWfJqIqhPeeTsVFGzHw0uJxAl62yILAAYO7v7zG4CBoatk187gGEg7hL2OQj3WD6+LeoazWX46ayKeu7KyZ+TkBJkcOdgA7Fk3csN8EK9JTN30=;25:78kuEj80KbNR61ZEAaZCKx66uJio4xOusatH1pDk+br4Z9kV4rA4P+eENMvA2JUdozOxBVtV16jQwhtrXUTcnfzEiguZ7Ozhmr5eaDv85N/x2KpzYqcGFIuEInv4cjERZBRBS2tjgSlRhSjtsiO5CPsRuseTXY/cAUqhvS8brKKd5kNzJk3xbcMmYqaHVDyoZO5RnvITFqjffb0OFo97y9dj08M3Zp+3gkWCaaX1fqAML+l1Ix5uO2XzHjP3zKL7KQPHD7wYXSyVFl7urrSo1HFTrb5gfpIyRyyftqkJCSmEnWSbLP2s6CtDhgG1M7d+IPBf7PWnWETssy3a2MFSng== X-MS-TrafficTypeDiagnostic: MW2PR07MB4076: X-Microsoft-Exchange-Diagnostics: 1;MW2PR07MB4076;31:AwHb2UDzKJEnEi0yd6c3DFApJdw6MdKwZ3MZKlGeDTKxaADe7IA7Lu0aLv7DXACQj0RmrTgtrejV0ZJKX3tw/s60N3Z15OBaByYjuysNpBBd+6IJJ3rD71pdas67+Rk3K71b5wzCinkAGOlUedY5f2jUTDPMFkqj9R1paEr4JFJCerI+tJb+VDxwh+PF/D8RfkG6t5PZsyzpfFL1VTtlppqx1VWbZ1t8TO8FTVrw1zg=;20:SL7kOcgrUHIFNkbhBvDCeaOkjzzjiuJOaD0wbiGTpuGVJEK94ue04lO5TFhVegNIn36A58LYTd94+7KHU3YWoDJL4K4VjNSjJbPBnUFARyZU48e3L4RJ/hQv0j2rWe50/pMveE2kW2LwBIj9XJNOTby765S5LiwvnjyrOuuj5g9hzOF30As+WOfGU+FU2GH+jiHfCXcHb8ZFtoEk7JqlB4x7mFRSXCNuVBhBB2e3YN6J3puh17II8iBh4/qdpfk12dRGYCpfHWS124DnQ5oNCypwEhzDM5oKBSkK7pFktN2bxQXpfG4NTAygOut58HA5pSxp3pFf/cgMevd/izw7/xyg2u2fBlnPrwSVqgUCzKPzOakamgLDm3mF+naanvpGm2FOmUt+bhT9Q1cKohjnLbLwBLGEd81TtsruTw6c+6RW01lwEXtFFSRWWK93UauiridyOuZ+n9/8zfbgWufxPQYUUNGnmbGL+bl1RiqbMYxDdR/17xuYBVmRVjdmP1tF 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)(3002001)(10201501046)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:MW2PR07MB4076;BCL:0;PCL:0;RULEID:;SRVR:MW2PR07MB4076; X-Microsoft-Exchange-Diagnostics: 1;MW2PR07MB4076;4:20A6SH8e3WT/7e4kCYyGOFrlTiM/RBKO6SiO5aZ6R4K2tFCjhmZqNTREaNy5Ph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2kdICHioGjbjdfK3kgMcNp8/mthi73UvDSVSHrDWv4l5Nv9iC8rLhSh0gq7eD5TXaB+sBFBLuErrEq0UkJ/G7fAP8nAdxCaKU1GYmqrKVN4LFt0/XQ747FvFcoRg3tJ1mWcLCAlI3IpTXGg68aIzkXoDmf6Zx1pVk2EhTQAg==;5:UlK7i/nE3ld2Rulehn3r9+nWUNQzmGXG7RpedcXmSfQVUWxHC1M50eEPNZ0Wcl7ozCRzo9mm5XHEJ+hpqst+q9pcVcc0s9ofkhGXGzaQ4o/h4smoa54m4FsWx4VL4FOpoMhXSFE/z6jFYm8OVKaouguyxfKLG1PRu+XZ4Vp/hHY=;7:qnWSYZafo1sJWtNRl/LPqUB/NuPkvXlweGcdCAcMoEa9aU5kmlHLiWSoNMstD3sluQo03JzRRadAeV9yPjVWbfZNMCV0tRhhtNRmv6t8VJ/FcDe/nPbptgDJBElV5h3lqhD9PsEoTgdUUPVFa8GA9mfdeHFn1brZqzx8qK8S6ADPvHnSMK4rBMe0WBg1tZ64nBBFJM0qYq+LJXr0+k8PE+OkM+tl16jjz0WVsz8xz12vjv23HKh72rODtOwkOUt4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2018 20:17:07.6064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 404ff4b6-f5c3-4c1d-0d80-08d5f8b4ebe5 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: MW2PR07MB4076 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);