]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: amd-pstate: Allow users to write 'default' EPP string
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 12 Jun 2024 14:20:49 +0000 (09:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:07 +0000 (15:34 +0200)
commit5da2633513b532af752d72bbebd31c79d08c2eff
treef00cfe920e85bf09ace311c5586093b69f8aa796
parent25d53aad9173b48d944f9b16d3dd2dc672b8b34f
cpufreq: amd-pstate: Allow users to write 'default' EPP string

[ Upstream commit fc6e0837264a8b2504b6160e63ec92eb012540f3 ]

The EPP string for 'default' represents what the firmware had configured
as the default EPP value but once a user changes EPP to another string
they can't reset it back to 'default'.

Cache the firmware EPP value and allow the user to write 'default' using
this value.

Reported-by: Artem S. Tashkinov <aros@gmx.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217931#c61
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h