From: Dominik Brodowski <linux@dominikbrodowski.net>
To: "Chumbalkar, Nagananda" <Nagananda.Chumbalkar@hp.com>
Cc: "davej@redhat.com" <davej@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"mjg@redhat.com" <mjg@redhat.com>,
"trenn@suse.de" <trenn@suse.de>,
"lenb@kernel.org" <lenb@kernel.org>
Subject: Re: [PATCH] cpufreq: Processor Clocking Control interface driver
Date: Wed, 16 Dec 2009 17:38:11 +0100 [thread overview]
Message-ID: <20091216163811.GA18921@isilmar.linta.de> (raw)
In-Reply-To: <66D9D2F0CDB5C9428E6166B01EC85EE161DEEE4166@GVW0676EXC.americas.hpqcorp.net>
Hey,
On Wed, Dec 16, 2009 at 03:31:48PM +0000, Chumbalkar, Nagananda wrote:
> >> >> + if (target_freq <=
> >> >(ioread32(&pcch_hdr->minimum_frequency) * 1000)) {
> >> >> + target_freq =
> >> >ioread32(&pcch_hdr->minimum_frequency) * 1000;
> >> >> + dprintk("target: target_freq for cpu %d was
> >> >below limit, "
> >> >> + "converted it to %d\n", cpu, target_freq);
> >> >> + }
> >> >
> >> >why not do this in the _verify() step? Does
> >pcch_hdr->minimum_frequency
> >> >even change "on the fly"?
> >>
> >> pcch_hdr->minimum_frequency does not change "on the fly".
> >Also, there is no
> >> need for those IO accesses:
> >
> >target_freq cannot be below policy->min or above policy->max.
> >If it were,
> >the whole cpufreq subsystem is broken. So there's no need for
> >these checks,
> >AFAICS.
> >
>
> I think the "ondemand" governor can ask for a target frequency that is
> below policy->min.
>
> Let's say that at a given snapshot, the frequency of a CPU is policy->cur.
> At the next sampling, if the "load" on the CPU drops to a level that
> satisifies the equation below, then freq_next requested by "ondemand"
> will be below policy->min:
>
> load < (threshold - differential) * policy->min / policy->cur
>
> A patch such as below may be needed to sanitize the target frequency
> requested by "ondemand". The "conservative" governor already has this check:
If freq_next < policy->min is indeed possible in ondemand, that's a real bug
in ondemand.
Best,
Dominik
prev parent reply other threads:[~2009-12-16 16:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-11 22:55 [PATCH] cpufreq: Processor Clocking Control interface driver Naga Chumbalkar
2009-12-11 23:12 ` Dominik Brodowski
2009-12-15 18:08 ` Chumbalkar, Nagananda
2009-12-15 18:33 ` Dominik Brodowski
2009-12-16 15:31 ` Chumbalkar, Nagananda
2009-12-16 16:38 ` Dominik Brodowski [this message]
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=20091216163811.GA18921@isilmar.linta.de \
--to=linux@dominikbrodowski.net \
--cc=Nagananda.Chumbalkar@hp.com \
--cc=cpufreq@vger.kernel.org \
--cc=davej@redhat.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=trenn@suse.de \
/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