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
10541 dytc_mmc_get_available = true;10541 dytc_mmc_get_available = true;
10542 }10542 }
10543 } else if (dytc_capabilities & BIT(DYTC_FC_PSC)) { /* PSC MODE */10543 } 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 }
10544 pr_debug("PSC is supported\n");10549 pr_debug("PSC is supported\n");
10545 } else {10550 } else {
10546 dbg_printk(TPACPI_DBG_INIT, "No DYTC support available\n");10551 dbg_printk(TPACPI_DBG_INIT, "No DYTC support available\n");