Skip to contentSkip to conversation

ACPI/APEI: accept validly sized ERST on Intel systems only for now

PATCH In review Jan Beulich 3 participants 3 messages Oct 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI/APEI: accept validly sized ERST on Intel systems only for now

Various AMD systems (but [unfortunately] not mine) hang when the table size check passes. Allow the check to pass on Intel systems only for now (until someone can actually debug the problem).

xen/drivers/acpi/apei/erst.c +13 -0
@@ -769,6 +769,19 @@ static int __init erst_check_table(struc
 
 	switch (erst_tab->header_length) {
 	case sizeof(*erst_tab) - sizeof(erst_tab->header):
+#ifdef CONFIG_X86
+		/* XXX
+		 * While the rest of the ERST code appears to work on Intel
+		 * systems with properly sized tables, various AMD systems
+		 * appear to get hung (at boot time) by allowing this. Until
+		 * someone with access to suitable hardware can debug this,
+		 * disable the rest of the code by considering this case
+		 * invalid.
+		 */
+		if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
+			return -EINVAL;
+		/* fall through */
+#endif
 	/*
 	 * While invalid per specification, there are (early?) systems
 	 * indicating the full header size here, so accept that value too.

ACPI/APEI: accept validly sized ERST on Intel systems only for now

Various AMD systems (but [unfortunately] not mine) hang when the table size check passes. Allow the check to pass on Intel systems only for now (until someone can actually debug the problem).

xen/drivers/acpi/apei/erst.c +13 -0
@@ -769,6 +769,19 @@ static int __init erst_check_table(struc
 
 	switch (erst_tab->header_length) {
 	case sizeof(*erst_tab) - sizeof(erst_tab->header):
+#ifdef CONFIG_X86
+		/* XXX
+		 * While the rest of the ERST code appears to work on Intel
+		 * systems with properly sized tables, various AMD systems
+		 * appear to get hung (at boot time) by allowing this. Until
+		 * someone with access to suitable hardware can debug this,
+		 * disable the rest of the code by considering this case
+		 * invalid.
+		 */
+		if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
+			return -EINVAL;
+		/* fall through */
+#endif
 	/*
 	 * While invalid per specification, there are (early?) systems
 	 * indicating the full header size here, so accept that value too.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

Various AMD systems (but [unfortunately] not mine) hang when the table size check passes. Allow the check to pass on Intel systems only for now (until someone can actually debug the problem).

Quoted 29 lines
xen/drivers/acpi/apei/erst.c +0 -0
@@ -769,6 +769,19 @@ static int __init erst_check_table(struc
 
 switch (erst_tab->header_length) {

case sizeof(*erst_tab) - sizeof(erst_tab->header):

xen/drivers/acpi/apei/erst.c +13 -0
+#ifdef CONFIG_X86
+  /* XXX
+   * While the rest of the ERST code appears to work on Intel
+   * systems with properly sized tables, various AMD systems
+   * appear to get hung (at boot time) by allowing this. Until
+   * someone with access to suitable hardware can debug this,
+   * disable the rest of the code by considering this case
+   * invalid.
+   */
+  if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
+   return -EINVAL;
+  /* fall through */
+#endif

/*
* While invalid per specification, there are (early?) systems
* indicating the full header size here, so accept that value too.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

Fine to Intel. Both old and new Intel platform work.

Thanks,
Jinsong

Quoted 37 lines · Keir Fraser
Quoted 5 lines · Jan Beulich

Various AMD systems (but [unfortunately] not mine) hang when the table size check passes. Allow the check to pass on Intel systems only for now (until someone can actually debug the problem).

Quoted 27 lines
xen/drivers/acpi/apei/erst.c +0 -0
@@ -769,6 +769,19 @@ static int __init erst_check_table(struc
 
 switch (erst_tab->header_length) {

case sizeof(*erst_tab) - sizeof(erst_tab->header):

xen/drivers/acpi/apei/erst.c +7 -0
+#ifdef CONFIG_X86
+  /* XXX
+   * While the rest of the ERST code appears to work on Intel
+   * systems with properly sized tables, various AMD systems
+   * appear to get hung (at boot time) by allowing this. Until
+   * someone with access to suitable hardware can debug this,
+   * disable the rest of the code by considering this case +   *

invalid. + */

xen/drivers/acpi/apei/erst.c +2 -1
+  if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) +   return
-EINVAL; +  /* fall through */
+#endif

/*
* While invalid per specification, there are (early?) systems
* indicating the full header size here, so accept that value too.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel