Skip to content

Commit 3ea4539

Browse files
superm1rafaeljw
authored andcommitted
ACPI: x86: s2idle: Force AMD GUID/_REV 2 on HP Elitebook 865
HP Elitebook 865 supports both the AMD GUID w/ _REV 2 and Microsoft GUID with _REV 0. Both have very similar code but the AMD GUID has a special workaround that is specific to a problem with spurious wakeups on systems with Qualcomm WLAN. This is believed to be a bug in the Qualcomm WLAN F/W (it doesn't affect any other WLAN H/W). If this WLAN firmware is fixed this quirk can be dropped. Cc: [email protected] # 6.1 Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 057b40f commit 3ea4539

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/acpi/x86/s2idle.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@ static const struct acpi_device_id amd_hid_ids[] = {
401401
{}
402402
};
403403

404+
static int lps0_prefer_amd(const struct dmi_system_id *id)
405+
{
406+
pr_debug("Using AMD GUID w/ _REV 2.\n");
407+
rev_id = 2;
408+
return 0;
409+
}
410+
404411
static int lps0_prefer_microsoft(const struct dmi_system_id *id)
405412
{
406413
pr_debug("Preferring Microsoft GUID.\n");
@@ -462,6 +469,19 @@ static const struct dmi_system_id s2idle_dmi_table[] __initconst = {
462469
DMI_MATCH(DMI_PRODUCT_NAME, "ROG Flow X16 GV601"),
463470
},
464471
},
472+
{
473+
/*
474+
* AMD Rembrandt based HP EliteBook 835/845/865 G9
475+
* Contains specialized AML in AMD/_REV 2 path to avoid
476+
* triggering a bug in Qualcomm WLAN firmware. This may be
477+
* removed in the future if that firmware is fixed.
478+
*/
479+
.callback = lps0_prefer_amd,
480+
.matches = {
481+
DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
482+
DMI_MATCH(DMI_BOARD_NAME, "8990"),
483+
},
484+
},
465485
{}
466486
};
467487

0 commit comments

Comments
 (0)