]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Revert "drm/amd/pm: fix workload mismatch on vega10"
authorKenneth Feng <kenneth.feng@amd.com>
Fri, 13 Aug 2021 06:20:33 +0000 (14:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:23:02 +0000 (10:23 +0200)
[ Upstream commit 2fd31689f9e44af949f60ff4f8aca013e628ab81 ]

This reverts commit 0979d43259e13846d86ba17e451e17fec185d240.
Revert this because it does not apply to all the cards.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c

index 31c61ac3bd5e1eaaf5ea0b94059c134f96c012a0..f5a32654cde754164a1cd04096ca204deaa64105 100644 (file)
@@ -5160,7 +5160,7 @@ static int vega10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, ui
 
 out:
        smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_SetWorkloadMask,
-                                               (!power_profile_mode) ? 0 : 1 << (power_profile_mode - 1),
+                                               1 << power_profile_mode,
                                                NULL);
        hwmgr->power_profile_mode = power_profile_mode;