Skip to content
  • Rafael J. Wysocki's avatar
    ACPI: Execute _PRW for devices reported as inactive or not present · b581a7f9
    Rafael J. Wysocki authored
    
    
    If a device is reported as inactive or not present by its _STA
    control method, acpi_bus_check_add() skips it without evaluating its
    _PRW method.  This leads to a problem when the device's _PRW method
    points to a GPE, because in that case the GPE may be enabled by
    ACPICA during the subsequent acpi_update_gpes() call which, in
    turn, may cause a GPE storm to appear.
    
    To avoid this issue, make acpi_bus_check_add() evaluate _PRW for
    inactive or not present devices and register the wakeup GPE
    information returned by them, so that acpi_update_gpes() does not
    enable their GPEs unnecessarily.
    
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Reported-by: default avatarMatthew Garrett <mjg@redhat.com>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    b581a7f9