Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5616326ybh; Wed, 7 Aug 2019 08:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2MNAteMrOWy8azj9D4SlO7sfL1NN/ga6fTfwjRcjJfmhzvOS2b9smnMofQL1fR2IgiEBa X-Received: by 2002:a17:90a:290b:: with SMTP id g11mr552914pjd.122.1565192642059; Wed, 07 Aug 2019 08:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565192642; cv=none; d=google.com; s=arc-20160816; b=lMydxf5J1Z7oyPP0/4iPj+UhfF1k1jaRBmANde3CZHTzXrrKwSWeFeyEg0rW1HlEgD LScbjgZ8ZHa5jZoAcf8asekW/7eRbGXzyCw2xidUWPfjrJs0nWPYijQPMonpZBuqeXFY uYmjkzMy6ZYuQGnKHXj4bwfDnfn9esW/l9FDBcjPNLhbyhJsZqSm/2euzywQUAedLjpN 9MEp+NMNJhFnqPjAxHP1ztBlzEDQw4A9EJ7n96YDm5murF6RF4kQis2QWAISyyqrL+Mr /oBHobIhbQgfzkCltqTLyveaBzg6Z59asGyvgwzHPgbaJXINU9rKVOsA5C61BWtrk9wp 5iCg== 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; bh=TZhWHrLI011ZEQzTmVBayk1V9mw8KkI/0/jaGeGPiww=; b=RZJMBJk6j4CwGZIH2hNe9UglQSl85uzaVu8RJtBWa52qS3UVWT95q6vhf1hHvE+Xva BJ/QZqhKoJrOjGsVX0S1N9cFkoF9eZahBUslh8J5Xst1vrA1RtcsiY1V0paEXX2q1t56 TE3ZRa7u8UWUZcNr9x4adgNMTKteOSEc8VZhTrrYi7OauRlZ64kCorN3u1ic6GPin2Ey ask1agcf6rB4mtVjo7eoMCQzUKUp4t55jN8IDq7FnL5ZsbVZ9tv/cRALcquxG+fWuT4f iNkBcrqCf5NoVYUYcjkKn2YqauvnOOfIum6Aib1rCEK4wUzVQiC/zoYLVIXLqPtg1IWX cxjg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si14788316pgm.179.2019.08.07.08.43.46; Wed, 07 Aug 2019 08:44:02 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388730AbfHGPmY (ORCPT + 99 others); Wed, 7 Aug 2019 11:42:24 -0400 Received: from foss.arm.com ([217.140.110.172]:50498 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387827AbfHGPmY (ORCPT ); Wed, 7 Aug 2019 11:42:24 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 769C8344; Wed, 7 Aug 2019 08:42:23 -0700 (PDT) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 72BB53F706; Wed, 7 Aug 2019 08:42:21 -0700 (PDT) Date: Wed, 7 Aug 2019 16:42:20 +0100 From: Quentin Perret To: edubezval@gmail.com, rui.zhang@intel.com, javi.merino@kernel.org, viresh.kumar@linaro.org, amit.kachhap@gmail.com, rjw@rjwysocki.net, catalin.marinas@arm.com, will@kernel.org, daniel.lezcano@linaro.org, lkp@intel.com Cc: dietmar.eggemann@arm.com, ionela.voinescu@arm.com, mka@chromium.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 3/3] thermal: cpu_cooling: Migrate to using the EM framework Message-ID: <20190807154217.a4rxvj4uerptq52r@queper01-lin> References: <20190801124643.17112-1-quentin.perret@arm.com> <20190801124643.17112-4-quentin.perret@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190801124643.17112-4-quentin.perret@arm.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Thursday 01 Aug 2019 at 13:46:43 (+0100), Quentin Perret wrote: > diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig > index 9966364a6deb..340853a3ca48 100644 > --- a/drivers/thermal/Kconfig > +++ b/drivers/thermal/Kconfig > @@ -144,6 +144,7 @@ config THERMAL_GOV_USER_SPACE > > config THERMAL_GOV_POWER_ALLOCATOR > bool "Power allocator thermal governor" > + depends on ENERGY_MODEL > help > Enable this to manage platform thermals by dynamically > allocating and limiting power to devices. FYI, the kbuild bot just reported a randconfig build issue with this. THERMAL_DEFAULT_GOV_POWER_ALLOCATOR 'select' THERMAL_GOV_POWER_ALLOCATOR unconditionally. And I just learned 'select' will force the option ON and totally ignore its dependencies. That is, we can end up with IPA force-compiled in, and no PM_EM, which is broken. So I guess the simplest fix is to do 'select ENERGY_MODEL' in this patch, instead of depending on it. I'll send a v7 with this fixed shortly. Thanks, Quentin