summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
diff options
context:
space:
mode:
authorYintian Tao <yttao@amd.com>2016-12-21 14:32:21 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-01-06 17:08:27 -0500
commitd6df71e125b4e4ab8932349ce81e09ef73304b91 (patch)
treebd462725dae3417c5536a30fe6eb019782252f33 /drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
parentfc8e9c54699e42754094ff475da46440778d8f19 (diff)
downloadop-kernel-dev-d6df71e125b4e4ab8932349ce81e09ef73304b91.zip
op-kernel-dev-d6df71e125b4e4ab8932349ce81e09ef73304b91.tar.gz
drm/amdgpu: remove static integer for uvd pp state
At two gpu core condition, static integer will cause that second gpu core uvd state setting will be directly skipped due to the first one setting Signed-off-by: Yintian Tao <yttao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
index a79e283..6de6bec 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
@@ -791,15 +791,10 @@ static int uvd_v5_0_set_clockgating_state(void *handle,
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
bool enable = (state == AMD_CG_STATE_GATE) ? true : false;
- static int curstate = -1;
if (!(adev->cg_flags & AMD_CG_SUPPORT_UVD_MGCG))
return 0;
- if (curstate == state)
- return 0;
-
- curstate = state;
if (enable) {
/* wait for STATUS to clear */
if (uvd_v5_0_wait_for_idle(handle))
OpenPOWER on IntegriCloud