Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752673AbbHEStr (ORCPT ); Wed, 5 Aug 2015 14:49:47 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33623 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbbHEStp (ORCPT ); Wed, 5 Aug 2015 14:49:45 -0400 Date: Wed, 5 Aug 2015 11:49:41 -0700 From: Eduardo Valentin To: Dmitry Torokhov Cc: Javi Merino , Zhang Rui , Srinivas Pandruvada , Tushar Dave , Lan Tianyu , Punit Agrawal , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] thermal: remove power allocator from list of default governors Message-ID: <20150805184938.GC4161@localhost.localdomain> References: <20150804163921.GA36852@dtor-ws> <20150805083755.GC2688@e104805> <20150805163539.GA3603@dtor-ws> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline In-Reply-To: <20150805163539.GA3603@dtor-ws> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3753 Lines: 98 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 05, 2015 at 09:35:39AM -0700, Dmitry Torokhov wrote: > On Wed, Aug 05, 2015 at 09:37:55AM +0100, Javi Merino wrote: > > On Tue, Aug 04, 2015 at 05:39:21PM +0100, Dmitry Torokhov wrote: > > > As it currently stands the power allocator governor can not handle > > > thermal zones that are not specifically crafted and therefore can not= be > > > used as a default governor. > > >=20 > > > Users need to explicitly enable this governor for thermal zones that = do > > > have enough information for its operation. > > >=20 > > > Signed-off-by: Dmitry Torokhov > > > --- > > > drivers/thermal/Kconfig | 8 -------- > > > 1 file changed, 8 deletions(-) > > >=20 > > > diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig > > > index 0390044..34d05d3 100644 > > > --- a/drivers/thermal/Kconfig > > > +++ b/drivers/thermal/Kconfig > > > @@ -82,14 +82,6 @@ config THERMAL_DEFAULT_GOV_USER_SPACE > > > Select this if you want to let the user space manage the > > > platform thermals. > > > =20 > > > -config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR > > > - bool "power_allocator" > > > - select THERMAL_GOV_POWER_ALLOCATOR > > > - help > > > - Select this if you want to control temperature based on > > > - system and device power allocation. This governor can only > > > - operate on cooling devices that implement the power API. > > > - > >=20 > > Currently the only way we have for a thermal zone configured from > > device tree to use a governor from the kernel boot is by using > > THERMAL_DEFAULT_GOV_*. If we remove this option some devices won't > > have a workable thermal framework until userspace is up and running. >=20 > Why would step wise, or fair share be not workable (even if not optimal) > thermal frameworks? It doe snot take that long to get to [early] > userspace. Half of the boot time the thermal framework is not working > anyway because half of the devices that can act as colling devices are > not yet logically there. >=20 > >=20 > > Would you rather have the power allocator governor accept every > > thermal zone? >=20 > If it is to be one of default governors then yes, it needs to be able to > manage all thermal zones, the same way as the other 3 governors can, as > far as I know. I believe fairshare also relies on platform data to be properly set, otherwise, it would not be functional. That's probably why I overlooked this point. That said, I would say, if we follow this logic, a similar patch is needed for fairshare. Javi, ideally, the governor would need to have a workable default settings for any thermal zone that miss the platform settings. Do you think it would be doable for power allocator? BR, >=20 > Thanks. >=20 > --=20 > Dmitry --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJVwlq+AAoJEMLUO4d9pOJW1qoIAI3m2rK2JSjUyEKEBCFpjfhU WZdJyHTXDC/u3HcwmZIevA5LAm8AQnTZw/khrXP5E4anzuw3Q4zhPmfSlCUEyYhp kQMEMVGcGlfh7bfWzfu5Uc73gTDYmMMWtg0gFjBB251cZXfmxyuHS/FhOPqo9uFe 1ocbZacJlPSlCEMRoGsan3xLAta5dZ/RcrYHeCfs8mUwkvHEvjeddoDwcf4vJ010 eEQlmqWOWWgoPjxV7DHQBzLjmOSgAs/aViZUkDWNhd2eXJDOMB7WiV3SrLSHYPqJ lPBvpy9Hw3Xuk3q94Zn8/rxkn6B4NHVtlxJm6Oat9Qb3sVAHTEa0zwGUKUj0g7g= =UfiG -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/