linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Jerone Young <jyoung5@us.ibm.com>
Cc: kvm-ppc-devel@lists.sourceforge.net, linuxppc-dev@ozlabs.org,
	hollisb@us.ibm.com
Subject: Re: [PATCH] [v4] Add idle wait support for 44x platforms
Date: Fri, 4 Apr 2008 20:19:32 -0500	[thread overview]
Message-ID: <20080404201932.45aa8862@zod.rchland.ibm.com> (raw)
In-Reply-To: <bff8b51bd3e1c38518c3.1207326507@thinkpadL>

On Fri, 04 Apr 2008 11:28:27 -0500
Jerone Young <jyoung5@us.ibm.com> wrote:

> 2 files changed, 87 insertions(+), 1 deletion(-)
> arch/powerpc/platforms/44x/Makefile |    2 
> arch/powerpc/platforms/44x/idle.c   |   86 +++++++++++++++++++++++++++++++++++
> 
> 
> - adds MSR_DE to MSRs to enable while in wait state
> 
> This patch adds the ability for the CPU to go into wait state while in cpu_idle loop. This helps virtulization solutions know when the guest Linux kernel is in an idle state. There are two ways to do it.
> 
> 1) Command line
> 	idle=spin <-- CPU will spin (this is the default)
> 	idle=wait <-- set CPU into wait state when idle
> 
> 2) The device tree will be checked for the "/hypervisor" node
>    If this node is seen it will use "wait" for idle, so that
>    the hypervisor can know when guest Linux kernel it is in
>    an idle state.
> 
> This patch, unlike the last, isolates the code to 44x platforms.
> 
> Signed-off-by: Jerone Young <jyoung5@us.ibm.com>

This one looks great to me.  Thanks for being persistent.

I'll keep it queued up until early next week.  I've emailed the CPU
engineers to see what exactly wait state does to the core and if they
know of any issues with it.

If it comes back clean from them and we get good test results with it
enabled, then we can likely reverse the default to use it and remove
the check for the hypervisor node.

josh

      reply	other threads:[~2008-04-05  1:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 16:28 [PATCH] [v4] Add idle wait support for 44x platforms Jerone Young
2008-04-05  1:19 ` Josh Boyer [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=20080404201932.45aa8862@zod.rchland.ibm.com \
    --to=jwboyer@linux.vnet.ibm.com \
    --cc=hollisb@us.ibm.com \
    --cc=jyoung5@us.ibm.com \
    --cc=kvm-ppc-devel@lists.sourceforge.net \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).