cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <mail@renninger.de>
To: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: cpufreq@lists.linux.org.uk
Subject: Re: ondemand governor and passive cooling broken?
Date: Sun, 21 Aug 2005 06:48:44 +0200	[thread overview]
Message-ID: <430807AC.50309@renninger.de> (raw)
In-Reply-To: <20050816094856.GA9985@dominikbrodowski.de>

Hi,

This makes ondemand governor aware of thermal limits.
The policy was buffered and new policy values never reached the governor.

I just used the cpufreq_get_policy call every time the load is checked,
maybe the new policy should be made available via notifier as it is done
for the cur_freq in the userspace governor?
If this sounds reasonable I can come up with a bigger patch on Monday.

However, thermal cooling still does not always work right:

  - Sometimes the limit is not decreased correctly in polling frequency time
    (I saw it at max for more than 20 secs, polling freq 5 secs, passive tp exceeded).
    Strange enough, that seems to happen only in rare cases.
  - I also saw the limit stuck at lowest frequency even after getting back in
    normal temperature zones.
  - And once you entered passive cooling you always see the "cooling: passive"
    flag set in /proc/acpi/thermal_zone/*/cooling_mode


    Thomas


--- drivers/cpufreq/cpufreq_ondemand.c.orig     2005-08-20 19:26:18.000000000 -0600
+++ drivers/cpufreq/cpufreq_ondemand.c  2005-08-20 19:28:04.000000000 -0600
@@ -254,6 +254,10 @@
        if (!this_dbs_info->enable)
                return;

+       int ret = cpufreq_get_policy(this_dbs_info->cur_policy, cpu);
+       if (ret)
+               return;
+
        policy = this_dbs_info->cur_policy;
        /*
         * Every sampling_rate, we check, if current idle time is less

  reply	other threads:[~2005-08-21  4:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-03 18:17 ondemand governor and passive cooling broken? Thomas Renninger
2005-08-16  9:48 ` Dominik Brodowski
2005-08-21  4:48   ` Thomas Renninger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-24 19:09 Pallipadi, Venkatesh
2005-08-25 10:30 ` Thomas Renninger

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=430807AC.50309@renninger.de \
    --to=mail@renninger.de \
    --cc=cpufreq@lists.linux.org.uk \
    --cc=linux@dominikbrodowski.net \
    /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