Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756975AbcC2L1q (ORCPT ); Tue, 29 Mar 2016 07:27:46 -0400 Received: from mail-vk0-f54.google.com ([209.85.213.54]:32947 "EHLO mail-vk0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756939AbcC2L1o (ORCPT ); Tue, 29 Mar 2016 07:27:44 -0400 From: Leo Yan To: Wei Xu , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Zhang Rui , Eduardo Valentin Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Yan Subject: [PATCH v3 0/4] thermal: hisilicon: enable power allocator for Hi6220 Date: Tue, 29 Mar 2016 19:27:11 +0800 Message-Id: <1459250835-25561-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1764 Lines: 42 Hi6220 has octa-core so it has quite high power consumption when run benchmark and introduces high temperature for SoC. So need enable thermal governor to control temperature and also cannot hurt much for performance after impose cooling operations on CPU. This patch series is to enable power allocator for Hi6220. Patch 1 is to change "hysteresis" as optional property for trip points, so when enable power allocator governor we can ignore this property. During profiling also found two issues for thermal sensor's driver. The power allocator just uses only one sensor, so patch 2 is to fix sensor driver to let it can initialize driver successfully with only enabling one sensor; patch 3 is to dismiss warning of IRQ imbalance enabling. After profiling on Hikey, the power model has been simplized with only dynamic coefficient, and now it's convienence to pass it from CPU node. So patch 4 and 5 bind sensor and pass power model parameters. This patch series have been tested on 96boards Hikey. Changes from v2: * Discarded patch for changing "hysteresis" as optional property * Added back "hysteresis" property Changes from v1: * According to Javi's review, removed unecessary properties for DT * Added patch 1 for change "hysteresis" as optional property * Added patch 3 to fix IRQ imbalance enabling issue Leo Yan (4): thermal: hisilicon: support to use any sensor thermal: hisilicon: fix IRQ imbalance enabling arm64: dts: register Hi6220's thermal sensor arm64: dts: register Hi6220's thermal zone for power allocator arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 44 +++++++++++++++++++++++++++++++ drivers/thermal/hisi_thermal.c | 40 +++++++++++++++++----------- 2 files changed, 68 insertions(+), 16 deletions(-) -- 1.9.1