Received: by 10.223.176.5 with SMTP id f5csp1161048wra; Wed, 31 Jan 2018 02:10:29 -0800 (PST) X-Google-Smtp-Source: AH8x227vrY4AN4HR/vn+sVo4+w3V/A/TYEqYsQcV0i7AnryUYbFta6RYbk3O4s8Tp7tQrWlKP/dO X-Received: by 10.101.75.81 with SMTP id k17mr26773982pgt.335.1517393428860; Wed, 31 Jan 2018 02:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517393428; cv=none; d=google.com; s=arc-20160816; b=KNYue2NxrkzJckgAACqzIjqk2JgKra/EBcyeuPtJ9XEgurVmCYraAhLHQ29Zo8Smvg 2y3Bbbc6Vjc6YHGZQUb64Bo7IexbmZV6HfDGQhX/JEeHS/TALQHJri3c/Rftt0GKzimM iE9OlG08205big/PagxXJ5ssof4WsfiS0vEcqdy9ug4c3gcMyLtsnjJplE+wZvtb5qzj KYm/FQDh52DXpggx7NBIdqkxYSGTFtr0f7vyxrzENxmz7xNUfXykI2XTP7CAllEiyP1U BhHpeqSYvxI0OthMIDjDgKfd+xapDjXdup8X/gdu/UOEmMY3QsLKdGu89b7D7zqRU3gF O7Jw== 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=MoFM4G+CicMbzQrMBHJIigB7rA9MrEIZYllEbBtQrjc=; b=mPN3K+KHPdwB3NPw4fY32x3bB3SFFtA9ceyhFo7ITFUy/qNXg1bOjDYRAwNCTIFeZR 2sgMygtphkA4BTZL1i+ONbEuZCk0j3FkU+uHSUJJBkX9WM6npLRZFx95m7MQbg8IM0Fq LUVIVPS3YQRjHeABJQs2nDCI4uRGr1RHxLd2sO3/MMFgoxfXID50gq5TBALJ0RF8scbG gLAEIeKsPq6PdXsWewwCqnOpmY/lijDjjRIGynZ5Nfads7E8Hx2mF/p1qE6lpf0ngWLm Y6FCCBqg2ahHffMnQEzT/jtYErDrKX83+L2b8athtcENWdbNjy4Tz1Qfo1wAAbHqf1zk WOqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KiLRN2vS; 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 n8si1410911pgc.322.2018.01.31.02.10.13; Wed, 31 Jan 2018 02:10:28 -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=KiLRN2vS; 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 S932099AbeAaKJO (ORCPT + 99 others); Wed, 31 Jan 2018 05:09:14 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:52077 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbeAaKJL (ORCPT ); Wed, 31 Jan 2018 05:09:11 -0500 Received: by mail-wm0-f44.google.com with SMTP id r71so6951813wmd.1 for ; Wed, 31 Jan 2018 02:09:10 -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=MoFM4G+CicMbzQrMBHJIigB7rA9MrEIZYllEbBtQrjc=; b=KiLRN2vSAkRIsza1hO4je9IfxjfoeysHxF+vlhnUPyXkQvUhf1PpWxURXQSQdIYBx2 KS3l2qYDSzub6mrAxVCaVepxKY//5ZeuykSQAsMW/7Wp81hbLO44XTc7Gl44ua8yf5A+ 0KC4dwyK9181FcwVT4LvLkgotVgF5AN2xZi1g= 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=MoFM4G+CicMbzQrMBHJIigB7rA9MrEIZYllEbBtQrjc=; b=lX6UI+n8SWEkAdsTlMv1p6PSDG3vnxRIE/3yWTcGnWfFtoyOJnubbpHggMCJyAvdfH M9GenIzWsz29l/blXRwnVkcAuVDlscDn+396qufYNYnciimitCQOALl3xy+ec6pkMXqy Y6U06ETNezIQ45PjfkD5G2l+aYlC+HrQ1cF6Vjv9eJkSgT8GK3IOFDyHXEawjl7lsFCB 2TtMUtcT+IMGV340LPCp6EtLLQXYgogfCfckQIch2Y978tfVQgcGzxeO6EZrYErWMqUH EP9hmsqxzx6+tf6LI9KCBH2VILLsrvsezEjxjNA4T0fqFmjbhMfVAmMQH+1gGTMqBzDo a2+Q== X-Gm-Message-State: AKwxyteWis5jxSbNHkoOQ1Og/AUQ/D3X4XD9qIdkYKVizh1e/cwFN5V5 UCc8/9kiICIiAul0ca0W1ciTeQ== X-Received: by 10.28.216.149 with SMTP id p143mr23178903wmg.80.1517393350039; Wed, 31 Jan 2018 02:09:10 -0800 (PST) Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id r189sm12595406wmd.39.2018.01.31.02.09.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 02:09:08 -0800 (PST) Date: Wed, 31 Jan 2018 10:09:06 +0000 From: Daniel Thompson To: Daniel Lezcano Cc: edubezval@gmail.com, kevin.wangtao@linaro.org, leo.yan@linaro.org, vincent.guittot@linaro.org, amit.kachhap@gmail.com, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org, Zhang Rui , "open list:THERMAL" Subject: Re: [PATCH 4/8] thermal/drivers/Kconfig: Convert the CPU cooling device to a choice Message-ID: <20180131100906.qdfas2zfoidmbh2b@oak.lan> References: <1516721671-16360-1-git-send-email-daniel.lezcano@linaro.org> <1516721671-16360-5-git-send-email-daniel.lezcano@linaro.org> <20180124163441.7sqq7qny66d6sqrz@oak.lan> <02e80d2c-3672-f7e2-dfb2-aed3efc84759@linaro.org> <20180125105715.sae3nwvz7u32v4va@oak.lan> <20180126121609.qfahclcdamii7a27@oak.lan> <301b5fe7-472e-6291-2880-4202de657de8@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <301b5fe7-472e-6291-2880-4202de657de8@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 02:25:58PM +0100, Daniel Lezcano wrote: > > Perhaps I should have distinguished more between runtime-meaning-boot-time > > and runtime-meaning-full-system-operation. To be clear none of my > > comments are about being able to enable/disable idle injection on a > > fully running system. It is the impact on multi-platform binaries that > > attracted my attention. > > > > > >> I prefer to keep simple self-encapsulated feature code and make it > >> evolve to something better instead of sending a blowing patch series > >> taking into account all possible combinations. Choosing the strategy at > >> compile time may be look restrictive but we can live with that without > >> problem and iteratively do the change until the choice becomes the > >> default strategy selection option. > > > > You won't find me arguing against iterative improvement. However I > > did observe that the idle injection code consists almost exclusively > > of new lines of code. Thus I don't understand why this new code > > interferes with cpufreq cooling to the point that the existing cooling > > options must compiled out of the kernel before we can exploit it. > > > > I can see the combo code does have tentacles in more places but even so > > I have the same question. What prevents the existing cooling strategy > > from being compiled at the same time. > > > > You appear to be saying that there's not yet enough infrastructure to > > decide which type of cooler to instantiate[1] so its OK to hack around > > the decision by forcing it to be made it at compile time. Even if we > > want to force a decision by some means, is compile time really the best > > point to do that? > > For the moment, yes. We are backward compatible, there is no change with > the current feature. > > I don't see really the point of being so afraid with this compilation > option, it is not the first time we have compile time code which > migrates to runtime code. The important thing is we don't break the > existing. I guess its because the code that implements the cooling devices doesn't look like there is any conflict preventing them being enabled at the same time except. There isn't even that much problem choosing between cpufreq-only and cpuidle-only during instatiation (preferring cpufreq for the benefit of existing platforms) although I can see that we cannot choose between cpufreq-only and combo without extending the DT bindings. > Having the runtime selection is the objective after improving the CPU > cooling devices. But this is far from being trivial and will need a > rework of the cooling device / framework (and the changes grouped in a > separate patch series). I guess if I'm in a minority of one then I can agree to disagree at this point. I don't like build-time only features (for all the distro centric reasons I've already mentioned) but I'm not that heavily invested... and look forward to seeing runtime selection implemented. Daniel.