From: Jerone Young <jyoung5@us.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [kvm-ppc-devel] [PATCH 1 of 2] Add MSR Wait state to
Date: Fri, 28 Mar 2008 22:16:11 +0000 [thread overview]
Message-ID: <1206742571.22572.13.camel@thinkpadL> (raw)
In-Reply-To: <1206740585.5432.29.camel@basalt>
On Fri, 2008-03-28 at 17:10 -0500, Nathan Lynch wrote:
> Jerone Young wrote:
> > On Fri, 2008-03-28 at 16:43 -0500, Hollis Blanchard wrote:
> > > > #ifdef CONFIG_HOTPLUG_CPU
> > > > /* this is used for software suspend, and that shuts down
> > > > @@ -88,6 +90,10 @@ void cpu_idle(void)
> > > > HMT_low();
> > > > HMT_very_low();
> > > > }
> > > > +
> > > > + /* set wait state MSR */
> > > > + msr_save = mfmsr();
> > > > + mtmsr(msr_save|MSR_WE);
> > > > }
> > > >
> > > > HMT_medium();
> > >
> > > The code you are modifying is common to all PowerPC kernels. Why didn't
> > > you use the power_save() hook provided to you?
> > >
> >
> > power_save() is called with interrupts disabled. So we would never wake
> > up.
>
> MSR_WE/POW is implementation-dependent and modifying it in generic
> code is not okay.
I figured this would come out as an issue. Once I got to linuxppc-dev
>
> You can re-enable interrupts in your power_save implementation before
> setting MSR_WE (in fact power4_idle does this).
OK great .. I'll do this then.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
prev parent reply other threads:[~2008-03-28 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 21:43 [kvm-ppc-devel] [PATCH 1 of 2] Add MSR Wait state to Hollis Blanchard
2008-03-28 21:55 ` Jerone Young
2008-03-28 22:16 ` Jerone Young [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=1206742571.22572.13.camel@thinkpadL \
--to=jyoung5@us.ibm.com \
--cc=kvm-ppc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.