cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Alexey Dobriyan <adobriyan@openvz.org>
Cc: cpufreq@lists.linux.org.uk, devel@openvz.org
Subject: Re: rdmsr_on_cpu, wrmsr_on_cpu et al
Date: Wed, 17 Jan 2007 20:01:34 -0500	[thread overview]
Message-ID: <20070118010134.GB31366@redhat.com> (raw)
In-Reply-To: <20070117132613.GC6021@localhost.sw.ru>

On Wed, Jan 17, 2007 at 04:26:13PM +0300, Alexey Dobriyan wrote:
 > Hi, Dave!
 > 
 > There was OpenVZ specific bug rendering some cpufreq drivers unusable
 > on SMP. In short, when cpufreq code thinks it confined itself to
 > needed cpu by means of set_cpus_allowed() to execute rdmsr, some
 > "virtual cpu" feature can migrate process to anywhere. This triggers
 > bugons and does wrong things in general.
 > 
 > This got fixed by introducing rdmsr_on_cpu and wrmsr_on_cpu executing
 > rdmsr and wrmsr on given physical cpu by means of smp_call_function_single().
 > 
 > So, understanding p4-clockmod is not the only driver that was affected,
 > is something like this acceptable for start?

This is probably useful outside of cpufreq too, so should probably
go somewhere in include/asm/processor.h for eg.
Looks ok on a quick glance, but I'd like to see if anyone on lkml
has any comments, especially the usual x86/x86-64 experts.

		Dave

-- 
http://www.codemonkey.org.uk

      reply	other threads:[~2007-01-18  1:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 13:26 rdmsr_on_cpu, wrmsr_on_cpu et al Alexey Dobriyan
2007-01-18  1:01 ` Dave Jones [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=20070118010134.GB31366@redhat.com \
    --to=davej@redhat.com \
    --cc=adobriyan@openvz.org \
    --cc=cpufreq@lists.linux.org.uk \
    --cc=devel@openvz.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