All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET
@ 2009-10-14  9:26 Wei, Gang
  2009-10-14 10:07 ` Keir Fraser
  2009-10-14 19:58 ` Jeremy Fitzhardinge
  0 siblings, 2 replies; 10+ messages in thread
From: Wei, Gang @ 2009-10-14  9:26 UTC (permalink / raw)
  To: Xen-devel; +Cc: Keir Fraser

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET

Xen is using HPET to wakeup cpu from deep c-states, so the HPET usage in dom0
must be fobidden. In 2.6.18-xen, the HPET was by default disabled in config
file. For upstream kernel built for pv dom0, it is not practical to disable dom0
HPET usage in that way because the same image may be also using as bare metal 
kernerl. So add cmdline option to do this thing for dom0.

Signed-off-by: Wei Gang <gang.wei@intel.com>

diff -r 9ba855e57afb xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c	Tue Sep 29 20:56:30 2009 +0800
+++ b/xen/arch/x86/setup.c	Tue Oct 13 22:32:13 2009 +0800
@@ -1106,6 +1106,7 @@ void __init __start_xen(unsigned long mb
             safe_strcat(dom0_cmdline, " acpi=");
             safe_strcat(dom0_cmdline, acpi_param);
         }
+        safe_strcat(dom0_cmdline, " nohpet");
 
         cmdline = dom0_cmdline;
     }

[-- Attachment #2: disable-dom0-hpet.patch --]
[-- Type: application/octet-stream, Size: 907 bytes --]

Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET

Xen is using HPET to wakeup cpu from deep c-states, so the HPET usage in dom0
must be fobidden. In 2.6.18-xen, the HPET was by default disabled in config
file. For upstream kernel built for pv dom0, it is not practical to disable dom0
HPET usage in that way because the same image may be also using as bare metal 
kernerl. So add cmdline option to do this thing for dom0.

Signed-off-by: Wei Gang <gang.wei@intel.com>

diff -r 9ba855e57afb xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c	Tue Sep 29 20:56:30 2009 +0800
+++ b/xen/arch/x86/setup.c	Tue Oct 13 22:32:13 2009 +0800
@@ -1106,6 +1106,7 @@ void __init __start_xen(unsigned long mb
             safe_strcat(dom0_cmdline, " acpi=");
             safe_strcat(dom0_cmdline, acpi_param);
         }
+        safe_strcat(dom0_cmdline, " nohpet");
 
         cmdline = dom0_cmdline;
     }

[-- 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] 10+ messages in thread

end of thread, other threads:[~2009-10-16  2:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14  9:26 [PATCH] Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET Wei, Gang
2009-10-14 10:07 ` Keir Fraser
2009-10-14 19:58 ` Jeremy Fitzhardinge
2009-10-15  2:13   ` Wei, Gang
2009-10-15  3:31     ` Wei, Gang
2009-10-15 17:23     ` Jeremy Fitzhardinge
2009-10-16  1:13       ` Wei, Gang
2009-10-16  2:19         ` Wei, Gang
2009-10-16  2:31           ` Jeremy Fitzhardinge
2009-10-16  2:51             ` Wei, Gang

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.