Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit bce6243

Browse files
mrhpearsonjwrdegoede
authored andcommitted
platform/x86: thinkpad_acpi: do not use PSC mode on Intel platforms
PSC platform profile mode is only supported on Linux for AMD platforms. Some older Intel platforms (e.g T490) are advertising it's capability as Windows uses it - but on Linux we should only be using MMC profile for Intel systems. Add a check to prevent it being enabled incorrectly. Signed-off-by: Mark Pearson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 42504af commit bce6243

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/platform/x86/thinkpad_acpi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10541,6 +10541,11 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm)
1054110541
dytc_mmc_get_available = true;
1054210542
}
1054310543
} else if (dytc_capabilities & BIT(DYTC_FC_PSC)) { /* PSC MODE */
10544+
/* Support for this only works on AMD platforms */
10545+
if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) {
10546+
dbg_printk(TPACPI_DBG_INIT, "PSC not support on Intel platforms\n");
10547+
return -ENODEV;
10548+
}
1054410549
pr_debug("PSC is supported\n");
1054510550
} else {
1054610551
dbg_printk(TPACPI_DBG_INIT, "No DYTC support available\n");

0 commit comments

Comments
 (0)