ACPI / APEI: Suppress message if HEST not present
Subsystems (3)
PATCH v3 1/1 ACPI / APEI: Suppress message if HEST not present
According to the ACPI specification, firmware is not required to provide the Hardware Error Source Table (HEST). When HEST is not present, the following superfluous message is printed to the kernel boot log -
[ 3.460067] GHES: HEST is not enabled!
Extend hest_disable variable to track whether the firmware provides this table and if it is not present skip any log output. The existing behaviour is preserved in all other cases.
---
Changes in v3:
* Grouped hest_disable status checking into a switch/case for clarity
drivers/acpi/apei/ghes.c | 7 ++++++- drivers/acpi/apei/hest.c | 13 +++++++------ include/acpi/apei.h | 8 +++++++- 3 files changed, 20 insertions(+), 8 deletions(-)
drivers/acpi/apei/ghes.c +6 -1
@@ -1265,9 +1265,14 @@ static int __init ghes_init(void)if (acpi_disabled)return -ENODEV ; -if (hest_disable) { +switch (hest_disable) { +case HEST_NOT_FOUND : +return -ENODEV ; +case HEST_DISABLED :pr_info (GHES_PFX "HEST is not enabled!\n" );return -EINVAL ; +default : +break ; }if (ghes_disable) {
drivers/acpi/apei/hest.c +7 -6
@@ -37,7 +37,7 @@#define HEST_PFX "HEST: " -bool hest_disable; +int hest_disable;EXPORT_SYMBOL_GPL (hest_disable);/* HEST table parsing */
@@ -213,7 +213,7 @@ static int __init hest_ghes_dev_register(unsigned int ghes_count)static int __init setup_hest_disable (char *str) { - hest_disable =1 ; + hest_disable =HEST_DISABLED ;return 0 ; }
@@ -232,9 +232,10 @@ void __init acpi_hest_init(void) status =acpi_get_table (ACPI_SIG_HEST ,0 , (struct acpi_table_header **)&hest_tab); -if (status ==AE_NOT_FOUND ) - goto err; -else if (ACPI_FAILURE (status)) { +if (status ==AE_NOT_FOUND ) { + hest_disable =HEST_NOT_FOUND ; +return ; + }else if (ACPI_FAILURE (status)) {const char *msg =acpi_format_exception (status);pr_err (HEST_PFX "Failed to get table, %s\n" , msg); rc = -EINVAL ;
@@ -257,5 +258,5 @@ void __init acpi_hest_init(void)pr_info (HEST_PFX "Table parsing has been initialized.\n" );return ; err: - hest_disable =1 ; + hest_disable =HEST_DISABLED ; }
include/acpi/apei.h +7 -1
@@ -16,7 +16,13 @@#ifdef __KERNEL__ -extern bool hest_disable; +enum hest_status { +HEST_ENABLED , +HEST_DISABLED , +HEST_NOT_FOUND , +}; + +extern int hest_disable;extern int erst_disable;#ifdef CONFIG_ACPI_APEI_GHES extern bool ghes_disable;
Signature · 1 line
2.13.2
Quoted 16 lines · Punit Agrawal
According to the ACPI specification, firmware is not required to provide the Hardware Error Source Table (HEST). When HEST is not present, the following superfluous message is printed to the kernel boot log -
[ 3.460067] GHES: HEST is not enabled!Extend
hest_disablevariable to track whether the firmware provides this table and if it is not present skip any log output. The existing behaviour is preserved in all other cases.Suggested-by Borislav Petkov <[email protected]>Signed-off-by Punit Agrawal <[email protected]>Cc Borislav Petkov <[email protected]>Cc James Morse <[email protected]>---
Quoted 7 lines
Changes in v3:
* Groupedhest_disablestatus checking into a switch/case for claritydrivers/acpi/apei/ghes.c | 7 ++++++- drivers/acpi/apei/hest.c | 13 +++++++------ include/acpi/apei.h | 8 +++++++- 3 files changed, 20 insertions(+), 8 deletions(-)
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- Quoted 20 lines · Borislav Petkov
Quoted 19 lines · Punit Agrawal
According to the ACPI specification, firmware is not required to provide the Hardware Error Source Table (HEST). When HEST is not present, the following superfluous message is printed to the kernel boot log -
[ 3.460067] GHES: HEST is not enabled!Extend
hest_disablevariable to track whether the firmware provides this table and if it is not present skip any log output. The existing behaviour is preserved in all other cases.Suggested-by Borislav Petkov <[email protected]>Signed-off-by Punit Agrawal <[email protected]>Cc Borislav Petkov <[email protected]>Cc James Morse <[email protected]>---
Changes in v3:
* Groupedhest_disablestatus checking into a switch/case for clarity
Quoted 6 lines
Quoted 4 lines
drivers/acpi/apei/ghes.c | 7 ++++++- drivers/acpi/apei/hest.c | 13 +++++++------ include/acpi/apei.h | 8 +++++++- 3 files changed, 20 insertions(+), 8 deletions(-)Reviewed-by Borislav Petkov <[email protected]>
Thanks!
Hopefully Rafael can pick the patch for the upcoming merge window.
Quoted 6 lines
Signature · 5 lines
-- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Quoted 27 lines · CEST Punit Agrawal
Quoted 25 lines · Borislav Petkov
Quoted 23 lines · Punit Agrawal
According to the ACPI specification, firmware is not required to provide the Hardware Error Source Table (HEST). When HEST is not present, the following superfluous message is printed to the kernel boot log -
[ 3.460067] GHES: HEST is not enabled!Extend
hest_disablevariable to track whether the firmware provides this table and if it is not present skip any log output. The existing behaviour is preserved in all other cases.Suggested-by Borislav Petkov <[email protected]>Signed-off-by Punit Agrawal <[email protected]>Cc Borislav Petkov <[email protected]>Cc James Morse <[email protected]>---
Changes in v3:
* Groupedhest_disablestatus checking into a switch/case for claritydrivers/acpi/apei/ghes.c | 7 ++++++- drivers/acpi/apei/hest.c | 13 +++++++------ include/acpi/apei.h | 8 +++++++- 3 files changed, 20 insertions(+), 8 deletions(-)
Quoted 5 lines
Quoted 1 line
Reviewed-by Borislav Petkov <[email protected]>Thanks!
Hopefully Rafael can pick the patch for the upcoming merge window.
Applied already, should show up in linux-next tomorrow.
Thanks,
Rafael
Quoted 28 lines · Rafael J. Wysocki
Quoted 27 lines · CEST Punit Agrawal
Quoted 25 lines · Borislav Petkov
Quoted 23 lines · Punit Agrawal
According to the ACPI specification, firmware is not required to provide the Hardware Error Source Table (HEST). When HEST is not present, the following superfluous message is printed to the kernel boot log -
[ 3.460067] GHES: HEST is not enabled!Extend
hest_disablevariable to track whether the firmware provides this table and if it is not present skip any log output. The existing behaviour is preserved in all other cases.Suggested-by Borislav Petkov <[email protected]>Signed-off-by Punit Agrawal <[email protected]>Cc Borislav Petkov <[email protected]>Cc James Morse <[email protected]>---
Changes in v3:
* Groupedhest_disablestatus checking into a switch/case for claritydrivers/acpi/apei/ghes.c | 7 ++++++- drivers/acpi/apei/hest.c | 13 +++++++------ include/acpi/apei.h | 8 +++++++- 3 files changed, 20 insertions(+), 8 deletions(-)
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Reviewed-by Borislav Petkov <[email protected]>Thanks!
Hopefully Rafael can pick the patch for the upcoming merge window.
Applied already, should show up in linux-next tomorrow.
Neat! Thanks for picking up the patch.
Quoted 8 lines
Thanks,
Rafael--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html