Revert "drm/amd/pm: correct the workload setting"
[linux.git] / drivers / gpu / drm / amd / pm / swsmu / smu11 / arcturus_ppt.c
index 31fe512028f460421e1425620a63a8b0bd650149..c0f6b59369b7c4e3a93f4fe719bdace5f5f837bf 100644 (file)
@@ -1455,6 +1455,7 @@ static int arcturus_set_power_profile_mode(struct smu_context *smu,
                return -EINVAL;
        }
 
+
        if ((profile_mode == PP_SMC_POWER_PROFILE_CUSTOM) &&
             (smu->smc_fw_version >= 0x360d00)) {
                if (size != 10)
@@ -1522,14 +1523,14 @@ static int arcturus_set_power_profile_mode(struct smu_context *smu,
 
        ret = smu_cmn_send_smc_msg_with_param(smu,
                                          SMU_MSG_SetWorkloadMask,
-                                         smu->workload_mask,
+                                         1 << workload_type,
                                          NULL);
        if (ret) {
                dev_err(smu->adev->dev, "Fail to set workload type %d\n", workload_type);
                return ret;
        }
 
-       smu_cmn_assign_power_profile(smu);
+       smu->power_profile_mode = profile_mode;
 
        return 0;
 }
This page took 0.031025 seconds and 4 git commands to generate.