Message ID | 20171228203345.2702-22-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 E434960318 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 28 Dec 2017 20:34:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6E962AD58 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 28 Dec 2017 20:34:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBB872B3EB; Thu, 28 Dec 2017 20:34:29 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 659CB2B1F6 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 28 Dec 2017 20:34:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755307AbdL1UeZ (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 28 Dec 2017 15:34:25 -0500 Received: from mail-co1nam03on0079.outbound.protection.outlook.com ([104.47.40.79]:64384 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755090AbdL1UeN (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Thu, 28 Dec 2017 15:34:13 -0500 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; bh=FDSqo20JyL7AThDcJ+0fnbRNdNhs82DrFXRPhMUqEJ0=; b=Qe69rSlkFCivdVMtZILzAKNddf4BFengg5aj+vrWNhScj+eh9FidGsdt/e9UYauDFKUnLQC4FqxtJWmQGxBz6YcP+jmQb34RclG9Hp7rQ86SsWqZLa3vDq3PpOk2+psz/Fh8GJtrOpHbLLaTNVgLE/Nqzt4LM07eQE3XmwaaG44= Received: from BY2PR07CA0081.namprd07.prod.outlook.com (2a01:111:e400:7bff::34) by SN4PR0701MB3824.namprd07.prod.outlook.com (2603:10b6:803:4f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Thu, 28 Dec 2017 20:34:11 +0000 Received: from BN1BFFO11FD008.protection.gbl (2a01:111:f400:7c10::1:183) by BY2PR07CA0081.outlook.office365.com (2a01:111:e400:7bff::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.366.8 via Frontend Transport; Thu, 28 Dec 2017 20:34:10 +0000 Authentication-Results: spf=permerror (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=none action=none header.from=cavium.com; Received-SPF: PermError (protection.outlook.com: domain of cavium.com used an invalid SPF mechanism) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1BFFO11FD008.mail.protection.outlook.com (10.58.144.71) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.345.12 via Frontend Transport; Thu, 28 Dec 2017 20:33:50 +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, 28 Dec 2017 12:33:49 -0800 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 vBSKXnTU002910; Thu, 28 Dec 2017 12:33:49 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vBSKXn8N002909; Thu, 28 Dec 2017 12:33:49 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v2 21/37] qla2xxx: Reduce trace noise for Async Events Date: Thu, 28 Dec 2017 12:33:29 -0800 Message-ID: <20171228203345.2702-22-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171228203345.2702-1-himanshu.madhani@cavium.com> References: <20171228203345.2702-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(39850400004)(39380400002)(2980300002)(448002)(189003)(199004)(54906003)(305945005)(6666003)(47776003)(356003)(5660300001)(76176011)(50226002)(1076002)(69596002)(16586007)(87636003)(51416003)(478600001)(42186006)(80596001)(4326008)(2950100002)(72206003)(110136005)(8936002)(2906002)(8676002)(106466001)(36756003)(59450400001)(50466002)(48376002)(85326001)(86362001)(81166006)(81156014)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN4PR0701MB3824; H:CAEXCH02.caveonetworks.com; FPR:; SPF:PermError; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD008; 1:xKgh0Vvv8LJgJ9JQPV9hX8Sf0yATsLbDWvrfb0R0Ca37jC6zB8tFXFswQTdX3F/cqBGHZf4YueLwFeLpWS3NQfDvprH4mIQA5l88OA7GvWfn9/QomlhRarWm2v4SpcEE X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91f69fea-6169-4ccd-308f-08d54e324dee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:SN4PR0701MB3824; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3824; 3:0SLmrGzvQKZwjX5UFAv5UM50CN08VqMDEGiAKLV6fIK851eSirP8ZX7IUt92Dw1tujz94G7OljizTLeTpcXXdWk8CfuWWqAV533BcDz4NopTNDQTCUnCP1h1tU96Y2U1MLUdPoBjMYbBLqD+ux1nMDRSkZnc/IXhjoIEaEaUki6ipOS5GWb9/qRJMERyXzxtv6cT9YQHQfBSBxzJ3aY+IfdjGYaEv//Nv/YjuAgjILqPgyNzgpPUuybp5BMTRgTz5ULhO6b52O7cMW1xH2xhsCUbpsboXcSh7wMGGBpDPBd+VP4ceWTN+2wv0UJnLG9BADwTJpfIMjbBLrO5hhcEiA==; 25:TSZfMZbo3p/F9KjPJMG8ppI/jWFLiRq2owma1/qPefK5d9RIBKYkR6kXNx2bf1c34YLTEmOm4xZBt0feiavTkCFUqOuVtugMoslHwJgHJGecGybER++RODa1bjwMEH+UYjBtRsfkrpB7C3cQoPyTwddxEPZFIhy/aK53MkxbjUpp4zOENeCAoK01vJMGlj/aQsh0gnbf1OXpagf8NDyTE2gpsUe+v7b0OAEDxiR1QPaGWmWixYDTDAEdxZaXz2gHq35la7Pj9Jw1Pkgmg7Pp137kG8YWkawg5cvaslo7lW2VlRYEW0lV08mAv2j1mSi0MNcnlmtJsWaGC20Ceukl9w==; 31:/AcyGhQbE2XEQ0enbMUWQtDVHAGFnou5f27suOlokG13Vwfr2v1mXZygVb3xmgb/+WREuaLFzoAytDxq99b6grdY09eHyo2g8LjzE0XMgLmptlX8F3RezLXSMPXWbq78ulcQHWM9MMb8oENhXneYRadPxJnXUbt18EfTgEy5ag3t/I+IZiiM9Xs8HP5M5nk9lXxj+Sp/TgpucEFcxj0u9MUtLNq2TZaK4/E8N6yswWQ= X-MS-TrafficTypeDiagnostic: SN4PR0701MB3824: X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3824; 20:PGYlrMBalpHMiaM4SrJwRTxJtsy8AonFimRfXQPKbMSjHgbBqhcD5unQ++g+jlAp+q3JuKQ3vAnhZOiNTD/q73Op2/C9rXslGmS8R7DD8b8Bo+8yI5w6RpaXNamZMhfUxcBbAOv+GWtSENs+/b5C8aGZHYfINK4LzaylCgpQ9HzYgZ/stLmFIx7zL3/hDKVXW/4baffbKbe2q3RhMLLKY9w/xWkxSL4eJ597IqrthUG0YWLfr/o9fRCpdDI40qKRGK+tdyq9wzWzaF2nyHtw+1X3FWeuPpU7S8qZ4QeVCiwuQPggiyV/gxUCWz90rfPi9s10rYVpBQnj2tLwvKFp2iYwj5ZfIEmOokv/xu/VfxrOaGFrjYGQJRbTUtctIaDR13kVMbNdJGEtJUhnc/DOoP3t1SSYQpW0g+SLpbExP3m2yejcTzXV3hcTOmfl7/TPoS36Ff+qYxiet/uoNekOmPQ7SarFLdrD5ot9nFsj7/6uipc6yvgYCScZOpv4GfMS; 4:8Cy7ihNBwVYtDcCWlbSV6kvN/UbTf6cZONHe1gxEcNLOyER0rjjNIio7PdWA1nR3WJ76SPDvdJRh/OjxTQPCcE0f5AJfm83kftLUS0RpPYUFj65q/jVy8Cs2lM6RnhgZyl1cF9lz124t8BJ8swt28bPze6W1yWTXeDktGB2s/MxE9ilnrcgnn63mIjHS/5e6xRP5Vzm6GeO/VeXe6K2ylNXrO9U81CVWKNR4yOUKNL0WaoVOFdIZkixKquOPkwzb6gp5zJpF4471MhVjXL7LQA== X-Microsoft-Antispam-PRVS: <SN4PR0701MB382444D2F56272CF095043D2F5040@SN4PR0701MB3824.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231023)(944501075)(10201501046)(3002001)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:SN4PR0701MB3824; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN4PR0701MB3824; X-Forefront-PRVS: 05352A48BE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN4PR0701MB3824; 23:rBQ955sRpB0jCrURuocKp/EiSl8sqy1iDf00g1T?= =?us-ascii?Q?rnVsIHjx5dyg1piU/LwfT+aNAXwWXOly7uT2Knv+53uCoQME5Vd7xUUNyn6U?= =?us-ascii?Q?VyIeN58aHtI1eedCOrgwAz86clppn9sSNw+i1F1XXWuQBVdPeTMMHc2XHhHB?= =?us-ascii?Q?DFSpkBpdrUX9phElj/V2gHz915MwEgYcXUhqSrOEs1dfBPaYm6tJ95t8qE6N?= =?us-ascii?Q?44AazDRIBWcKweQz++CKXPdbxcOINb5b5t+98PvCauKuGk2L/A5eDtG8zd0N?= =?us-ascii?Q?cU7HTqPiRrL39r4XmfQXvMR7Ud7NwDFlStbe39kvVIYja2E6nkCIZkvRe/6t?= =?us-ascii?Q?zfDwIhWR4+oPBzYIrp5bwdPNXJS1lLrHOwS1fHuTF2Py6pwGFeEtuV0IdIUG?= =?us-ascii?Q?bWT4SRz5DDPjfpJ3Pco2xnja5XEp1Vyt4FLMzp7HTGpcVbiKLPsjoX7FonfT?= =?us-ascii?Q?pn6K4yS8+KDQCeaT3KIsQsT0ItF18iGUxyou1jS3d78Bd+XVSxIOd6/GYrhA?= =?us-ascii?Q?46kbP2SAZRiGydm4Jwwf01eXN+1HbmrxDFAbSuCSdrzDyyp3qwtPzYkJUVvC?= =?us-ascii?Q?jS30ceXlNWyDpO1WiiNdfRBfIYvoXrPdZQBX+k9nBkyakCKOOSb1ad+NjpEL?= =?us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DOTI1Wr0YwCzMoZmCygEB2w9PCR5oO1GnvTA0Z/yinvlNV4dXltPdFUNRQlPJQZFxvqXOjO5sazpn8FkbxU3MEeldC3jqxylJdHxbY=; 7:aFgsjVMOx4u7MHh2mmURrLpB3+InOT6W1OiPZHzjRoLE1a3wzVw5fw1NrWyhdGplz6LG9NjGfuWWL42zpzLyn+q1sTz1f4cpJ/Dkd5w3QLLLcTweWIPdDXH+8NvFLi39I27VOMxG9jlqtUBLrC1lfYCWv04vFf2MpSSmuBPwi67eEh2lzwpvGF2F/HLvHBdX1KwE+TPdBitV8AN34dupLvf3b2757DePdwGusLdkjr8Ok1snUATgjq9sNHv4amd8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2017 20:33:50.2148 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91f69fea-6169-4ccd-308f-08d54e324dee 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: SN4PR0701MB3824 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index bf365f8a9d32..e965b16f21e3 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c @@ -265,13 +265,20 @@ qla2x00_alert_all_vps(struct rsp_que *rsp, uint16_t *mb) case MBA_LIP_RESET: case MBA_POINT_TO_POINT: case MBA_CHG_IN_CONNECTION: - case MBA_PORT_UPDATE: - case MBA_RSCN_UPDATE: ql_dbg(ql_dbg_async, vha, 0x5024, "Async_event for VP[%d], mb=0x%x vha=%p.\n", i, *mb, vha); qla2x00_async_event(vha, rsp, mb); break; + case MBA_PORT_UPDATE: + case MBA_RSCN_UPDATE: + if ((mb[3] & 0xff) == vha->vp_idx) { + ql_dbg(ql_dbg_async, vha, 0x5024, + "Async_event for VP[%d], mb=0x%x vha=%p\n", + i, *mb, vha); + qla2x00_async_event(vha, rsp, mb); + } + break; } spin_lock_irqsave(&ha->vport_slock, flags);