Commit 343b6204 authored by Mario Limonciello's avatar Mario Limonciello Committed by Hans de Goede

platform/x86: thinkpad_acpi: Explicitly set to balanced mode on startup

It was observed that on a Thinkpad T14 Gen1 (AMD) that the platform
profile is starting up in 'low-power' mode after refreshing what the
firmware had.  This is most likely a firmware bug, but as a harmless
workaround set the default profile to 'balanced' at thinkpad_acpi startup.

Reported-by: madcatx@atlas.cz
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216347Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220819180101.6383-1-mario.limonciello@amd.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent ee653d2d
...@@ -10592,10 +10592,9 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm) ...@@ -10592,10 +10592,9 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm)
/* Ensure initial values are correct */ /* Ensure initial values are correct */
dytc_profile_refresh(); dytc_profile_refresh();
/* Set AMT correctly now we know current profile */ /* Workaround for https://bugzilla.kernel.org/show_bug.cgi?id=216347 */
if ((dytc_capabilities & BIT(DYTC_FC_PSC)) && if (dytc_capabilities & BIT(DYTC_FC_PSC))
(dytc_capabilities & BIT(DYTC_FC_AMT))) dytc_profile_set(NULL, PLATFORM_PROFILE_BALANCED);
dytc_control_amt(dytc_current_profile == PLATFORM_PROFILE_BALANCED);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment