Commit 4135f10e authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amd/powerplay: remove uvd_gated/vce_gated from smu_power_context (v2)

It's not needed for navi.

v2: remove unused variable (Alex)
Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6ff68731
...@@ -477,21 +477,15 @@ static int navi10_set_default_dpm_table(struct smu_context *smu) ...@@ -477,21 +477,15 @@ static int navi10_set_default_dpm_table(struct smu_context *smu)
static int navi10_dpm_set_uvd_enable(struct smu_context *smu, bool enable) static int navi10_dpm_set_uvd_enable(struct smu_context *smu, bool enable)
{ {
int ret = 0; int ret = 0;
struct smu_power_context *smu_power = &smu->smu_power;
struct smu_power_gate *power_gate = &smu_power->power_gate;
if (enable && power_gate->uvd_gated) { if (enable) {
ret = smu_send_smc_msg_with_param(smu, SMU_MSG_PowerUpVcn, 1); ret = smu_send_smc_msg_with_param(smu, SMU_MSG_PowerUpVcn, 1);
if (ret) if (ret)
return ret; return ret;
power_gate->uvd_gated = false;
} else { } else {
if (!enable && !power_gate->uvd_gated) { ret = smu_send_smc_msg(smu, SMU_MSG_PowerDownVcn);
ret = smu_send_smc_msg(smu, SMU_MSG_PowerDownVcn); if (ret)
if (ret) return ret;
return ret;
power_gate->uvd_gated = true;
}
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment