Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756061Ab3JNMSj (ORCPT ); Mon, 14 Oct 2013 08:18:39 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:22920 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755914Ab3JNMSh (ORCPT ); Mon, 14 Oct 2013 08:18:37 -0400 X-AuditID: cbfee61a-b7f7a6d00000235f-cb-525be11b54de From: Lukasz Majewski To: Viresh Kumar , "Rafael J. Wysocki" , Zhang Rui , Eduardo Valentin Cc: "cpufreq@vger.kernel.org" , Linux PM list , Jonghwa Lee , Lukasz Majewski , Lukasz Majewski , linux-kernel , Bartlomiej Zolnierkiewicz , Myungjoo Ham , durgadoss.r@intel.com Subject: [PATCH v9 0/7] cpufreq:boost: CPU Boost mode support Date: Mon, 14 Oct 2013 14:17:43 +0200 Message-id: <1381753070-2853-1-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1370502472-7249-1-git-send-email-l.majewski@samsung.com> References: <1370502472-7249-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNLMWRmVeSWpSXmKPExsVy+t9jAV3ph9FBBrMfyFtsnLGe1eJp0w92 i76fV5gt1uz/yWTRefYJs8WbR9wWbx5uZrS4vGsOm8Xn3iOMFrcbV7BZnDl9idXiycM+NouN Xz0ceD0W73nJ5HHn2h42j3XT3jJ7bLnazuLRt2UVo8fxG9uZPD5vkgtgj+KySUnNySxLLdK3 S+DKmP/kG1PBfMmKTY8zGhi/CHcxcnJICJhIPL7byARhi0lcuLeerYuRi0NIYBGjROO098wQ TheTxMXu1WBVbAJ6Ep/vPmUCSYgILGGUeN20gBXEYRboYZY4fn07G0iVsICtxOQPc8FsFgFV iaOvNrKA2LwCrhLTTq9mh9gnL/H0fh9YDaeAm8TcTy/AbCGgmpsfVrJMYORdwMiwilE0tSC5 oDgpPddQrzgxt7g0L10vOT93EyM4SJ9J7WBc2WBxiFGAg1GJh1fAKTpIiDWxrLgy9xCjBAez kgjvx6tAId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rwHWq0DhQTSE0tSs1NTC1KLYLJMHJxSDYyb nnPsXqDf+Etzi/vDjNtM8rGP2XWbvF98PNb9Zl4OM7/jpFUzzeS13wVPveMrbjCfoUtKQuHZ pO1F63QVpm/o/V3nUn3uwk7v6q0pD1eem3bQ4dbxnPM8TXV3FwRP2JhYXuZi7xpmtW92+dUf KU9nBbXNnRdn+3dNxfos6wfO//9XniqQ40lXYinOSDTUYi4qTgQAue09qE4CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3402 Lines: 79 This patch series introduces support for CPU overclocking technique called Boost. It is a follow up of a LAB governor proposal. Boost is a LAB component: http://thread.gmane.org/gmane.linux.kernel/1484746/match=cpufreq Boost unifies hardware based solution (e.g. Intel Nehalem) with software oriented one (like the one done at Exynos). For this reason cpufreq/freq_table code has been reorganized to include common code. Important design decisions: - Boost related code is compiled-in unconditionally to cpufreq core and disabled by default. The cpufreq_driver is responsibile for setting boost_supported flag and providing set_boost callback(if HW support is needed). For software managed boost, special Kconfig flag - CONFIG_CPU_FREQ_BOOST_SW has been defined. It will be selected only when a target platform has thermal framework properly configured. - struct cpufreq_driver has been extended with boost related fields: -- boost_supported - when driver supports boosting -- boost_enabled - boost state -- set_boost - callback to function, which is necessary to enable/disable boost - Boost sysfs attribute (/sys/devices/system/cpu/cpufreq/boost) is visible _only_ when cpufreq driver supports Boost. - No special spin_lock for Boost was created. The one from cpufreq core was reused. - The Boost code doesn't rely on any policy. When boost state is changed, then the policy list is iterated and proper adjustements are done. - To improve safety level, the thermal framework is also extended to disable software boosting, when thermal trip point is reached. Then it starts monitoring target temperature to evaluate if boost can be enabled again. This emulates behaviour similar to HW managed boost (like x86) Tested at HW: Exynos 4412 3.12-rc4 Linux Intel Core i7-3770 3.12-rc4 Linux Above patches were posted on top of kernel_pm/bleeding-edge (SHA1: d06a5fe3485062acdb5552dffe3a89672e1a439d) Lukasz Majewski (7): cpufreq: Add boost frequency support in core cpufreq:acpi:x86: Adjust the acpi-cpufreq.c code to work with common boost solution thermal:boost: Automatic enable/disable of BOOST feature cpufreq:boost:Kconfig: Provide support for software managed BOOST cpufreq:exynos:Extend Exynos cpufreq driver to support boost framework Documentation:cpufreq:boost: Update BOOST documentation cpufreq:exynos4x12: Change L0 driver data to CPUFREQ_BOOST_FREQ Documentation/cpu-freq/boost.txt | 26 ++++---- drivers/cpufreq/Kconfig | 4 ++ drivers/cpufreq/Kconfig.arm | 15 +++++ drivers/cpufreq/acpi-cpufreq.c | 86 +++++++++---------------- drivers/cpufreq/cpufreq.c | 118 +++++++++++++++++++++++++++++++++- drivers/cpufreq/exynos-cpufreq.c | 3 + drivers/cpufreq/exynos4x12-cpufreq.c | 2 +- drivers/cpufreq/freq_table.c | 56 ++++++++++++++-- drivers/thermal/thermal_core.c | 55 ++++++++++++++++ include/linux/cpufreq.h | 24 +++++++ include/linux/thermal.h | 2 + 11 files changed, 312 insertions(+), 79 deletions(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/