[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] hvmloader: Fix acpi static tables for new ACPI ioports location.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1289335066 0
# Node ID a15b0a2dc276ae8eb8cff4cc58d5563848a39b9b
# Parent  2bedffabbcab85feca1984e9548029921c4a08e9
hvmloader: Fix acpi static tables for new ACPI ioports location.

This change some fadt values -- the address of the acpi ioports -- and
the pm1a_evt_address value wrote for the pci bus.

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
 tools/firmware/hvmloader/acpi/static_tables.c |   16 ++++++++--------
 tools/firmware/hvmloader/hvmloader.c          |    2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff -r 2bedffabbcab -r a15b0a2dc276 
tools/firmware/hvmloader/acpi/static_tables.c
--- a/tools/firmware/hvmloader/acpi/static_tables.c     Tue Nov 09 18:15:25 
2010 +0000
+++ b/tools/firmware/hvmloader/acpi/static_tables.c     Tue Nov 09 20:37:46 
2010 +0000
@@ -56,14 +56,14 @@ struct acpi_20_fadt Fadt = {
 
     .sci_int = 9,
 
-    .pm1a_evt_blk = ACPI_PM1A_EVT_BLK_ADDRESS,
-    .pm1a_cnt_blk = ACPI_PM1A_CNT_BLK_ADDRESS,
-    .pm_tmr_blk = ACPI_PM_TMR_BLK_ADDRESS,
-    .gpe0_blk = ACPI_GPE0_BLK_ADDRESS,
+    .pm1a_evt_blk = ACPI_PM1A_EVT_BLK_ADDRESS_V1,
+    .pm1a_cnt_blk = ACPI_PM1A_CNT_BLK_ADDRESS_V1,
+    .pm_tmr_blk = ACPI_PM_TMR_BLK_ADDRESS_V1,
+    .gpe0_blk = ACPI_GPE0_BLK_ADDRESS_V1,
     .pm1_evt_len = ACPI_PM1A_EVT_BLK_BIT_WIDTH / 8,
     .pm1_cnt_len = ACPI_PM1A_CNT_BLK_BIT_WIDTH / 8,
     .pm_tmr_len = ACPI_PM_TMR_BLK_BIT_WIDTH / 8,
-    .gpe0_blk_len = ACPI_GPE0_BLK_LEN,
+    .gpe0_blk_len = ACPI_GPE0_BLK_LEN_V1,
 
     .p_lvl2_lat = 0x0fff, /* >100,  means we do not support C2 state */
     .p_lvl3_lat = 0x0fff, /* >1000, means we do not support C3 state */
@@ -85,21 +85,21 @@ struct acpi_20_fadt Fadt = {
         .address_space_id    = ACPI_SYSTEM_IO,
         .register_bit_width  = ACPI_PM1A_EVT_BLK_BIT_WIDTH,
         .register_bit_offset = ACPI_PM1A_EVT_BLK_BIT_OFFSET,
-        .address             = ACPI_PM1A_EVT_BLK_ADDRESS,
+        .address             = ACPI_PM1A_EVT_BLK_ADDRESS_V1,
     },
 
     .x_pm1a_cnt_blk = {
         .address_space_id    = ACPI_SYSTEM_IO,
         .register_bit_width  = ACPI_PM1A_CNT_BLK_BIT_WIDTH,
         .register_bit_offset = ACPI_PM1A_CNT_BLK_BIT_OFFSET,
-        .address             = ACPI_PM1A_CNT_BLK_ADDRESS,
+        .address             = ACPI_PM1A_CNT_BLK_ADDRESS_V1,
     },
 
     .x_pm_tmr_blk = {
         .address_space_id    = ACPI_SYSTEM_IO,
         .register_bit_width  = ACPI_PM_TMR_BLK_BIT_WIDTH,
         .register_bit_offset = ACPI_PM_TMR_BLK_BIT_OFFSET,
-        .address             = ACPI_PM_TMR_BLK_ADDRESS,
+        .address             = ACPI_PM_TMR_BLK_ADDRESS_V1,
     }
 };
 
diff -r 2bedffabbcab -r a15b0a2dc276 tools/firmware/hvmloader/hvmloader.c
--- a/tools/firmware/hvmloader/hvmloader.c      Tue Nov 09 18:15:25 2010 +0000
+++ b/tools/firmware/hvmloader/hvmloader.c      Tue Nov 09 20:37:46 2010 +0000
@@ -227,7 +227,7 @@ static void pci_setup(void)
             pci_writew(devfn, 0x22, 0x0000);
             pci_writew(devfn, 0x3c, 0x0009); /* Hardcoded IRQ9 */
             pci_writew(devfn, 0x3d, 0x0001);
-            pci_writel(devfn, 0x40, ACPI_PM1A_EVT_BLK_ADDRESS | 1);
+            pci_writel(devfn, 0x40, ACPI_PM1A_EVT_BLK_ADDRESS_V1 | 1);
             pci_writeb(devfn, 0x80, 0x01); /* enable PM io space */
             break;
         case 0x0101:

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.