From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbbKQMGz (ORCPT ); Tue, 17 Nov 2015 07:06:55 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:58043 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752068AbbKQMGx (ORCPT ); Tue, 17 Nov 2015 07:06:53 -0500 From: Punit Agrawal To: linux-pm@vger.kernel.org Cc: Punit Agrawal , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, edubezval@gmail.com, dawei.chien@mediatek.com, javi.merino@arm.com, viresh.kumar@linaro.org, rjw@rjwysocki.net Subject: [PATCH v5 0/3] Dynamic power model from device tree Date: Tue, 17 Nov 2015 12:06:20 +0000 Message-Id: <1447761983-12415-1-git-send-email-punit.agrawal@arm.com> X-Mailer: git-send-email 2.6.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset adds support to build a single-coefficient dynamic power model for a CPU. The model is used by the CPU cooling device to provide an estimate of power consumption and also translate allocated power to performance cap. Changes from previous posting - v4 -> v5 Updated tags across the patches arm_big_little: Do not register cooling devices when in IKS v3 -> v4: arm_big_little: Migrated to using static arrays arm_big_little: Updated Kconfig to support building thermal as module Patch 1 extends the CPU nodes binding to provide an optional dynamic power coefficient which can be used to create a dynamic power model for the CPUs. This model is used to constrain device power consumption (using power_allocator governor) when the system is thermally constrained. Patches 2-3 extends the cpufreq-dt and arm_big_little driver to register cpu cooling devices with the dynamic coefficient when provided. The patches were previously posted at [0][1][2][3]. Mediatek platform 8173 builds on these bindings to build a power model. Thanks, Punit [0] http://thread.gmane.org/gmane.linux.kernel/2002152 [1] http://thread.gmane.org/gmane.linux.kernel/2011466 [2] http://marc.info/?l=linux-kernel&m=144709020014884&w=2 [3] http://marc.info/?l=linux-pm&m=144770224915315&w=2 Punit Agrawal (3): devicetree: bindings: Add optional dynamic-power-coefficient property cpufreq-dt: Supply power coefficient when registering cooling devices cpufreq: arm_big_little: Add support to register a cpufreq cooling device Documentation/devicetree/bindings/arm/cpus.txt | 17 +++++++++++ drivers/cpufreq/Kconfig.arm | 2 ++ drivers/cpufreq/arm_big_little.c | 41 ++++++++++++++++++++++++++ drivers/cpufreq/cpufreq-dt.c | 9 ++++-- 4 files changed, 67 insertions(+), 2 deletions(-) -- 2.6.2