From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161357AbbKFMDh (ORCPT ); Fri, 6 Nov 2015 07:03:37 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40685 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161067AbbKFMDf (ORCPT ); Fri, 6 Nov 2015 07:03:35 -0500 X-AuditID: cbfec7f4-f79c56d0000012ee-d9-563c9715b26d From: Arseniy Krasnov To: linux@arm.linux.org.uk, mingo@redhat.com, peterz@infradead.org Cc: a.krasnov@samsung.com, v.tyrtov@samsung.com, s.rogachev@samsung.com, linux-kernel@vger.kernel.org, Tarek Dakhran , Sergey Dyasly , Dmitriy Safonov , Ilya Maximets Subject: [PATCH 01/13] hperf_hmp: add new config for arm and arm64. Date: Fri, 06 Nov 2015 15:02:35 +0300 Message-id: <1446811367-23783-2-git-send-email-a.krasnov@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1446811367-23783-1-git-send-email-a.krasnov@samsung.com> References: <1446811367-23783-1-git-send-email-a.krasnov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsVy+t/xK7qi023CDH4elLSY91nQ4tPKp2wW V9p/sltc3jWHzeL2ZV6LSwcWMFkc7z3AZDF5tpTFu63XWC3WPz/FaDF1xg92B26PluYeNo/N K7Q8Dr7bw+Txft9VNo++LasYPT5vkgtgi+KySUnNySxLLdK3S+DKOPPjN2PBUpGK11skGxhv C3QxcnJICJhIPDvXzgxhi0lcuLeeDcQWEljKKPF2vlcXIxeQ3c4k8fnPRxaQBJuArsTPjVvA ikQEnCR6np1lBLGZBSYzSWz4mgZiCws4S/yZ/5MdxGYRUJX4MPMG2AJeAVeJttfPWCGWyUmc PDYZzOYUcJPo6LrNDrHYVaLj7DuWCYy8CxgZVjGKppYmFxQnpeca6hUn5haX5qXrJefnbmKE BN+XHYyLj1kdYhTgYFTi4b2xxDpMiDWxrLgy9xCjBAezkgivHLNNmBBvSmJlVWpRfnxRaU5q 8SFGaQ4WJXHeubvehwgJpCeWpGanphakFsFkmTg4pRoYN3FP2Wyb2WZk9FXy7NrLG97MFXrP JF8TtvfhtlPZrT/Wfni0QH/z9j1GGxey1M8QZ7yS6bprHl/x5puP/z//+SHdP/qfoPZ8HRvB o4mNyy0nBb75WKV79orAvavsi4yM7S6qfptxqeDzb56vIjofRM6YfGrVvNLjKvm0oWhP8OvK rgsHvR1q0pRYijMSDbWYi4oTAS7XtM06AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New config option which enables new scheduler logic: HPERF_HMP. Also adds the following options: 'HPERF_HMP_DEBUG': enables extra runtime checks of balancing parameteres. 'HMP_FAST_CPU_MASK': CPU mask of A15 cluster(in hex string). 'HMP_SLOW_CPU_MASK': CPU mask of A7 cluster(in hex string). Signed-off-by: Tarek Dakhran Signed-off-by: Sergey Dyasly Signed-off-by: Dmitriy Safonov Signed-off-by: Arseniy Krasnov Signed-off-by: Ilya Maximets --- arch/arm/Kconfig | 21 +++++++++++++++++++++ arch/arm64/Kconfig | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 72ad724..0581914 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1387,6 +1387,27 @@ config SCHED_MC making when dealing with multi-core CPU chips at a cost of slightly increased overhead in some places. If unsure say N here. +config HPERF_HMP + bool "HPERF_HMP load balancing enhancements for ARM big.LITTLE" + select SCHED_MC + help + Uses HPERF_HMP load balancing algorithm between A7 and A15 CPU domains. + +config HPERF_HMP_DEBUG + bool "Additional HPERF_HMP runtime debug checks" + depends on HPERF_HMP + default n + +config HMP_FAST_CPU_MASK + string "Fast (Cortex-A15) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + +config HMP_SLOW_CPU_MASK + string "Slow (Cortex-A7) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + config SCHED_SMT bool "SMT scheduler support" depends on ARM_CPU_TOPOLOGY diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07d1811..71a8983 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -412,6 +412,27 @@ config SCHED_MC making when dealing with multi-core CPU chips at a cost of slightly increased overhead in some places. If unsure say N here. +config HPERF_HMP + bool "HPERF_HMP load balancing enhancements for ARM big.LITTLE" + select SCHED_MC + help + Uses HPERF_HMP load balancing algorithm between A7 and A15 CPU domains. + +config HPERF_HMP_DEBUG + bool "Additional HPERF_HMP runtime debug checks" + depends on HPERF_HMP + default n + +config HMP_FAST_CPU_MASK + string "Fast (Cortex-A15) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + +config HMP_SLOW_CPU_MASK + string "Slow (Cortex-A7) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + config SCHED_SMT bool "SMT scheduler support" help -- 1.9.1