From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbbIHPqo (ORCPT ); Tue, 8 Sep 2015 11:46:44 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34654 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753551AbbIHPql (ORCPT ); Tue, 8 Sep 2015 11:46:41 -0400 X-Listener-Flag: 11101 Message-ID: <1441727195.20470.40.camel@mtksdaap41> Subject: Re: thermal: mediatek: Add cpu power cooling model From: dawei chien To: Viresh Kumar CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , "Catalin Marinas" , Will Deacon , "Rafael J. Wysocki" , Matthias Brugger , Daniel Kurtz , Sascha Hauer , Eddie Huang , "Daniel Lezcano" , Howard Chen , Yingjoe Chen , , , , , , , Sascha Hauer Date: Tue, 8 Sep 2015 23:46:35 +0800 In-Reply-To: <20150907060931.GF26760@linux> References: <1441357309-61669-1-git-send-email-dawei.chien@mediatek.com> <20150907060931.GF26760@linux> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Viresh, On Mon, 2015-09-07 at 11:39 +0530, Viresh Kumar wrote: > On 04-09-15, 17:01, Dawei Chien wrote: > > Use Intelligent Power Allocation (IPA) technical to add > > static/dynamic power model for binding CPU thermal zone. > > The power allocator governor allocates power budget to control > > CPU temperature. > > Sorry but this isn't enough really.. I don't have time to go through > the code and understand the purpose of the series. > > Please explain here in detail: > - Why this is needed. Power Allocator governor is able to keep SOC temperature within a defined temperature range to avoid SOC overheat and keep it's performance. mt8173-cpufreq.c need to register its' own power model with power allocator thermal governor, so that power allocator governor can allocates suitable power budget to control CPU temperature. > - What/How you are doing it. Measure and create dynamic/static power model, and register cooling device of_cpufreq_power_cooling_register for MT8173. > > (Don't resend, just reply to this email :) ) >