History

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.

Mark Pearson committed 4 years ago

Commit bce62431 parent 42504af1 file · +5 −0Browse files

Unified · Split

drivers/platform/x86/thinkpad_acpi.c+5−0
@@ -10541,6 +10541,11 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm) · 10540 unmodified lines
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");