aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2019-04-22 21:06:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 18:59:27 -0500
commit4135f10e26eaeb75a30ccfa6359d81004e1adc82 (patch)
treeb48c29560e85c3030d1985695d99af93f1144467
parentdrm/amdgpu/nv: set vcn pg flag (diff)
downloadwireguard-linux-4135f10e26eaeb75a30ccfa6359d81004e1adc82.tar.xz
wireguard-linux-4135f10e26eaeb75a30ccfa6359d81004e1adc82.zip
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: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/navi10_ppt.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
index da64b8889264..5a683a05df48 100644
--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
@@ -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)
{
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);
if (ret)
return ret;
- power_gate->uvd_gated = false;
} else {
- if (!enable && !power_gate->uvd_gated) {
- ret = smu_send_smc_msg(smu, SMU_MSG_PowerDownVcn);
- if (ret)
- return ret;
- power_gate->uvd_gated = true;
- }
+ ret = smu_send_smc_msg(smu, SMU_MSG_PowerDownVcn);
+ if (ret)
+ return ret;
}
return 0;