Received: by 10.223.176.5 with SMTP id f5csp221215wra; Mon, 5 Feb 2018 20:29:45 -0800 (PST) X-Google-Smtp-Source: AH8x227+eTmALYzPEccBbo4oExAoN5FrvB7IyYyhwWMsbwkBfGEF+LFQ2YMZzYy53Wr5YClR7lg1 X-Received: by 10.99.120.134 with SMTP id t128mr911600pgc.313.1517891385291; Mon, 05 Feb 2018 20:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517891385; cv=none; d=google.com; s=arc-20160816; b=wduj2gomEKWLDcDiNx89yVWQ2eaf6xmR2T4/ozginLYU0/xDLyAgwlHeInGWwvUPOb 4u/guvX1PaBIxJhxIqRoBmGCX1YjzqvdaL4RJaTWvZXluAi5JA4saEiRLzIx4MJPQSLB bNANuNN5G6iLQfX3XWh07XtBv5G+aB+b7an0VdjeIc1J9g3eoCOhYzTNSZ231rqmL5Bz VcDalOJyReYHdM6mvsj6fCRGlnsIrwEuBKR5hEAxFWJicaveRa/4qnq9hSYqBpqYygZX vG6UsXqITAuN/j1731DJ3t89P8a6qSeuScVNSKsWgtWdf1QQ2koSdXo2q7bKL5IFfwNg K6Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=017fllXuGWTo0zo6bi9Yau3O1C037gxTEA1lXBuvMCQ=; b=FytRpwSUw46dI+AjabrI0DYqVJjtc2cBBgH4h5zKZEzTOX8HT20ZPUaotqy5gLiPLS byZRiaf2cnGT/Wkfma19TM0r7HjpWumHLsskaZA/LHZobbVz6FzP2cdlQ22fgOWTmUar FL61TafBibyYS1q83LxstUGYKYZgsTX128gsAk+FmTyrlNLgGUzaCge+hCDyeBtIxZQb MCghUkv+ejTwMGX7TgCMVGplMvaXGfTwLEx0yZ5tfcywQ1ruhQDNf7w4r7oh1OBNrj5s PriXCjjUwKR+wftW+2W0cyXg/DdSZrIyHjVvsZjMp1MMvEWD3F3osfrQe+vstp8OSPpI Fs/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J6qW04RA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10-v6si7830948plp.561.2018.02.05.20.29.31; Mon, 05 Feb 2018 20:29:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J6qW04RA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752534AbeBFE3D (ORCPT + 99 others); Mon, 5 Feb 2018 23:29:03 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:41725 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752132AbeBFE2z (ORCPT ); Mon, 5 Feb 2018 23:28:55 -0500 Received: by mail-pf0-f196.google.com with SMTP id 68so84400pfj.8 for ; Mon, 05 Feb 2018 20:28:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=017fllXuGWTo0zo6bi9Yau3O1C037gxTEA1lXBuvMCQ=; b=J6qW04RAZWcrX0p3579mv5WrOL5jomVc5F/83y8liohN+RZyY5U2tofUIGu+QWJczE qFFdUkVdQ6eDRY0LrAw/o2bwaA3w9eu3cIQOSouBQ4/d2lVard7itwgAV9ayGe9Gv6qs kR2MUDhkXhd8PStkwOWmbK8D3iSI1R0tTRPyU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=017fllXuGWTo0zo6bi9Yau3O1C037gxTEA1lXBuvMCQ=; b=bgas23ZldRRcxGZIxjeroCQiDDdi87RkgGpG9puSUNPDrGnVRY824IF6Ab/fIadd8d yK6vxFHqHe4b93fSpRbvNSpSkcXtx743p0hEgo1Q4ZVBxdXZ9cKSh37BPLPvjUdIr3TF EpZ6qlTCMywdbMlJHFNa0mOZlaY1jOZgCJP8kBR1SNgFQDgpv+PlYcKnOqduKIsYMov7 r2S4mvibt54XNQPj19qceYdmYmEQEEa25yJsdt28tFwG58ePeM1d6iZ6UdExb25KiGUA 7PPJWZ29rE48hlnNXR9RB2gxzl+A0ZDh0hCR3XQONZncq0Xx3+gwOcu1nCCXxTVls2ji sDxg== X-Gm-Message-State: APf1xPCITCjCOP5O+csIo+sVHMR1hsWQBpwdCGC35Suqk6jZfLu75RbU oinoOG7a6AgHVz7XSE163MSUQA== X-Received: by 10.99.158.17 with SMTP id s17mr959784pgd.64.1517891335365; Mon, 05 Feb 2018 20:28:55 -0800 (PST) Received: from localhost ([122.172.61.199]) by smtp.gmail.com with ESMTPSA id o63sm1614951pfa.101.2018.02.05.20.28.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 20:28:54 -0800 (PST) Date: Tue, 6 Feb 2018 09:58:53 +0530 From: Viresh Kumar To: Daniel Lezcano Cc: edubezval@gmail.com, kevin.wangtao@linaro.org, leo.yan@linaro.org, vincent.guittot@linaro.org, amit.kachhap@gmail.com, linux-kernel@vger.kernel.org, Zhang Rui , Javi Merino , "open list:THERMAL" , daniel.thompson@linaro.org Subject: Re: [PATCH 8/8] thermal/drivers/cpu_cooling: Add the combo cpu cooling device Message-ID: <20180206042853.GI28462@vireshk-i7> References: <1516721671-16360-1-git-send-email-daniel.lezcano@linaro.org> <1516721671-16360-9-git-send-email-daniel.lezcano@linaro.org> <20180202104259.GA28462@vireshk-i7> <8dadd854-25ac-68aa-aa9f-33ba76a137a4@linaro.org> <20180205041734.GD28462@vireshk-i7> <911804cd-2f1d-a1f7-61a2-6c8b95a88d6b@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <911804cd-2f1d-a1f7-61a2-6c8b95a88d6b@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-02-18, 11:32, Daniel Lezcano wrote: > On 05/02/2018 05:17, Viresh Kumar wrote: > > Right, but I thought the cooling-maps can help us specify different cooling > > states for different cooling devices for the same trip point. Maybe my > > understanding of that is incorrect. Any inputs on this? I am still wondering if this can be done. > At the first glance, it sounds interesting but I'm afraid that raises > more corner-cases than it solves because we have to take into account > all the combinations: cpuidle=0 && cpufreq=1, cpuidle=1 && cpufreq=0, > cpuidle=1 && cpufreq=1 with dynamic code changes when the cpufreq driver > is loaded/unloaded. > > I'm not against this approach as well as merging all the cpu cooling > devices into a single one but that won't be trivial and will need > several iterations before reaching this level of features. > > IMO, we should keep the current approach (but handle the cpufreq > loading/unloading) and then iteratively merge all the cooling device > into a single one with policy change at runtime which will automatically > handle the cpufreq load/unload. Surely we can do one thing at a time if that's the way we choose to do it. -- viresh