xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER
@ 2010-06-02 10:19 Tim Deegan
  2010-06-02 17:46 ` Dan Magenheimer
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Deegan @ 2010-06-02 10:19 UTC (permalink / raw)
  To: xen-devel

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

because the default timesource (TSC) drifts under load.

The flag is only defined in ACPI 3.0, and we provide ACPI 2.0 tables,
but Windows seems happy enough to obey it anyway.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>



[-- Attachment #2: xen-unstable.hg.patch --]
[-- Type: text/x-patch, Size: 1522 bytes --]

# HG changeset patch
# User Tim Deegan <Tim.Deegan@citrix.com>
# Date 1275473757 -3600
# Node ID 39014be2745a52964fe7cdbb9bdc29e48b1b1fbc
# Parent  f86930e17ed9caf478b1498c855c82caaeaf23ff
Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER
because the default timesource (TSC) drifts under load.

The flag is only defined in ACPI 3.0, and we provide ACPI 2.0 tables,
but Windows seems happy enough to obey it anyway.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>

diff -r f86930e17ed9 -r 39014be2745a tools/firmware/hvmloader/acpi/acpi2_0.h
--- a/tools/firmware/hvmloader/acpi/acpi2_0.h	Wed Jun 02 11:15:52 2010 +0100
+++ b/tools/firmware/hvmloader/acpi/acpi2_0.h	Wed Jun 02 11:15:57 2010 +0100
@@ -255,6 +255,7 @@
 #define ACPI_SEALED_CASE    (1 << 11)
 #define ACPI_HEADLESS       (1 << 12)
 #define ACPI_CPU_SW_SLP     (1 << 13)
+#define ACPI_USE_PLATFORM_CLOCK (1 << 15)
 
 /*
  * Firmware ACPI Control Structure (FACS).
diff -r f86930e17ed9 -r 39014be2745a tools/firmware/hvmloader/acpi/static_tables.c
--- a/tools/firmware/hvmloader/acpi/static_tables.c	Wed Jun 02 11:15:52 2010 +0100
+++ b/tools/firmware/hvmloader/acpi/static_tables.c	Wed Jun 02 11:15:57 2010 +0100
@@ -70,7 +70,8 @@
     .iapc_boot_arch = ACPI_8042,
     .flags = (ACPI_PROC_C1 |
               ACPI_WBINVD |
-              ACPI_FIX_RTC | ACPI_TMR_VAL_EXT),
+              ACPI_FIX_RTC | ACPI_TMR_VAL_EXT |
+              ACPI_USE_PLATFORM_CLOCK),
 
     .reset_reg = {
         .address_space_id    = ACPI_SYSTEM_IO,

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

end of thread, other threads:[~2010-06-04  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02 10:19 [PATCH] Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER Tim Deegan
2010-06-02 17:46 ` Dan Magenheimer
2010-06-03  8:58   ` Tim Deegan
2010-06-03 16:41     ` Dan Magenheimer
2010-06-04  8:59       ` Tim Deegan

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).