Add idle wait support for 44x platforms
Subsystems (2)
PATCH v4 1/1 Add idle wait support for 44x platforms
2 files changed, 87 insertions(+), 1 deletion(-)
arch/powerpc/platforms/44x/Makefile | 2arch/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.
arch/powerpc/platforms/44x/Makefile +1 -1
@@ -1,4 +1,4 @@ obj-$(CONFIG_44x) := misc_44x.o -obj-$(CONFIG_44x) := misc_44x.o +obj-$(CONFIG_44x) := misc_44x.o idle.o obj-$(CONFIG_EBONY) += ebony.o obj-$(CONFIG_TAISHAN) += taishan.o obj-$(CONFIG_BAMBOO) += bamboo.o
arch/powerpc/platforms/44x/idle.c new file +86 -0
86 lines not on this page · raw message
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
Re: [kvm-ppc-devel] [PATCH] [v4] Add idle wait support for 44x
Quoted 13 lines · On Fri, 04 Apr 2008 11:28:27 -0500 Jerone Young <[email protected]> wrote:
2 files changed, 87 insertions(+), 1 deletion(-)
arch/powerpc/platforms/44x/Makefile| 2arch/powerpc/platforms/44x/idle.c| 86 +++++++++++++++++++++++++++++++++++- adds
MSR_DEto MSRs to enable while in wait stateThis patch adds the ability for the CPU to go into wait state while in
cpu_idleloop. 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
Quoted 8 lines
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 <[email protected]>
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
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-ppc-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel