diff options
Diffstat (limited to 'drivers/acpi/apei/ghes.c')
-rw-r--r-- | drivers/acpi/apei/ghes.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index b142b94bf8b2..b1390a61cde1 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c | |||
@@ -681,6 +681,16 @@ static int __init ghes_init(void) | |||
681 | if (rc) | 681 | if (rc) |
682 | goto err_ioremap_exit; | 682 | goto err_ioremap_exit; |
683 | 683 | ||
684 | rc = apei_osc_setup(); | ||
685 | if (rc == 0 && osc_sb_apei_support_acked) | ||
686 | pr_info(GHES_PFX "APEI firmware first mode is enabled by APEI bit and WHEA _OSC.\n"); | ||
687 | else if (rc == 0 && !osc_sb_apei_support_acked) | ||
688 | pr_info(GHES_PFX "APEI firmware first mode is enabled by WHEA _OSC.\n"); | ||
689 | else if (rc && osc_sb_apei_support_acked) | ||
690 | pr_info(GHES_PFX "APEI firmware first mode is enabled by APEI bit.\n"); | ||
691 | else | ||
692 | pr_info(GHES_PFX "Failed to enable APEI firmware first mode.\n"); | ||
693 | |||
684 | return 0; | 694 | return 0; |
685 | err_ioremap_exit: | 695 | err_ioremap_exit: |
686 | ghes_ioremap_exit(); | 696 | ghes_ioremap_exit(); |