summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-04-12 19:25:52 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-04-14 00:26:30 -0400
commit85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321 (patch)
tree01b8d1728a83cd6ac7c0ab7c0021c5b6098dbc0e /drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
parent7403c515c49c033fec33df0814fffdc977e6acdc (diff)
downloadtalos-op-linux-85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321.tar.gz
talos-op-linux-85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321.zip
drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay work.
fix the issue that when resume back, uvd/vce dpm was disabled and uvd/vce's performace dropped. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
index 4bec0c108cea..481a64fa9b47 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
@@ -234,6 +234,7 @@ int amdgpu_vce_suspend(struct amdgpu_device *adev)
if (i == AMDGPU_MAX_VCE_HANDLES)
return 0;
+ cancel_delayed_work_sync(&adev->vce.idle_work);
/* TODO: suspending running encoding sessions isn't supported */
return -EINVAL;
}
OpenPOWER on IntegriCloud