linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Valentin <edubezval@gmail.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Lists linaro-kernel <linaro-kernel@lists.linaro.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	Lukasz Majewski <l.majewski@samsung.com>
Subject: Re: [PATCH] cpufreq-dt: register cooling device after validating cpufreq table
Date: Wed, 26 Nov 2014 11:10:32 -0400	[thread overview]
Message-ID: <20141126151030.GA3925@developer> (raw)
In-Reply-To: <CAKohpo=ZM8QstEOp1A86N2jzDEY5w2FmB7K0rtLPmzg+_iZdMw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1945 bytes --]


Hello Viresh, Rafael,

On Wed, Nov 26, 2014 at 11:27:42AM +0530, Viresh Kumar wrote:
> On 26 November 2014 at 03:35, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > And what bad things are going to happen if this is not pushed for 3.18?
> 
> This is what Eduardo reported in one of the mails:
> 
> ---
> 
> As an example, I am taking the ti-soc-thermal, but we already have other
> of-thermal based drivers. Booting with this patch ti-soc-thermal
> (of-based boot) loads fine, but the cpu_cooling never gets bound to the
> thermal zone.
> 
> The thing is that the bind may happen before cpufreq-dt code loads the
> cpufreq driver, and when cpu_cooling is checking what is the max freq,
> by using cpufreq table, it won't be able to do it, as there is no table.
> 
> While, without the patch, it will use wrong in the binding, but after
> it gets bound, and cpufreq loads, the max will be used correctly.
> 
> ----
> 
> And so it looked like things aren't going to work smoothly in 3.18
> and so I thought we should get it in.
> 

The bug exists, it is there for 3.18. But also, as I explained in that
thread, the current code is able to initialize the of cooling device and
to register it in its thermal zone. But that works by lucky because we
do not have the proper return code checks in thermal core.

> But probably the problem will be worst only after applying Lukasz
> patchset?

The bug gets exposed by his patch.

> 
> @Eduardo: Do you want Rafael to apply this for 3.18? or 3.19 will
> work as well ?


I believe, for this case, 3.19 is best option. Looks like we have a
possible API massage coming, so, targetting 3.18 would be rushy. I'd
rather think of a proper way to fix this, scalable and that makes
sense to everybody, even if takes extra merge window, than rushing for a
fix that we may need to revisit it again in near future.


BR,

Eduardo Valentin
> 
> --
> viresh

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  parent reply	other threads:[~2014-11-26 15:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-24 10:59 [PATCH] cpufreq-dt: register cooling device after validating cpufreq table Viresh Kumar
2014-11-24 18:10 ` Eduardo Valentin
2014-11-25 10:57   ` Viresh Kumar
2014-11-25  1:44     ` Eduardo Valentin
2014-11-25 15:26       ` Viresh Kumar
2014-11-25 20:47         ` Rafael J. Wysocki
2014-11-26  3:28           ` Viresh Kumar
2014-11-25 10:56 ` Lukasz Majewski
2014-11-25 21:49 ` Rafael J. Wysocki
2014-11-25 22:05   ` Rafael J. Wysocki
2014-11-26  5:57     ` Viresh Kumar
2014-11-26  6:02       ` Viresh Kumar
2014-11-26 15:10       ` Eduardo Valentin [this message]
2014-11-26 22:57         ` Rafael J. Wysocki
2014-11-26  3:30   ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141126151030.GA3925@developer \
    --to=edubezval@gmail.com \
    --cc=l.majewski@samsung.com \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).