]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Fix amd_pstate mode switch on shared memory systems
authorDhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Fri, 4 Oct 2024 12:23:04 +0000 (12:23 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 7 Oct 2024 16:32:05 +0000 (11:32 -0500)
commitc10e50a469b5ec91eabf653526a22bdce03a9bca
tree1eafc445a5f4f1d32a6f9083a98ac8ed4d92bd76
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
cpufreq/amd-pstate: Fix amd_pstate mode switch on shared memory systems

While switching the driver mode between active and passive, Collaborative
Processor Performance Control (CPPC) is disabled in
amd_pstate_unregister_driver(). But, it is not enabled back while registering
the new driver (passive or active). This leads to the new driver mode not
working correctly, so enable it back in amd_pstate_register_driver().

Fixes: 3ca7bc818d8c ("cpufreq: amd-pstate: Add guided mode control support via sysfs")
Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241004122303.94283-1-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c