From patchwork Mon Jan 2 10:41:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9493339 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 AB88E60414 for ; Mon, 2 Jan 2017 10:41:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5F3820008 for ; Mon, 2 Jan 2017 10:41:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA97926212; Mon, 2 Jan 2017 10:41:52 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 053DB20008 for ; Mon, 2 Jan 2017 10:41:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755230AbdABKlv (ORCPT ); Mon, 2 Jan 2017 05:41:51 -0500 Received: from mail-co1nam03on0057.outbound.protection.outlook.com ([104.47.40.57]:36836 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751279AbdABKlt (ORCPT ); Mon, 2 Jan 2017 05:41:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jW3wZeAIP9U8uw4F8u+EsDKdcZ6pGlRg6KPBelWmLlw=; b=Ll/VGsM/Hq8mw29kJgRWrLIxwLLVzlZz0SD0nXPtPn+t4821bZ/lopLRLkkv97t2wRVU2ziVPFjeOftIU6uUmv/aYn6MuKA9mybQ/4A1OEvbED05pHpQN4nOoviEOeatx4C/k0NiwgmjEVaTc3RLm0lDQpbf7Ya7Q7ExMed/bvE= Received: from BN1PR02CA0030.namprd02.prod.outlook.com (10.141.56.30) by BY2PR02MB395.namprd02.prod.outlook.com (10.141.141.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Mon, 2 Jan 2017 10:41:46 +0000 Received: from BL2FFO11FD043.protection.gbl (2a01:111:f400:7c09::158) by BN1PR02CA0030.outlook.office365.com (2a01:111:e400:2a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Mon, 2 Jan 2017 10:41:45 +0000 Authentication-Results: spf=pass (sender IP is 74.221.232.54) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 74.221.232.54 as permitted sender) receiver=protection.outlook.com; client-ip=74.221.232.54; helo=sacsmgep14.sandisk.com; Received: from sacsmgep14.sandisk.com (74.221.232.54) by BL2FFO11FD043.mail.protection.outlook.com (10.173.161.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Mon, 2 Jan 2017 10:41:44 +0000 X-AuditID: ac1c2133-b8fff70000000ec6-56-586aa95def43 Received: from SACHUBIP01.sdcorp.global.sandisk.com (Unknown_Domain [172.28.1.254]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 21.57.03782.D59AA685; Mon, 2 Jan 2017 11:26:21 -0800 (PST) Received: from SACCASIP04.sdcorp.global.sandisk.com (10.181.10.113) by SACHUBIP01.sdcorp.global.sandisk.com (10.181.10.103) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 2 Jan 2017 02:41:42 -0800 Received: from ULS-OP-MBXIP03.sdcorp.global.sandisk.com ([fe80::f9ec:1e1b:1439:62d8]) by SACCASIP04.sdcorp.global.sandisk.com ([::1]) with mapi id 14.03.0319.002; Mon, 2 Jan 2017 02:41:42 -0800 From: Bart Van Assche To: "dledford@redhat.com" CC: "andrew.boyer@dell.com" , "monis@mellanox.com" , "linux-rdma@vger.kernel.org" Subject: [PATCH 08/15] IB/rxe: Issue warnings once Thread-Topic: [PATCH 08/15] IB/rxe: Issue warnings once Thread-Index: AQHSZOTNhKfzN0+AFEiMcUwWcW06Bg== Date: Mon, 2 Jan 2017 10:41:40 +0000 Message-ID: <1483353613.3592.28.camel@sandisk.com> References: <1483353316.3592.14.camel@sandisk.com> In-Reply-To: <1483353316.3592.14.camel@sandisk.com> Accept-Language: nl-NL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.28.1.254] Content-ID: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsWyRobxn27syqwIg43fjS2ute9jtXh5/gOr xbNDvSwWG96vYXdg8Zg0cwazx7Pph5k83u+7yubxeZNcAEsUl01Kak5mWWqRvl0CV8bM18uY CmYpVjzt/cPWwLhGoYuRk0NCwERiefdSpi5GLg4hgSVMEgdfn2KFcM4xSpxofcsM4RxllJj8 7xgLSAubgJHE7Al7wGwRAX2JQ6tXMoIUMQvMZZRYf2cpO0hCGKjoQ8MMZogic4lbLZdZIWw9 iYk9z8BqWARUJK4/WQE2iBeo/vvLVrAaISD7ZOczRhCbU8BY4vj040A1HByMArISLa+5QcLM AuISt57MZ4J4QUBiyZ7zzBC2qMTLx/9YIWwFic8r/rGBtDILaEqs36UP0WolMff9Q1YIW1Fi SvdDdogLBCVOznzCAnGBusTJO2uZJzBKzEKybRbCpFlIJs1CMmkWkkkLGFlXMYoVJyYX56an Fhia6BUn5qVkFmfrJefnbmIEx6ui8Q7GfxvcDzEKcDAq8fAuuJkZIcSaWFZcmXuIUYKDWUmE t0U9K0KINyWxsiq1KD++qDQntfgQozQHi5I4r/yB3aFCAumJJanZqakFqUUwWSYOTqkGRlbu nwz5x7rSnm57n5N74Xva1k3Xlt7bEHwwpPz5FbY9b+4tfv8tfu+POxX/Vl1N6OV7e67At6T0 SKFMm2KRBaPUCrcnqx/NUt4gdrananYzm8HntH8Hhe99U93oeMRtLUfUG/GT7bF/J2X++3yo uaHwuMqcNY8kRIy2hP5csbFup+g8X5PQDSVKLMUZiYZazEXFiQCts1VS0wIAAA== X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:74.221.232.54; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39850400002)(39410400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(189002)(199003)(38730400001)(7736002)(54906002)(6116002)(3846002)(106116001)(81166006)(23676002)(92566002)(36756003)(2906002)(33646002)(102836003)(69596002)(2270400002)(6916009)(2501003)(110136003)(1730700003)(2950100002)(106466001)(8676002)(47776003)(81156014)(5250100002)(2351001)(5660300001)(76176999)(97736004)(103116003)(626004)(189998001)(86362001)(54356999)(68736007)(356003)(4326007)(305945005)(5640700003)(8666007)(50466002)(2900100001)(8936002)(50986999)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB395; H:sacsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD043; 1:z9unwFAIV3qQjEeDNoQA2XCf25BbdhcU7MZS7Gcri1MXcrmlMvmI+D2cEIGAmxNlBov9g3Hz80Th62xxS7NrxSb92OR+suVt60+mDwC3T7DSG2YJNypiN9IGGKmsq1nJXmDKeZz+MLOn7TuWJ0Zr+7LLE+mr/BCgaqOTQOIVFkKqO7mk+iVvLPTk08hes5YxLk2Q1wkASC7KB0YkpYsNAzveI8slNauL0jEYxfCrYQ4H9ru3zBPbIo9NKd3NuSrI0gTfu23IElcOmxEBAnJ3RBbKDpty0D773974pIjzzGS2SghElJR0eV9nk/IHmtZtJMqN3xubtU5NOOTZlfNqlRSEm2nCfIl9OKbpv3swwNqB0cAgF2OXOXXVLsHQEWh7XrfU2oaA/IOUNJDRtCAJBayOw38/I/PNAUfN+vbIIqoJcZ/6/m8WLrjT/UB4frn/+0qV9Sj3Q+U7jVMgQIYvYE1lSMDvRhHNH1Bczt8bUVCXcwtkl3iiwE1xjlLhZGr+1QduH1+OCF3T95eAnVBYzge+iCl3/6HkvQ57AjqiKsq8OwFOgKEW7py2Liso6c03 X-MS-Office365-Filtering-Correlation-Id: f646d029-e3bd-428c-b232-08d432fbf23f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB395; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB395; 3:hTDAluvf8aRmD/SXIcz2q+b9H0feDfVkf9jlibSeEsWdASE8BNdyjpfHxP1UKGo2HaAV0UE+vM1WPrWYMm7UJh6soKIDVKfYfWa+LET07DIA/ClAeU4c0vP+oh3AI9ulEmG4lpTCdrbBReBrKn9HO6TJcJJRN2p9xbNbWpCwIWduR7HruscGNHYBW771D0vlY+BONqrZBUbC1RLDlntsM5fYSHD09/GdSq1LL9duoCCiSoZuVaSeR8XOifm/Y3RNBCm22VvNkC+Ju/1v3PRctEj/tPxl21AivmkLG+G8LQMol/H9ulXC7Lu7Js40oxTG5+dmO+wCiUdEyCcxOhEeu2uW6QoS1GTgkH1RVGOVxB4b3e904BhCblYcKmlEvbY05fzN0oulQ+pyLxZXFyULYQ== X-Microsoft-Exchange-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ruSewbSP3G+/nS7g0rwsKQSum2aKDViWD0zvu/A32865WpYsJO8s04pG1aN5rIhYwbDleA8x3BrhqaQd0b7C8JWpUoeBOZr/H0vFDEsHvGF55Q313rUCJ3Q==; 20:j7oBsEyCiFQOVrDNMJhrbWd0pg0Gxlr/6Y7zH4ZTGlGQysXYZAee/2q6iisefp0iNnB2XDtuiaLI3b0MNobklv4jeOOk7dk1uyKXKHk8+XjoufGjwiMOrgnWrdOW2FeabY8JL++F66p80Qkv6gEYWhD9/R7zBNbN8bDQhI7gWp7JONjOWjk84nWN4BpBqNmOvpHEFQB6YCttyDocU+mMgnWxktsbbfOtMfChyr7JaGob7eqA7knPSoQtn3KT4S9BBxEY//gtmp26ABJWWWf5aM/MVF2f1kMpkwSMw/5hki+yCJc4OSe74US/5jwdyGT3zP2rCkMIguFazxu7OTcE7s9cMoM4J8yf0eH0TlnQ9UqMAxZFnLZ+Cm0d9lA/bwehy+j2ZtsnGGZgHCNgKx8NfMneSp1avuxRoKR9G9qyO0VpwOzdqUzB/kWdLosoWXuWo4YlSstG3xOjhzypewIIp3452LN1+JYQ4YBEOWBsWqJgg5H5WAcV/NzjbqjZHL7A X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(56004941905204)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13024025)(13023025)(13015025)(13017025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:BY2PR02MB395; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB395; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB395; 4:O0HO1O3a+AlXJUt+mMUCXtGwiYoSvasBXAuUl2bvYx/d/HCNCI9P+UPXndSSjnLZn/z/sRyWOKNSToJaeLAlG7b7PR+nSukbC9+WxdJ4oj1K6lYXlC9Edza4Ld67K2omE87ABOyufsfp5bah/3A9x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P5+8PWVdeVfyr6VA4afurNFuV+U7KHRVtKttABmzdqiWrel3GOj50N67uTtJroraegURNA0sMJEdt/U4wLGa4lsaaju6ihlIhx2pSQGr906D404zsJBYhYrhT+S9DTYDRZ9mJ13CV/zvZw==; 5:hbAOFLGVFxQJUcW8KpbxH28fD/l00TfJ1ac5UYLAkKk6PdruxithoM7CnDGSNovgqycRZi0ldrxbi4YGdIr0wmPMCd9QFXxSO/ts+Osgfr/Ei/opCop/tBlEkgHqXAjYcxA/TN5yIWYzDyaomgY9AeJ+fTHFsePM0PWlRNsmo4I=; 24:iZyQoCwSzmagNMOHAdNetBBwY41pWJWNReI3TJDmAFz82CpF/xX4dnz19qgJKQ+tcVQaon632mCLd23Q9rLLYYxw7kfFhidqTj32tOpfAhU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB395; 7:L3DSNamwt4AXKx9bJ/jBP/bCUywiE2caNiO9UBUCeX/vxM8jA/tfjtEbIBVEgJXS6H2NzVgE19JbRafZqHmbnpStvhLdvIbWm5Jy9lwIf9w3VDjBaXgyy9XftcmvpR2ga9lSBmJVT4rwpo37SEPa4KpLqzQiyxmNjCQ/FAS7nj3tX7NO6YXlV0TQUvHUE6irvUD0V9rRzIsO6HjBFAizeskvOkjoAnHjzIuy7WQsJwG5IEIb7+Hz0F3i5fOmGeIQ9qPCXfrqIrDv33zRA+S42bVS5jaSfHOT0+WStNiUYMdodpvdUnsGTn92RKi2mDrF17b/jdnKZZ87oiy2b6e/YbgugJlWW4CAhD1ONWF1M/mrl6XvtN65M1dJ4tlK1gnWj+iEXxJuOxN4ZdZSm8bmihPEQ7EGSKldwC6GMwmADe6cRwZXMwOpLGqsZZOKdOPcq8l29t3N6pGS1+GR35dGmg== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2017 10:41:44.3843 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[74.221.232.54]; Helo=[sacsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB395 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is strongly recommended to report kernel warnings once instead of every time a condition is hit. Hence change WARN_ON() into WARN_ON_ONCE() / BUILD_BUG_ON() as appropriate. Signed-off-by: Bart Van Assche Cc: Moni Shoua Cc: Andrew Boyer ---  drivers/infiniband/sw/rxe/rxe_comp.c |  2 +-  drivers/infiniband/sw/rxe/rxe_mr.c   |  6 +++---  drivers/infiniband/sw/rxe/rxe_resp.c | 11 ++++++-----  3 files changed, 10 insertions(+), 9 deletions(-) --  2.11.0 diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c index d369f24425f9..e912e5396e8c 100644 --- a/drivers/infiniband/sw/rxe/rxe_comp.c +++ b/drivers/infiniband/sw/rxe/rxe_comp.c @@ -254,7 +254,7 @@ static inline enum comp_state check_ack(struct rxe_qp *qp,   }   break;   default: - WARN_ON(1); + WARN_ON_ONCE(1);   }     /* Check operation validity. */ diff --git a/drivers/infiniband/sw/rxe/rxe_mr.c b/drivers/infiniband/sw/rxe/rxe_mr.c index 8ca3acd327b3..8cf38b253c37 100644 --- a/drivers/infiniband/sw/rxe/rxe_mr.c +++ b/drivers/infiniband/sw/rxe/rxe_mr.c @@ -123,7 +123,7 @@ static int rxe_mem_alloc(struct rxe_dev *rxe, struct rxe_mem *mem, int num_buf)   goto err2;   }   - WARN_ON(!is_power_of_2(RXE_BUF_PER_MAP)); + BUILD_BUG_ON(!is_power_of_2(RXE_BUF_PER_MAP));     mem->map_shift = ilog2(RXE_BUF_PER_MAP);   mem->map_mask = RXE_BUF_PER_MAP - 1; @@ -189,7 +189,7 @@ int rxe_mem_init_user(struct rxe_dev *rxe, struct rxe_pd *pd, u64 start,   goto err1;   }   - WARN_ON(!is_power_of_2(umem->page_size)); + WARN_ON_ONCE(!is_power_of_2(umem->page_size));     mem->page_shift = ilog2(umem->page_size);   mem->page_mask = umem->page_size - 1; @@ -375,7 +375,7 @@ int rxe_mem_copy(struct rxe_mem *mem, u64 iova, void *addr, int length,   return 0;   }   - WARN_ON(!mem->map); + WARN_ON_ONCE(!mem->map);     err = mem_check_range(mem, iova, length);   if (err) { diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 3435efff8799..6dbd069689fc 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -307,7 +307,7 @@ static enum resp_states check_op_valid(struct rxe_qp *qp,   break;     default: - WARN_ON(1); + WARN_ON_ONCE(1);   break;   }   @@ -495,7 +495,7 @@ static enum resp_states check_rkey(struct rxe_qp *qp,   }   }   - WARN_ON(qp->resp.mr); + WARN_ON_ONCE(qp->resp.mr);     qp->resp.mr = mem;   return RESPST_EXECUTE; @@ -808,9 +808,10 @@ static enum resp_states execute(struct rxe_qp *qp, struct rxe_pkt_info *pkt)   err = process_atomic(qp, pkt);   if (err)   return err; - } else + } else {   /* Unreachable */ - WARN_ON(1); + WARN_ON_ONCE(1); + }     /* We successfully processed this new request. */   qp->resp.msn++; @@ -1396,7 +1397,7 @@ int rxe_responder(void *arg)   goto exit;     default: - WARN_ON(1); + WARN_ON_ONCE(1);   }   }