lkml.org 
[lkml]   [2011]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/4] ACPI, APEI, Add APEI bit support in generic _OSC call
    Date
    In APEI firmware first mode, hardware error is reported by hardware to
    firmware firstly, then firmware reports the error to Linux in a GHES
    error record via POLL/SCI/IRQ/NMI etc.

    This may result in some issues if OS has no full APEI support. So
    some firmware implementation will work in a back-compatible mode by
    default. Where firmware will only notify OS in old-fashion, without
    GHES record. For example, for a fatal hardware error, only NMI is
    signaled, no GHES record.

    To gain full APEI power on these machines, APEI bit in generic _OSC
    call should be specified to tell firmware that Linux has full APEI
    support. This patch adds the APEI bit support in generic _OSC call.

    Signed-off-by: Huang Ying <ying.huang@intel.com>
    ---
    drivers/acpi/bus.c | 6 ++++++
    1 file changed, 6 insertions(+)

    --- a/drivers/acpi/bus.c
    +++ b/drivers/acpi/bus.c
    @@ -39,6 +39,7 @@
    #include <linux/pci.h>
    #include <acpi/acpi_bus.h>
    #include <acpi/acpi_drivers.h>
    +#include <acpi/apei.h>
    #include <linux/dmi.h>
    #include <linux/suspend.h>

    @@ -541,6 +542,11 @@ static void acpi_bus_osc_support(void)
    #if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
    capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT;
    #endif
    +
    +#ifdef CONFIG_ACPI_APEI_GHES
    + if (!ghes_disable)
    + capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_APEI_SUPPORT;
    +#endif
    if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
    return;
    if (ACPI_SUCCESS(acpi_run_osc(handle, &context)))

    \
     
     \ /
      Last update: 2011-06-21 09:19    [W:0.022 / U:30.484 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site