diff options
author | Dave Airlie <airlied@redhat.com> | 2024-11-08 12:36:38 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2024-11-08 12:36:43 +1000 |
commit | fd836e82de0a98ea04c488953384da716b72ff7e (patch) | |
tree | 8b2524df7f4b3213e15943d9c5b9bcac8156c635 /drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | |
parent | 59b723cd2adbac2a34fc8e12c74ae26ae45bf230 (diff) | |
parent | 4d75b9468021c73108b4439794d69e892b1d24e3 (diff) | |
download | linux-fd836e82de0a98ea04c488953384da716b72ff7e.tar.gz linux-fd836e82de0a98ea04c488953384da716b72ff7e.tar.bz2 linux-fd836e82de0a98ea04c488953384da716b72ff7e.zip |
Merge tag 'amd-drm-fixes-6.12-2024-11-07' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-6.12-2024-11-07:
amdgpu:
- Brightness fix
- DC vbios parsing fix
- ACPI fix
- SMU 14.x fix
- Power workload profile fix
- GC partitioning fix
- Debugfs fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241107182722.14147-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c index 16af1a329621..12223f507977 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c @@ -2081,10 +2081,13 @@ static int navi10_set_power_profile_mode(struct smu_context *smu, long *input, u smu->power_profile_mode); if (workload_type < 0) return -EINVAL; + ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetWorkloadMask, - 1 << workload_type, NULL); + smu->workload_mask, NULL); if (ret) dev_err(smu->adev->dev, "[%s] Failed to set work load mask!", __func__); + else + smu_cmn_assign_power_profile(smu); return ret; } |