Skip to content

Commit

Permalink
drm/amd/pm: fix workload mismatch on vega10
Browse files Browse the repository at this point in the history
Workload number mapped to the correct one.
This issue is only on vega10.

Signed-off-by: Kenneth Feng <[email protected]>
Reviewed-by: Kevin Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
Kenneth Feng authored and alexdeucher committed Mar 24, 2021
1 parent ec1e80f commit 0979d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
1 << power_profile_mode,
(!power_profile_mode) ? 0 : 1 << (power_profile_mode - 1),
NULL);
hwmgr->power_profile_mode = power_profile_mode;

Expand Down

0 comments on commit 0979d43

Please sign in to comment.