cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.net>
To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Cc: "Starikovskiy, Alexey Y" <alexey.y.starikovskiy@intel.com>,
	Dave Jones <davej@redhat.com>, cpufreq <cpufreq@www.linux.org.uk>
Subject: Re: [PATCH 6/8]cpufreq: acpi-cpufreq: Eliminate get of current freq on notification
Date: Tue, 3 Oct 2006 01:20:56 +0200	[thread overview]
Message-ID: <20061002232056.GA29320@isilmar.linta.de> (raw)
In-Reply-To: <EB12A50964762B4D8111D55B764A8454ABC281@scsmsx413.amr.corp.intel.com>

Hi,

On Mon, Oct 02, 2006 at 04:16:37PM -0700, Pallipadi, Venkatesh wrote:
> 
> >-----Original Message-----
> >From: Dominik Brodowski [mailto:linux@dominikbrodowski.net] 
> >Sent: Sunday, October 01, 2006 5:52 PM
> >To: Pallipadi, Venkatesh
> >Cc: Dave Jones; cpufreq; Starikovskiy, Alexey Y
> >Subject: Re: [PATCH 6/8]cpufreq: acpi-cpufreq: Eliminate get 
> >of current freq on notification
> >
> >Hi,
> >
> >On Sun, Oct 01, 2006 at 07:15:45AM -0700, Venkatesh Pallipadi wrote:
> >> Only change the frequency if the state previously set is different
> >> from what we are trying to set. We don't really have to get 
> >the current
> >> frequency at this point.
> >
> >What if it changed behind our back? Shouldn't happen, I know, 
> >but it does
> >happen.
> >
> >	Dominik
> 
> Yes. It happens and it can happen more often with multi-core CPUs which
> has hardware coordination set up. Changing frequency on one CPU can
> affect other CPU in the same package. But, changing frequency behind the
> back does not matter on recent CPUs, as TSC is constant across P-state.
> Also, depending on frequency that changes behind the back is not good.
> If something changed behind the back, it will also later revert back to
> original state in the same way. So, if we get current frequency in
> between and take some decision based on that, will be bad.
> Example:
> - User has set the frequency to P0.
> - TM2 kicks in and reduces the frequency to P3 state.
> - Now user wants to reduce the frequency to P3 (This is the point where
> above current freq was being checked).
> - At this time, we can do two things
> Option 1)
> - Get the current frequency and see that we are in P3.
> - Do not change the frequency as per user request.
> - Now once TM2 event goes away (temperature is under control), CPU goes
> back to P0, which was original user set state.
> 
> Option 2)
> - Look at what user had set previously (P0) and set the state to P3
> (even though we are in that state due to P3).
> - Now once TM2 event goes away (temperature is under control), CPU goes
> back to last user set state in this case P3.
> 
> Option 2 is what is ideal and the patch does it that way. Same example
> as above can happen with hardware coordination as well.

Thanks for the clarification. ACK. ;)

	Dominik

  reply	other threads:[~2006-10-02 23:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-02 23:16 [PATCH 6/8]cpufreq: acpi-cpufreq: Eliminate get of current freq on notification Pallipadi, Venkatesh
2006-10-02 23:20 ` Dominik Brodowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-03 19:36 [PATCH 6/8]cpufreq:acpi-cpufreq: " Venkatesh Pallipadi
2006-10-01 14:15 [PATCH 6/8]cpufreq: acpi-cpufreq: " Venkatesh Pallipadi
2006-10-02  0:51 ` Dominik Brodowski

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=20061002232056.GA29320@isilmar.linta.de \
    --to=linux@dominikbrodowski.net \
    --cc=alexey.y.starikovskiy@intel.com \
    --cc=cpufreq@www.linux.org.uk \
    --cc=davej@redhat.com \
    --cc=venkatesh.pallipadi@intel.com \
    /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