Skip to contentSkip to conversation

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

PATCH In review Jan Beulich 3 participants 7 messages Mar 26, 2013 – Mar 27, 2013

lore
Share & tools
lore
#0 lore raw

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

With the recent two fixes to ERST handling, this should no longer be necessary.

xen/drivers/acpi/apei/erst.c +0 -13
@@ -738,19 +738,6 @@ 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: revert "accept validly sized ERST on Intel systems only for now"

With the recent two fixes to ERST handling, this should no longer be necessary.

xen/drivers/acpi/apei/erst.c +0 -13
@@ -738,19 +738,6 @@ 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

Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jan Beulich

With the recent two fixes to ERST handling, this should no longer be necessary.

There are still no failures from our regression testing, so a tentative

Quoted 26 lines
xen/drivers/acpi/apei/erst.c +0 -13
@@ -738,19 +738,6 @@ 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.
#3 lore raw
In reply to Jan Beulich

Jan Beulich writes ("[PATCH] ACPI/APEI: revert "accept validly sized ERST on Intel systems only for now""):

Quoted 2 lines

With the recent two fixes to ERST handling, this should no longer be necessary.

...

Which recent two fixes, JOOI ? I did a recent test of reverting this and found I still had some problems but it
that was based on 37d930430c2f2ef4dedf27deb404d2fe2602c039.

Thanks,
Ian.

#4 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line · Ian Jackson

Jan Beulich writes ("[PATCH] ACPI/APEI: revert "accept validly sized ERST on Intel systems only for now""):

Quoted 2 lines

With the recent two fixes to ERST handling, this should no longer be necessary.

...

Which recent two fixes, JOOI ? I did a recent test of reverting this and found I still had some problems but it
that was based on 37d930430c2f2ef4dedf27deb404d2fe2602c039.

0611689 and 72af01b, both of which came after said commit.

Jan

#5 lore raw
In reply to Ian Jackson
Quoted 10 lines
Quoted 1 line
Quoted 1 line · Ian Jackson

Jan Beulich writes ("[PATCH] ACPI/APEI: revert "accept validly sized ERST on Intel systems only for now""):

Quoted 2 lines

With the recent two fixes to ERST handling, this should no longer be necessary.

...

Which recent two fixes, JOOI ? I did a recent test of reverting this and found I still had some problems but it
that was based on 37d930430c2f2ef4dedf27deb404d2fe2602c039.

Btw., do you prefer to retest the revert on top of these before I commit it, or would you agree that Andrew's testing warrants committing this and then wait for the results of a regular testing round?

Jan

#6 lore raw

Jan Beulich writes ("Re: [PATCH] ACPI/APEI: revert "accept validly sized ERST on Intel systems only for now""):

Quoted 4 lines

Btw., do you prefer to retest the revert on top of these before I commit it, or would you agree that Andrew's testing warrants committing this and then wait for the results of a regular testing round?

Please go ahead and commit the revert. If it breaks we can revert the reversions of the revert :-).

Ian.