WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Add the USE_PLATFORM_TIMER flag to the FA

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 04 Jun 2010 03:45:20 -0700
Delivery-date: Fri, 04 Jun 2010 03:46:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1275642383 -3600
# Node ID 06421268d2458eb9a69798acc8b14fdac425240b
# Parent  1b6c9732436ba0e688a20609bb908f61d463d0ec
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@xxxxxxxxxx>
---
 tools/firmware/hvmloader/acpi/acpi2_0.h       |    1 +
 tools/firmware/hvmloader/acpi/static_tables.c |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -r 1b6c9732436b -r 06421268d245 tools/firmware/hvmloader/acpi/acpi2_0.h
--- a/tools/firmware/hvmloader/acpi/acpi2_0.h   Fri Jun 04 10:05:42 2010 +0100
+++ b/tools/firmware/hvmloader/acpi/acpi2_0.h   Fri Jun 04 10:06:23 2010 +0100
@@ -255,6 +255,7 @@ struct acpi_20_fadt {
 #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 1b6c9732436b -r 06421268d245 
tools/firmware/hvmloader/acpi/static_tables.c
--- a/tools/firmware/hvmloader/acpi/static_tables.c     Fri Jun 04 10:05:42 
2010 +0100
+++ b/tools/firmware/hvmloader/acpi/static_tables.c     Fri Jun 04 10:06:23 
2010 +0100
@@ -70,7 +70,8 @@ struct acpi_20_fadt Fadt = {
     .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,

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Add the USE_PLATFORM_TIMER flag to the FADT, to make w2k3 use the PMTIMER, Xen patchbot-unstable <=