Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1242236ybl; Wed, 4 Dec 2019 20:37:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyda0EY9djWu1TEg3ARfQkeYg7b0GFhBtxIPIlSUIn5U5IT0qPx08c/+MwvnQ+95eXL9DFK X-Received: by 2002:a9d:6b06:: with SMTP id g6mr5249171otp.93.1575520633475; Wed, 04 Dec 2019 20:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575520633; cv=none; d=google.com; s=arc-20160816; b=F8NpTBriIC+XG1qOuomoESu+t8bMYcO9J5dgQ12Nysbll0XFfwxwF0yGFAkMOCvZwE nUvQyA5nNoid8VWLlxQNMymP1e/HbTMtkqcUF7S84S2oRHQLuqjjd2qD8o8z5yShIUNU iHUx/rxVCfOiXkWx0BFdUgD0r7RxGz5H0nWNZEXJKJA29M7FlU02X8rZQqJ7+jFPkENM yToxiHg2ZHtnaU9dH0lcWxXhicso8FpA3xf+wkw2ySNduiLIlbKzoPfB4hwFM+8bMbgD QpDAAdTPxo+TU23I1T5IL5hIg6RU2/6qsdkgnXNS/60YZ2vTblKF1pB4LRkp/hFyDHSg RkKA== 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; bh=keNUPJzqbpb1zvh7gwgj7wSZGJ1RcEtCjXcl9nIyRWA=; b=BkFE12PvhNr9ZqHcOTbRFNRiR06GSCu+09AkuR1AJGIvt6Rv5CR3tq0lxe2ae72yWB gkSa/H8+xa326sK93Zbza+VJO9TQn1VBXuPOewtMN6dxmzfuIflYDHW00P6Ofr4K+y27 27IN7xKuAixFpTxsuE+0MomnW5eYHj0dIXC5HmJ13H7mygmEodB/cyNepVhlFFSebEBH xg+mAQPJgRjMvS/lqoWcZmviB3HQ/Kh9lRzcDpc0VTgZnIJpMbGlTyJ327uddPAf09DG l+7Njf5t5OZTSWokxIsHuPNOXZfqz4QrY44plmsfT8Pd2vL/CvDJeYrQK9dUAEUgR18D QObQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hEvfs86e; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si906240oic.153.2019.12.04.20.37.01; Wed, 04 Dec 2019 20:37:13 -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=@google.com header.s=20161025 header.b=hEvfs86e; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbfLEEgQ (ORCPT + 99 others); Wed, 4 Dec 2019 23:36:16 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:32820 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbfLEEgQ (ORCPT ); Wed, 4 Dec 2019 23:36:16 -0500 Received: by mail-wr1-f67.google.com with SMTP id b6so1858141wrq.0 for ; Wed, 04 Dec 2019 20:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=keNUPJzqbpb1zvh7gwgj7wSZGJ1RcEtCjXcl9nIyRWA=; b=hEvfs86e9uivc96esO1PqMIaSDQRwe6rRSEh3UTbWwRpAfK2D9o0OHW9jyWdUe+ImC KM5sjitV4VYUSsac91vLm0LvC2QACkEbjm+0bQ9Usog5c782YsT0qny4ZFJy4VNaaSPj EoxT4aPxXr+CxnhTvj6mg+0gI6BMQ0BvXkUSCTtK4JWxrfURYclITMO5RB0/bJH0GV9K ICalID4puBDrItEojRVXbjuKsTJ/YPJt6Xlql9wzZ9RXhh3pubq8cEt3s5sYE1KzUS8x QwAVJIhhZQaZkudwl6IhRSSzAGZ1MN263zCP8gq5tnsmIZCHCa1Ve0QoErHbRHURc2er kWPA== 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=keNUPJzqbpb1zvh7gwgj7wSZGJ1RcEtCjXcl9nIyRWA=; b=T9VRrcIcRpL7JYkrYc4Nb6I6uPBQSSCcBOE6GxBG/XJxn83AaWDNW5Nc2euOaz7wIA JmrJuvaA/12MF0lU43i+o2spTElPEhLt1Z4ZKg2alHyvuJsE4XVHz4eHPue5Mq3YWnJS XaoZq0t/Y7Vh29t1VH2g4Y4B+DktOcbiLelC1lWmiCDhZP3sv5tuIcu8AsTQPBMesYcg +1KBphSusA9++0WiLMGPO96G4IP276Yij3cvckz9Cd5dUR2Qyi2eqMlTa5YLH7mPNIHJ ABjcqgR1vSJ1MSDSXmz9F83rw2CBDbFXGB/ukDW4KFolPeEHg3NxGoIX9J8691xq218k FfMQ== X-Gm-Message-State: APjAAAVjZfL2zeMZkDisytrI77pIzVMO+LzvpqgJ21Y/y+BPw1oIrG1n QiiBYZfWIrHWioKHBdFDY/syaQ== X-Received: by 2002:adf:fe86:: with SMTP id l6mr7357191wrr.252.1575520573537; Wed, 04 Dec 2019 20:36:13 -0800 (PST) Received: from google.com ([2a00:79e0:d:110:d6cc:2030:37c1:9964]) by smtp.gmail.com with ESMTPSA id j12sm11408925wrw.54.2019.12.04.20.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2019 20:36:12 -0800 (PST) Date: Thu, 5 Dec 2019 04:36:09 +0000 From: Quentin Perret To: Zhang Rui Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Linux PM list , Eduardo Valentin , Daniel Lezcano , Amit Kucheria Subject: Re: linux-next: Tree for Nov 15 (thermal: THERMAL_GOV_POWER_ALLOCATOR) Message-ID: <20191205043609.GA231782@google.com> References: <20191115190525.77efdf6c@canb.auug.org.au> <247cd41e-a07b-adf0-4ec2-6467f0257837@infradead.org> <9436e207-8a65-f01b-c348-32a8a00f03d4@infradead.org> <6d43c93a748872293df489d397f894b77b221bc9.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6d43c93a748872293df489d397f894b77b221bc9.camel@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Thursday 05 Dec 2019 at 12:27:47 (+0800), Zhang Rui wrote: > I overlooked the original report probably because I was not CCed. > > This is introduced by commit a4e893e802e6("thermal: cpu_cooling: > Migrate to using the EM framework") which adds the dependency of > ENERGY_MODEL for THERMAL_GOV_POWER_ALLOCATOR. > > To fix this, it's better to make THERMAL_DEFAULT_GOV_POWER_ALLOCATOR > depends on THERMAL_GOV_POWER_ALLOCATOR instead. > > Please confirm the problem is fixed by below patch. > > thanks, > rui > > From c9429f6e28ea2219686a4294d39f015ba373774b Mon Sep 17 00:00:00 2001 > From: Zhang Rui > Date: Thu, 5 Dec 2019 12:17:07 +0800 > Subject: [PATCH] thermal: fix a Kconfig warning > > Currently, THERMAL_GOV_POWER_ALLOCATOR is selected by > THERMAL_DEFAULT_GOV_POWER_ALLOCATOR even if it has some unmet > dependencies. > > This causes the Kconfig warning > WARNING: unmet direct dependencies detected for > THERMAL_GOV_POWER_ALLOCATOR > Depends on [n]: THERMAL [=y] && ENERGY_MODEL [=n] > Selected by [y]: > - THERMAL_DEFAULT_GOV_POWER_ALLOCATOR [=y] && > > Fix the problem by making THERMAL_DEFAULT_GOV_POWER_ALLOCATOR depends on > THERMAL_GOV_POWER_ALLOCATOR instead. > > Fixes: a4e893e802e6("thermal: cpu_cooling: Migrate to using the EM framework") > Signed-off-by: Zhang Rui > --- > drivers/thermal/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig > index 59b79fc48266..79b27865c6f4 100644 > --- a/drivers/thermal/Kconfig > +++ b/drivers/thermal/Kconfig > @@ -108,7 +108,7 @@ config THERMAL_DEFAULT_GOV_USER_SPACE > > config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR > bool "power_allocator" > - select THERMAL_GOV_POWER_ALLOCATOR > + depends on THERMAL_GOV_POWER_ALLOCATOR > help > Select this if you want to control temperature based on > system and device power allocation. This governor can only > -- > 2.17.1 FWIW, a similar fix has been suggested a couple weeks back: https://lore.kernel.org/lkml/20191113105313.41616-1-yuehaibing@huawei.com/ Thanks, Quentin