Received: by 10.223.176.5 with SMTP id f5csp2086502wra; Sun, 4 Feb 2018 20:19:50 -0800 (PST) X-Google-Smtp-Source: AH8x225gEAzjiT6HmjxVulNskMNtD3od3flEN1YE+5xNEHeb7fKQMU7ABz9uH8WNc/9BYbetXLei X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr41734118plg.327.1517804390348; Sun, 04 Feb 2018 20:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517804390; cv=none; d=google.com; s=arc-20160816; b=nJWvZQnf/nkxy3V5l8esTjfFqmnE4dAoeovEY7bc2B7npYIB2QxXWNs69yKrOAwxCd RlVvQXqne9fbUPKDhLJ90SO2NxaII4lwwCeWeEyXisqR+p+3ghglwdaCLpm8Ct69wrxr QKw8b8i3s8/o9ycIkPzPk9Hak1MsYUN+0h3QuTGMeAqpS/Dy98xyluOYp7Xtpb05+CHD G+Ja0W2R4pzYcM8kPABMFZL9kWcxh+4Tz4bArSZ381llKhbEED72WTLauGkDBqMH5Pjy fcImXrNX+8rImfRPXmBC2nefLfq6la3e0AvI/06Ivbb8x4rBRbPFz0kBhPpCFgYNiXPn 3X9w== 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=j/oeXytIOIwvYHWHS4uUk/8P2VVoQ+KCbQB7ViHbVq8=; b=xoNXMSIecjJsF1wJVV4+xsGIK+Z/0IrONzeP6aFwk3p7nB/+qP/r5d3p5DumMk+omY cm+5xgUttmxgw9ijnSe6WdDMMc20aVRbLwWtvWeLcJ8dOLHCUtImpmDW1Ntk2vvtSjBZ 57R+jaVYH7lN0LwNvarVYLNGChz5oPDQx+hhlOoz55zOv3gYZAlid17W0C/WBFdTPyXe rmX9/eH62YBpnbdCe3piPT4Wio9dW1IZfiUUuMvIrFlhpaNMMaR1Yv3LxDyisS0FMfwI n7Kyd4Ekmkrg0yHYbPZfqJirlfw2PcDOGVKb8wzFCYUyPVlpIBbr9/YSa+ApRMomhNdL D7EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EWZujSy6; 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 a33-v6si4143507pld.666.2018.02.04.20.19.35; Sun, 04 Feb 2018 20:19:50 -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=EWZujSy6; 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 S1752408AbeBEERm (ORCPT + 99 others); Sun, 4 Feb 2018 23:17:42 -0500 Received: from mail-pl0-f50.google.com ([209.85.160.50]:39441 "EHLO mail-pl0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbeBEERi (ORCPT ); Sun, 4 Feb 2018 23:17:38 -0500 Received: by mail-pl0-f50.google.com with SMTP id o13so10955933pli.6 for ; Sun, 04 Feb 2018 20:17:38 -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=j/oeXytIOIwvYHWHS4uUk/8P2VVoQ+KCbQB7ViHbVq8=; b=EWZujSy66y/Elu9nWHrIUrxruDsk9wlY79SNES9wv6qGhwNm3jWxW4X24BCufDdKlN FXECM+GkOckm5RwVPH/dAHKUWXc82ILh5ZQOV0gpoo42SD5b3n6MCBI7a62TMmp4SxA8 2sk3/2oEdmMrp5Pn1SOTIhTnzRFe+9tMFL77Y= 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=j/oeXytIOIwvYHWHS4uUk/8P2VVoQ+KCbQB7ViHbVq8=; b=AcbVe0GGRUa2Fm066L07EfO4qHjU2INMU9J9JKx/aYjFHYRuwgKfP1qVTI4ef8Z3H2 HEyfpmEtwrxZwnv4n1X0ZlY3OzeCVi/srkioN0UVYlpnuMfHyX4I6YltF36FcSZbun5K poIF8nFHeMnCHENjPqf1sQBHRFULMF5TnKKShy85G6Eh62iBt2Fxm6LSKkTwsJ0wF9jK Jju2Pd5c61M7jsLpNmYkBb/jzKJjBX0j4qn+rnjc4BN2tsD9PF9+tNpPW31G2qnCa6Ue 62de9jhT/AOtsSev2bil4zX6atkuXoxHsVVtl9yMjiH2VPsomuoU9VbA+DI/sDcb/WJ+ ax1g== X-Gm-Message-State: AKwxytcJrIfSIXE3a657yMUu7n5rQ9LU7M4mOfIFBVqo+8WFbzFQG5gs 6OYGB/2fN2eklvf55dniZI+i+g== X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr42184231plp.251.1517804257458; Sun, 04 Feb 2018 20:17:37 -0800 (PST) Received: from localhost ([122.172.61.199]) by smtp.gmail.com with ESMTPSA id z5sm11146841pge.11.2018.02.04.20.17.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Feb 2018 20:17:36 -0800 (PST) Date: Mon, 5 Feb 2018 09:47:34 +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: <20180205041734.GD28462@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8dadd854-25ac-68aa-aa9f-33ba76a137a4@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 02-02-18, 15:30, Daniel Lezcano wrote: > On 02/02/2018 11:42, Viresh Kumar wrote: > > Here is how I see the whole thing now: > > > > - Yes we need individual support for both cpufreq and cpuidle cooling devices, > > and no one disagrees on that I believe. > > > > - There is nothing in the thermal framework that disallows both cpufreq and > > cpuidle cooling devices to co-exist. Both would be part of the same thermal > > zone and so will get throttled with the same thermal sensor event. And so we > > will end up trying to cool down the SoC using both cpufreq and cpuidle > > technique. > > No. It does not work because we will need different state for each > cooling device and we need some logic behind. 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. > > - Now I am just wondering if we really need the "combo" functionality or not. > > Can we fine tune the DT cpu-cooling properties (existing ones) for a platform, > > so that it automatically acts as a combo cooling device? I am not 100% sure > > its gonna fly, but just wanted to make sure its not possible to work around > > with and then only try the combo device thing. > > > > For example, suppose that with just cpufreq-cooling device we need to take the > > CPU down to 1 GHz from 2 GHz if we cross temperature 'X'. What if we can change > > this policy from DT and say the cpufreq-cooling device goes to 1.5 GHz and > > cpuidle-cooling device takes us to idle for 'y' us, and the effect of > > combination of these two is >= the effect of the 1 GHz for just the > > cpufreq-cooling device. > > > > Is there any possibility of this to work ? > > It does not make sense. The combo does that automatically by computing > the power equivalence more precisely. Sure, but that works by creating a virtual combo-cooling device instead of two separate cooling devices and then there are several limitation (at least right now) where it doesn't sense the real situation automagically. For example I would expect the combo to just work with cpuidle if cpufreq isn't present and as soon as cpufreq comes in, covert itself to cpufreq+cpuidle. I was just trying to present another view at solving the problem at hand, not that one is better than the other. -- viresh