From patchwork Tue Jan 10 19:08:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9508373 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 34A2E60231 for ; Tue, 10 Jan 2017 19:12:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2889D28553 for ; Tue, 10 Jan 2017 19:12:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D3CA28596; Tue, 10 Jan 2017 19:12:34 +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 8F10928553 for ; Tue, 10 Jan 2017 19:12:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936586AbdAJTKU (ORCPT ); Tue, 10 Jan 2017 14:10:20 -0500 Received: from mail-cys01nam02on0076.outbound.protection.outlook.com ([104.47.37.76]:10976 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936871AbdAJTId (ORCPT ); Tue, 10 Jan 2017 14:08:33 -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=v+hpORI/gJBeusTfZgd3vCa1A1Dxi6TSy9FltDbtS04=; b=c57nV52AUHN8g+tXaCNCpPI3t2f0IBkGWwDQe5tCWlk/14ZqEjscLfHBJVPenovq+nHZhGW8p8WovEStBgBgdLWjsy081I/Nsrg3YOXOgUAMKyk6ZnHsf5fK+qsTkqNOJz5UcwKN0OI4nD36mwYI4pZuOyfDEQTFehhobb7stew= Received: from BLUPR02CA056.namprd02.prod.outlook.com (10.160.23.174) by DM2PR02MB1418.namprd02.prod.outlook.com (10.161.143.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Tue, 10 Jan 2017 19:08:30 +0000 Received: from BY2FFO11FD002.protection.gbl (2a01:111:f400:7c0c::190) by BLUPR02CA056.outlook.office365.com (2a01:111:e400:8ad::46) 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; Tue, 10 Jan 2017 19:08:30 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BY2FFO11FD002.mail.protection.outlook.com (10.1.14.124) 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; Tue, 10 Jan 2017 19:08:29 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 05.87.01420.11F25785; Tue, 10 Jan 2017 10:59:30 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:08:25 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-f7-58752f1173ae Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E8.38.16817.82135785; Tue, 10 Jan 2017 11:08:24 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Moni Shoua Subject: [PATCH v2 08/15] IB/rxe: Issue warnings once Date: Tue, 10 Jan 2017 11:08:15 -0800 Message-ID: <20170110190822.16953-9-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110190822.16953-8-bart.vanassche@sandisk.com> References: <20170110190822.16953-1-bart.vanassche@sandisk.com> <20170110190822.16953-2-bart.vanassche@sandisk.com> <20170110190822.16953-3-bart.vanassche@sandisk.com> <20170110190822.16953-4-bart.vanassche@sandisk.com> <20170110190822.16953-5-bart.vanassche@sandisk.com> <20170110190822.16953-6-bart.vanassche@sandisk.com> <20170110190822.16953-7-bart.vanassche@sandisk.com> <20170110190822.16953-8-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5ka6QfmmEwbJr3BYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZi490sBQskKhoOrSQtYHx m3AXIweHhICJxIMuiS5GLg4hgaVMEpPeTGTsYuQEcnYwSixdHgJig9TM+LuXHSK+kVFi9TYX EJtNwEji2/uZLCC2iICaxKZXi8BqmAUcJS5N+8QEYgsLmEpMffiADcRmEVCVmLpqKzOIzStg L3F7YQMzxHx5iV1tF1lBbE4BB4mPEyezQBy0k1ni5PyzYI6EwHMWiRM/O6C6BSVOznzCArFN QuLgixfMENepS5xcMp9pAqPQLCRls5CULWBkWsUolpuZU5ybnlpgaKJXnJiXklmcrZecn7uJ ERLEhTsYX9/2PsQowMGoxMPb8awkQog1say4MvcQowQHs5IIb6peaYQQb0piZVVqUX58UWlO avEhRmkOFiVx3ovRH8OEBNITS1KzU1MLUotgskwcnFINjGK2tTL7mbnXVFjP3XT4yG3165f1 nWoNTlytTKhPUFRw273n5dRpW72msksaZzu9b7X98+YJm8gheV9+TpkZ0uJa72e2nRE4E/xB /GROj+Qf0wcXU2bk/WtYM+G77NSFMgcWJxk/UeLLCJ7+Zf5DJwUTmxxOkzPzD9/bG/J+9q6y Of8tlx1euUiJpTgj0VCLuag4EQC3xeXOXgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJMWRmVeSWpSXmKPExsXCtZGTTVfDsDTC4MosLYuX5z+wWjw71Mti seH9GnYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MxUc6WAoWSFQ0HVrI2sD4 TbiLkZNDQsBEYsbfvexdjFwcQgLrGSValk9lAUmwCRhJfHs/E8wWEVCT2PRqEVARBwezgKPE 7fMhIGFhAVOJqQ8fsIHYLAKqElNXbWUGsXkF7CXudHQwQsyXl9jVdpEVxOYUcJD4OHEyC8Su ncwSJ+efZZnAyL2AkWEVo1huZk5xbnpmgaGhXnFiXkpmcbZecn7uJkaIryN3MD6daH6IkYmD U6qBUaLt7bpoQ1Z+oftMW2XWWO6ayTDTsEzx319V9R0svcoNF6zKxUzD4gIia/fauvhvOnYo YLviuanzFE2dXn2o//Ss5vaXy9mXXfvdj8WZM393a7mTsvVz5e7pM059fNHxvfLRwXmTWNpu hKrfVCmdyfw6+vTvbWZrZ/5L0Wbj8XuVPGvrtoVbuJVYijMSDbWYi4oTAVwFIwelAQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39410400002)(39860400002)(39850400002)(39840400002)(39450400003)(2980300002)(438002)(189002)(199003)(33646002)(356003)(50466002)(305945005)(48376002)(76176999)(47776003)(38730400001)(69596002)(77096006)(92566002)(50986999)(2906002)(4326007)(68736007)(106466001)(5660300001)(81156014)(6666003)(81166006)(2950100002)(5003940100001)(6916009)(8676002)(54906002)(8936002)(93886004)(1076002)(626004)(97736004)(189998001)(110136003)(36756003)(2270400002)(86362001)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1418; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD002; 1:MjPRyPb0LPY5snK8P37xm3dgWjDKtL9TnpXj5jqyxfZNRa/QNA7Pqr3xSQoeO9cghApyurlJJbp1G0BZRmpQqqNsjoJh92FafM9ed1IekaEiK0RTMGp0il2qS3SpQRVaVIWeKr170RsESu0VVzBxP7tKNgybcsbWbOF29QB+MTaQrmaq1mOsRX2LUIAJ6EfshTqbf/zq6Z/GB6Q+Jkn7OfnR/QoLUvoEBwlSBnNZn5gQDts4NTcDGxVI9DD0JV/CZepHEa1RGDQv7BLe/IPExfCJE7lF/WKi3Xu2jhHGDUcwQrQPsN46AaqDabgGdoOsRIkzk4PSlHnzF4VKR+B0Y7SkqKlYU/jCxqhJTx5pQV4L6MAfpyj1xmoHTU3L0lEXij9eeR3qYlWaECztJKmiVO4pGYKeOyJKpylEY1DOGq/C14ovtpM+hPoVl87+iM1fpmssT+ksZgWdUyqYvvVOctpB7q4tVO4c1tdkUY1XuD3zFoORbQ+n/1te097BgpBL/UGsofUBjMle2F+ldbbw6A== X-MS-Office365-Filtering-Correlation-Id: e70dc1ce-40e1-4fc9-bc61-08d4398c104d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:DM2PR02MB1418; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB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P5E+v4gU/DvSwciy3VPAnUy/ZLoyGXJfKEWitxLW6S/8Xqcj3zDaqsWnKr+BGrAy88rJiscLR7oFEU79UBls23+sdiQ2MIQkTWOH4uzsEhPAhYLTf8EpMeyLDbzxg4KWIDESQDzPXjCDIa420w=; 20:VhSqgdluV5nJXhQ8gd0heR1CYWr1Es1LB6yJ7mGijJ2cD63jPQ3scY7OIngBZSbXQ+rIO/Ntz4UV8t3/i6CcYMG6TTKBQptiYo13dgiUUciJoBHFzrH9h0w7FVcFwjpJ3nQbsmLAto1PhgKcHdooIS5v8IIhzwl1O2vEC9IzjQOt74Zf7GhdNsdLZ4PXUTbS6teG+ya7AdldvS6vCiv383VBMg2RHiVxn5inM7F4429QfIJBkmlLmt8FnQs1xBtgWP1Bjch4lcFNiY9ucoKWQdCvGIfyPCpP85pS5xOu7O7+2m9DOhlTpnyNiML2N5SppMyXXV2Akp5FPQ7WIM6+3DnYWK6NxwpAxsRT/x1sPlcVPQor2kuPDTumoKJG4Lrbb9CJ5ezgq+Jijzq9rVoehVrBP8MPMsPOV14XocS4JW9jsNsmRuE6yO+XadhoOIv6fJ83s6g9LljgTO7vh6gIAfGahjKtmfxnRalaCykiwZNyi5y2vRdEOUfqPb1e1x5r 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)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:DM2PR02MB1418; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB1418; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1418; 4:J3or5Y8Swog1biX6iqyPolamoEzkDkh803uMTOWEZZsksiXXt3qEvNMkBh0uHnuQdSKGrqK7vM4qaNSVDO90vZ9VaJ66HRoQxMO2+OoXL9uWXNFOXTQ8hTnWk5aF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4kTwwnn+9Yyfp9ud+XHq1eZiXVHODCz15UrdxIxceCYeDC2UUMgztyQKZDcWzYglZK5JyH6gErKFb//8YnNyM75gw5BqFqKeMflTuVWjpDHSspM09adXWOU8izBXAhHioWDnVg3saNIWInLUmHnAiDYGtwI/BvoXXp8TEwCVuWXXMYFxZ+Q/xdgv9bFp9f4cwo+dN2cXohlbObowKFLrcFcMkaV+I2oi9A== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:08:29.7349 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB1418 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 Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer Cc: Moni Shoua --- 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(-) 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); } }