All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch]Add a new reboot method
@ 2008-05-29  9:20 Chen, Huacai
  2008-05-29  9:26 ` Keir Fraser
  2008-05-29 10:26 ` Alan Cox
  0 siblings, 2 replies; 17+ messages in thread
From: Chen, Huacai @ 2008-05-29  9:20 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]

Hi, Keir,

 

New chipsets support a new reboot method by writing port 0xcf9,
sometimes this is more efficient than "keyboard controller reboot" and
"triple fault reboot". This patch add this new method and use it as a
preferable one.

 

Signed-off-by: Huacai Chen <huacai.chen@intel.com>

 


[-- Attachment #1.2: Type: text/html, Size: 2255 bytes --]

[-- Attachment #2: new_reboot_method.patch --]
[-- Type: application/octet-stream, Size: 786 bytes --]

diff -r 672c09aad49d xen/arch/x86/shutdown.c
--- a/xen/arch/x86/shutdown.c	Tue May 20 14:50:45 2008 +0100
+++ b/xen/arch/x86/shutdown.c	Thu Feb 14 08:25:45 2008 +0800
@@ -228,6 +228,14 @@ void machine_restart(void)
 
     if ( reboot_thru_bios <= 0 )
     {
+        /*Using port 0xcf9 is a new reboot method, in many case it is more efficient than keyboard controller method*/
+        /*Step 1, soft way, write 0x06 to port 0xcf9*/
+        outb(0x6, 0xcf9);
+        /*Step 2, hard way, if soft way fails, write 0x0a, 0x0e to 0xcf9 to port 0xcf9*/
+        outb(0xa, 0xcf9);
+        outb(0xe, 0xcf9);
+
+        /*If 0xcf9 method fails, try other methods, e.g. keyboard controller and triple fault*/
         for ( ; ; )
         {
             /* Pulse the keyboard reset line. */

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-05-29 19:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29  9:20 [patch]Add a new reboot method Chen, Huacai
2008-05-29  9:26 ` Keir Fraser
2008-05-29 10:26 ` Alan Cox
2008-05-29 10:56   ` Jan Beulich
2008-05-29 11:49     ` Alan Cox
2008-05-29 12:18       ` Keir Fraser
2008-05-29 12:35         ` Keir Fraser
2008-05-29 12:52           ` Chen, Huacai
2008-05-29 13:09       ` Jan Beulich
2008-05-29 13:30         ` Keir Fraser
2008-05-29 14:59           ` Alan Cox
2008-05-29 15:49             ` Keir Fraser
2008-05-29 16:01               ` Alan Cox
2008-05-29 17:21                 ` Keir Fraser
2008-05-29 19:05                 ` Keir Fraser
2008-05-29 14:49         ` Alan Cox
2008-05-29 15:48           ` Jan Beulich

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.