Received: by 10.223.176.5 with SMTP id f5csp509774wra; Tue, 6 Feb 2018 02:50:04 -0800 (PST) X-Google-Smtp-Source: AH8x224aEGrtSKIjY7sSX3rJJDIDsUnze/3KaeLT9W1dtOPHQQqxYg/lH+4Um25PmRz2adyyUo+X X-Received: by 2002:a17:902:595d:: with SMTP id e29-v6mr2028964plj.436.1517914204145; Tue, 06 Feb 2018 02:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517914204; cv=none; d=google.com; s=arc-20160816; b=YUGS5hpMEyZm7xzIUL5YSJQRW4c2U/rM0ozNCcLN81xsmAmCLzqNLwKcERm54d0kBV Pwo1AqvKnrY2891MiivBujyGrMuUJrBf9WKTuF2kQD7vdKwog5ogaht5/YAi3O2iDLpM ea3l4wW+3dDyVs/z8z/Vi8GUKAwaHPiW+xqrD3aboQoHMMDJGDCSxh2gqQBw38RmuZc0 q5vXRw2dyeFdd0WmeRMHqvDup14Z7DgsAAis4bl8T9crVRZ4PKjCL+8Q0vj5i/t0Xf4R Eew7UzffimTgYyk2iQteiQc6dWmMskvF/tu8yOGmEcTKByCgoTEaApfu3tU7B7atrHDH 4MRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=fONL95k4USdiEbmszUKMqPL/jn7y1ON+D15voEegdGA=; b=eGzPstbww3dnsQbt62PyOlPtAFNgeCHhWJ0Lm+Rb8gWa5TAt1oCyOmPm+AjSnZWc0j ohspOhCXYn4s7BR2pBGsZozWcbS2MDjty9EpMUJTz3/+YrIjNMkBJx/8VZ2/Bg5MCH6P ymQ2EIqfzs1JmkUIVC4CZt1i/TI20GKoy8dZ1CMDQ3LSU9JfQ0K6K5S3wZKZmu7Xu090 H5Bj/M0aQH4/RaNi5KwWgCs58XXs0hbV/gII24+U0Z1A/W4+Dg7a8SpEkAb6/dqT9DeN MB4QPz5kxSpJoBus0UtzaedXHTr9sjTNbY3UHTX+gllOHUWCuYW2ZQf6HBirFuLbYLiv bMYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Om8wRfbc; 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 b13-v6si1322078pls.222.2018.02.06.02.49.50; Tue, 06 Feb 2018 02:50:04 -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=Om8wRfbc; 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 S1752772AbeBFKtI (ORCPT + 99 others); Tue, 6 Feb 2018 05:49:08 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:33084 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbeBFKtC (ORCPT ); Tue, 6 Feb 2018 05:49:02 -0500 Received: by mail-wm0-f41.google.com with SMTP id x4-v6so17251146wmc.0 for ; Tue, 06 Feb 2018 02:49:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fONL95k4USdiEbmszUKMqPL/jn7y1ON+D15voEegdGA=; b=Om8wRfbc1oczzORlsIaYkdp9X50n/6cIES6Bx9DRJsL0OVbv+lf/FYCfsbOqsTFB4i LzUPYCpQRMLgqSTuY2OM5i0IrfUoziYAv23nLTRjp2IA2pSz+WEYPQMTjUubDijYwGRu /dxCWaQik4nWuSYdd35DVYBwPLd6ZxFIuHaZg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fONL95k4USdiEbmszUKMqPL/jn7y1ON+D15voEegdGA=; b=VnZqAWpQbLw2tR9G/0Unkek5699A9QviBVYDwtknxppcyvgkvYyW2azy4qDaBURyBW AjILWGlOShOKKkzAkMf0T2hD7cOjrSnMXZBL8PmXC10LQuFdVj252Pe2xdmgcfV3H0/k Ti0PH10zJyJ3IJuHaaUVY4QF7ztKMWxEXz+W6WZ32HDSee/dZJKtarsQT3kxuQliLxRR QJzuDnedTLrIEfOB6O2PNkV1XjkCYAHjqt7xMoJNmJX6jCqlV0WFFoqvSpFWD4UpHzrr D3lniAngwL5oXjLUbbV9yzdnIWF+Vl5qZtVgZ/A3s2gk7zVUXWfM/eqxPUrrq/tg8xlR IsKQ== X-Gm-Message-State: APf1xPA+B2bBIHiKva0B2oywNelPXac3V/sfKt5UTgZXJKN5khrQtS7v if447qQQqrKuHUVkLvnkjzyehQ== X-Received: by 10.80.215.146 with SMTP id w18mr3238340edi.208.1517914141219; Tue, 06 Feb 2018 02:49:01 -0800 (PST) Received: from [192.168.1.75] (lft31-1-88-121-166-205.fbx.proxad.net. [88.121.166.205]) by smtp.googlemail.com with ESMTPSA id j17sm9913011ede.84.2018.02.06.02.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 02:49:00 -0800 (PST) From: Daniel Lezcano Subject: Re: [PATCH 8/8] thermal/drivers/cpu_cooling: Add the combo cpu cooling device To: Viresh Kumar 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 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> <20180206042853.GI28462@vireshk-i7> Message-ID: <54081703-c48f-3e07-b79d-3a2831bc28d7@linaro.org> Date: Tue, 6 Feb 2018 11:48:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180206042853.GI28462@vireshk-i7> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/2018 05:28, Viresh Kumar wrote: > 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. Can you give an example? Or your understanding is incorrect or I missed the point. >> 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. Easy to say :) The current code is to introduce the feature without impacting the DT bindings in order to keep focused on the thermal mitigation aspect. There are still a lot of improvements to do after that. You are basically asking me to implement the copy-on-write before the memory management is complete. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog