From: "Jan Beulich" Subject: Re: [PATCH 1/6] ACPI 5.0: Basic support for FADT version 5 Date: Thu, 21 Feb 2013 13:03:09 +0000 Message-ID: <5126291D02000078000BFEBC@nat28.tlf.novell.com> References: <512625DA02000078000BFE5D@nat28.tlf.novell.com> <5126280802000078000BFE7F@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part1929631D.0__=" Return-path: In-Reply-To: <5126280802000078000BFE7F@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part1929631D.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline >>> On 21.02.13 at 13:58, "Jan Beulich" wrote: > Signed-off-by: Bob Moore > Signed-off-by: Jan Beulich Patch now also attached, if needed by anyone. Jan --=__Part1929631D.0__= Content-Type: text/plain; name="ACPI-v5-FADT.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ACPI-v5-FADT.patch" ACPI 5.0: Basic support for FADT version 5=0A=0ASigned-off-by: Bob Moore = =0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/drivers/acpi/tables/tbfadt.c=0A+++ b/xen/drivers/acpi/table= s/tbfadt.c=0A@@ -222,12 +222,13 @@ void __init acpi_tb_create_local_fadt(st= =0A =0A /*=0A * Check if the FADT is larger than the largest = table that we expect=0A- * (the ACPI 2.0/3.0 version). If so, = truncate the table, and issue=0A+ * (the ACPI 5.0 version). If so, = truncate the table, and issue=0A * a warning.=0A */=0A if = (length > sizeof(struct acpi_table_fadt)) {=0A ACPI_WARNING((AE_IN= FO,=0A- "FADT (revision %u) is longer than ACPI 2.0 = version, truncating length 0x%X to 0x%zX",=0A+ = "FADT (revision %u) is longer than ACPI 5.0 version,"=0A+ = " truncating length %u to %zu",=0A = table->revision, (unsigned)length,=0A sizeof(struct= acpi_table_fadt)));=0A }=0A--- a/xen/include/acpi/actbl.h=0A+++ = b/xen/include/acpi/actbl.h=0A@@ -255,6 +255,8 @@ struct acpi_table_fadt = {=0A struct acpi_generic_address xpm_timer_block; /* 64-bit Extended = Power Mgt Timer Ctrl Reg Blk address */=0A struct acpi_generic_address= xgpe0_block; /* 64-bit Extended General Purpose Event 0 Reg Blk address = */=0A struct acpi_generic_address xgpe1_block; /* 64-bit Extended = General Purpose Event 1 Reg Blk address */=0A+ struct acpi_generic_address= sleep_control; /* 64-bit Sleep Control register */=0A+ struct acpi_generic= _address sleep_status; /* 64-bit Sleep Status register */=0A };=0A =0A /* = Masks for FADT Boot Architecture Flags (boot_flags) */=0A@@ -264,6 +266,7 = @@ struct acpi_table_fadt {=0A #define ACPI_FADT_NO_VGA (1<<2) = /* 02: [V4] It is not safe to probe for VGA hardware */=0A #define = ACPI_FADT_NO_MSI (1<<3) /* 03: [V4] Message Signaled = Interrupts (MSI) must not be enabled */=0A #define ACPI_FADT_NO_ASPM = (1<<4) /* 04: [V4] PCIe ASPM control must not be enabled = */=0A+#define ACPI_FADT_NO_CMOS_RTC (1<<5) /* 05: [V5] No = CMOS real-time clock present */=0A =0A #define FADT2_REVISION_ID = 3=0A =0A@@ -289,6 +292,8 @@ struct acpi_table_fadt {=0A #define = ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: [V4] System is compatible = with remote power on (ACPI 3.0) */=0A #define ACPI_FADT_APIC_CLUSTER = (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) = */=0A #define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: [V4] All = local x_aPICs must use physical dest mode (ACPI 3.0) */=0A+#define = ACPI_FADT_HW_REDUCED (1<<20) /* 20: [V5] ACPI hardware is not = implemented (ACPI 5.0) */=0A+#define ACPI_FADT_LOW_POWER_S0 (1<<21) = /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */=0A = =0A /* Values for preferred_profile (Preferred Power Management Profiles) = */=0A =0A@@ -299,14 +304,16 @@ enum acpi_prefered_pm_profiles {=0A = PM_WORKSTATION =3D 3,=0A PM_ENTERPRISE_SERVER =3D 4,=0A PM_SOHO_SER= VER =3D 5,=0A- PM_APPLIANCE_PC =3D 6=0A+ PM_APPLIANCE_PC =3D 6,=0A+ = PM_PERFORMANCE_SERVER =3D 7,=0A+ PM_TABLET =3D 8=0A };=0A =0A /* = Reset to default packing */=0A =0A #pragma pack()=0A =0A-#define ACPI_FADT_= OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_fadt, f)=0A+#defi= ne ACPI_FADT_OFFSET(f) (u16) ACPI_OFFSET (struct acpi_table_fad= t, f)=0A =0A /*=0A * Get the remaining ACPI tables=0A@@ -324,12 +331,15 = @@ enum acpi_prefered_pm_profiles {=0A * FADT is the bottom line as to = what the version really is.=0A *=0A * For reference, the values below = are as follows:=0A- * FADT V1 size: 0x74=0A- * FADT V2 size: = 0x84=0A- * FADT V3+ size: 0xF4=0A+ * FADT V1 size: 0x074=0A+ * = FADT V2 size: 0x084=0A+ * FADT V3 size: 0x0F4=0A+ * FADT V4 = size: 0x0F4=0A+ * FADT V5 size: 0x10C=0A */=0A #define ACPI_FADT_V1_S= IZE (u32) (ACPI_FADT_OFFSET (flags) + 4)=0A #define ACPI_FADT_V2_SIZE= (u32) (ACPI_FADT_OFFSET (reserved4[0]) + 3)=0A-#define ACPI_FADT_V3_= SIZE (u32) (sizeof (struct acpi_table_fadt))=0A+#define ACPI_FADT_V3_= SIZE (u32) (ACPI_FADT_OFFSET (sleep_control))=0A+#define ACPI_FADT_V5= _SIZE (u32) (sizeof (struct acpi_table_fadt))=0A =0A #endif = /* __ACTBL_H__ */=0A --=__Part1929631D.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part1929631D.0__=--