Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5023251imm; Tue, 9 Oct 2018 08:36:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV62nISh5Rinjwsd4SQkzzpywoAgAr5xCp3o+i0tw5QkA2rcw1kPukInlOhVbRQzfnGs8jt5z X-Received: by 2002:a62:6699:: with SMTP id s25-v6mr30611443pfj.84.1539099396624; Tue, 09 Oct 2018 08:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539099396; cv=none; d=google.com; s=arc-20160816; b=nyy/3zx6o7X2lMPjQKvu2un9szUci0oXLVUi+qXI9zLfUSCEnwx6lpqwneWThdUvr6 CyCT0VCv9j92WBshao19UuRsWFgf9Ao/AwsdH1FoDUOl3+qsu5fOYtiztD0s3D7733VV wW8wU3L2ilLCZaIxxHPjLZViUyd0cElFk9dZG+OXAeb0P9AwRdBIe77x92gckD/77uCu SBsmk9uztkTP0FTWgy0mHIeRlSqzWI3VKIzjRvBBFcdhx1XAf+54NKwtWOXU0rS0sQQd 1jH3CJAoM4N5y/jatSiJUwrjFED2EPxN/ooQOE4zP7+SavQn/pYnaXHJGv6d4oy1AxCa tS5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=hox1kqY+pFmWU01fsUI85CIhF5OuVvZ+oigrlKzaFq8=; b=RpMDWoAncwRjV/kzHMRTqE7RWh6wtZcr/+WgutNnCCi+TpRZHhLZ1AW0STqxeg136Z uyZRVoagzMqQZLmSBiojMhb6dgzTl984f+Knmn+H4aoYpdEOEKc2Q+122BCb0grXzcjT 5iu5Y6VwiBo6/YtgSaCLsUuukO2pMmWCpKYTIgLWNKYsh43vCv3l4eaPjuIQTIEKav5L +YJXwgSgrl8P5kB7OYK4ZLKNrrWhDYPZ9SYYmmAXyNjCTX3ULpwI9Oj3nODungOxoBGu +f8w+/vKeeekSCnvrLhz/SvolWuxSR9Tsw+fYXSDeLtdO1WYR1rbrS6KxZvbZFmnQRFw OIIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hElJNtZ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q200-v6si24393778pfc.159.2018.10.09.08.36.21; Tue, 09 Oct 2018 08:36:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hElJNtZ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726995AbeJIWw6 (ORCPT + 99 others); Tue, 9 Oct 2018 18:52:58 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:55420 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbeJIWw6 (ORCPT ); Tue, 9 Oct 2018 18:52:58 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181009153528euoutp029269f6af356e7803219552459c178e1f~b_q9M3PC20362103621euoutp02c for ; Tue, 9 Oct 2018 15:35:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181009153528euoutp029269f6af356e7803219552459c178e1f~b_q9M3PC20362103621euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539099328; bh=hox1kqY+pFmWU01fsUI85CIhF5OuVvZ+oigrlKzaFq8=; h=From:To:Cc:Subject:Date:References:From; b=hElJNtZ0OHUVeli5fp2m+0nZQFdfI+38zd0zNvNqiEyD7QopnBphqn4DGdfKTZTEb dqKW/t88jJhTI3ASDGH7/mE73OJQ4JhBG0A+qCb54sbPzT0HdOyh5Qef0Ld/SkJFth uXrmGji3W6+riRjSmthJQPZ24zWfR465QkZDq/jQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181009153527eucas1p20731b68f293903bb6c93c38e0f62465e~b_q8SnJde0945909459eucas1p2J; Tue, 9 Oct 2018 15:35:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E8.AA.04294.FBACCBB5; Tue, 9 Oct 2018 16:35:27 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181009153526eucas1p2cdbb125bc7a66e0685f2277740a25630~b_q7Stknv2226522265eucas1p2C; Tue, 9 Oct 2018 15:35:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181009153526eusmtrp176431333c88e6522b7a25a392b856269~b_q7Byxh00465304653eusmtrp1g; Tue, 9 Oct 2018 15:35:26 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-8f-5bbccabffbef Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E3.D3.04128.EBACCBB5; Tue, 9 Oct 2018 16:35:26 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181009153525eusmtip23471e92d26ee937a10ad6f3709ee39fe~b_q6nlzNC1013910139eusmtip2Y; Tue, 9 Oct 2018 15:35:25 +0000 (GMT) From: Lukasz Luba To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: l.luba@partner.samsung.com, b.zolnierkie@samsung.com, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com Subject: [PATCH] config: arm: imx: remove PROVE_LOCKING from defconfig Date: Tue, 9 Oct 2018 17:35:00 +0200 X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMIsWRmVeSWpSXmKPExsWy7djPc7r7T+2JNlixn9ti44z1rBYbN99m sVg1dSeLxa0GGYtNj6+xWnT9WslscXnXHDaLv9s3sThweGxeUu+x8d0OJo+D7/YwefT/NfDo 27KK0ePzJrkAtigum5TUnMyy1CJ9uwSujLvLgwquclbMuNXP2MDYy9HFyMkhIWAisf7CDLYu Ri4OIYEVjBLT+/cxQjhfGCVO/OhihXA+M0p0bpnMDNOyYVc7VNVyRon9L9exw7XM+fkRKMPB wSagJ7FjVSFIg4iAm8SNxg4mkBpmgamMEi+P3mQHSQgDJQ507mEDsVkEVCXenZ7IBrFBTuLm uU6obffZJOatNAKxeQXKJH70nWWBiLtIzJ13kBXCFpZ4dXwLO4QtI3F6cg9UTbHE2Y5VUDNr JNpP7oCqsZY4fPwiK8idzAKaEut36UOEHSVWNu1nAQlLCPBJ3HgrCBJmBjInbZvODBHmleho E4Ko1pDY0nOBCcIWk1i+ZhrUcA+JlbO3gx0vJBArsXLuCqYJjHKzEHYtYGRcxSieWlqcm55a bJSXWq5XnJhbXJqXrpecn7uJEZgUTv87/mUH464/SYcYBTgYlXh4Z+TtjhZiTSwrrsw9xCjB wawkwiu6fVe0EG9KYmVValF+fFFpTmrxIUZpDhYlcd5l8zZGCwmkJ5akZqemFqQWwWSZODil Ghi1X69ZbP9xze1LLGVsLNskTvqHP5hn3rPp8+UXfXET/58+nHJqyiarqMTum7k7VFNqy/Lm Xeu9NnWRGvdplpKnNb8j8zo2/C99V7BT8LjGtT1KE2PYfXa+ZdW4zyinsf/K/AXOoYv///mX 2vBRymuvVwdfzs96N/duowNBEmX9RW+OfNkZpHdGiaU4I9FQi7moOBEAhjajnwYDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsVy+t/xe7r7Tu2JNmhbxW6xccZ6VouNm2+z WKyaupPF4laDjMWmx9dYLbp+rWS2uLxrDpvF3+2bWBw4PDYvqffY+G4Hk8fBd3uYPPr/Gnj0 bVnF6PF5k1wAW5SeTVF+aUmqQkZ+cYmtUrShhZGeoaWFnpGJpZ6hsXmslZGpkr6dTUpqTmZZ apG+XYJext3lQQVXOStm3OpnbGDs5ehi5OSQEDCR2LCrnbGLkYtDSGApo8S2CZuZIBJiEpP2 bWeHsIUl/lzrYoMo+sQocWnDYSCHg4NNQE9ix6pCkBoRAQ+Jtn/3mEFqmAVmAw36tI4NJCEs 4CZxoHMPmM0ioCrx7vREMJtXwFPi49HzLBAL5CRunutknsDIs4CRYRWjSGppcW56brGRXnFi bnFpXrpecn7uJkZgQG479nPLDsaud8GHGAU4GJV4eGfk7Y4WYk0sK67MPcQowcGsJMIrun1X tBBvSmJlVWpRfnxRaU5q8SFGU6DlE5mlRJPzgdGSVxJvaGpobmFpaG5sbmxmoSTOe96gMkpI ID2xJDU7NbUgtQimj4mDU6qBUffZ26LQTZ/KUqb8l/n7/WTfFTttxhDxH3ZF1xVKZ6Ysff5+ glTu+qm5nR2im88ylG+/GuzNUMSpUOVbys98eBLL7NyHWVbJd1jFFzG+mHj8br2Edsvj9mX9 QfunaxUU28/0O/1SfIG2gHaaWkjdK97JDgeZt0g8fLD7Z2o2Z7WrYtz50x+XKbEUZyQaajEX FScCAJNQqPVeAgAA Message-Id: <20181009153526eucas1p2cdbb125bc7a66e0685f2277740a25630~b_q7Stknv2226522265eucas1p2C@eucas1p2.samsung.com> X-CMS-MailID: 20181009153526eucas1p2cdbb125bc7a66e0685f2277740a25630 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181009153526eucas1p2cdbb125bc7a66e0685f2277740a25630 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181009153526eucas1p2cdbb125bc7a66e0685f2277740a25630 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PROVE_LOCKING enables LOCKDEP, which causes big overhead on cache and bus transactions. On some ARM big.LITTLE architecutres (Exynos 5433) the overhead is really big. The overhead can be measures using hackbench which will speed up by x3 times (11sec -> 3.4sec). When you check transaction on cache or buses, the results are way higher than normal for the same hackbench test: L1d cache invalidations: 26mln vs 4mln L2u cache invalidations: 42mln vs 12mln bus cyc/access: 30cyc/access vs. 20cyc/access context switch is x3 times cheaper Enable this option only when you have some locking issue to investigate. Signed-off-by: Lukasz Luba --- arch/arm/configs/imx_v6_v7_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 7eca43f..f55cd2d 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -425,7 +425,6 @@ CONFIG_PRINTK_TIME=y CONFIG_DEBUG_FS=y CONFIG_MAGIC_SYSRQ=y # CONFIG_SCHED_DEBUG is not set -CONFIG_PROVE_LOCKING=y # CONFIG_DEBUG_BUGVERBOSE is not set # CONFIG_FTRACE is not set # CONFIG_ARM_UNWIND is not set -- 2.7.4