9fbab19
	commit 64b3db22c04586997ab4be46dd5a5b99f8a2d390 (2.6.39),
9fbab19
"Remove use of unreliable FADT revision field" causes regression
9fbab19
for old P4 systems because now cst_control and other fields are
9fbab19
not reset to 0.
9fbab19
9fbab19
	The effect is that acpi_processor_power_init will notice
9fbab19
cst_control != 0 and a write to CST_CNT register is performed
9fbab19
that should not happen. As result, the system oopses after the
9fbab19
"No _CST, giving up" message, sometimes in acpi_ns_internalize_name,
9fbab19
sometimes in acpi_ns_get_type, usually at random places. May be
9fbab19
during migration to CPU 1 in acpi_processor_get_throttling.
9fbab19
9fbab19
	Every one of these settings help to avoid this problem:
9fbab19
 - acpi=off
9fbab19
 - processor.nocst=1
9fbab19
 - maxcpus=1
9fbab19
9fbab19
	The fix is to update acpi_gbl_FADT.header.length after
9fbab19
the original value is used to check for old revisions.
9fbab19
9fbab19
Signed-off-by: Julian Anastasov <ja@ssi.bg>
9fbab19
---
9fbab19
 drivers/acpi/acpica/tbfadt.c |    8 ++++----
9fbab19
 1 files changed, 4 insertions(+), 4 deletions(-)
9fbab19
9fbab19
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c
9fbab19
index c5d8704..4c9c760 100644
9fbab19
--- a/drivers/acpi/acpica/tbfadt.c
9fbab19
+++ b/drivers/acpi/acpica/tbfadt.c
9fbab19
@@ -363,10 +363,6 @@ static void acpi_tb_convert_fadt(void)
9fbab19
 	u32 address32;
9fbab19
 	u32 i;
9fbab19
 
9fbab19
-	/* Update the local FADT table header length */
9fbab19
-
9fbab19
-	acpi_gbl_FADT.header.length = sizeof(struct acpi_table_fadt);
9fbab19
-
9fbab19
 	/*
9fbab19
 	 * Expand the 32-bit FACS and DSDT addresses to 64-bit as necessary.
9fbab19
 	 * Later code will always use the X 64-bit field. Also, check for an
9fbab19
@@ -408,6 +404,10 @@ static void acpi_tb_convert_fadt(void)
9fbab19
 		acpi_gbl_FADT.boot_flags = 0;
9fbab19
 	}
9fbab19
 
9fbab19
+	/* Update the local FADT table header length */
9fbab19
+
9fbab19
+	acpi_gbl_FADT.header.length = sizeof(struct acpi_table_fadt);
9fbab19
+
9fbab19
 	/*
9fbab19
 	 * Expand the ACPI 1.0 32-bit addresses to the ACPI 2.0 64-bit "X"
9fbab19
 	 * generic address structures as necessary. Later code will always use
9fbab19
-- 
9fbab19
1.7.3.4
9fbab19
9fbab19
--
9fbab19
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
9fbab19
the body of a message to majordomo@vger.kernel.org
9fbab19
More majordomo info at  http://vger.kernel.org/majordomo-info.html