diff options
| author | Rex Zhu <[email protected]> | 2016-04-12 11:25:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-04-14 04:26:30 +0000 |
| commit | 85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321 (patch) | |
| tree | 01b8d1728a83cd6ac7c0ab7c0021c5b6098dbc0e /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
| parent | drm/radeon: fix initial connector audio value (diff) | |
| download | kernel-85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321.tar.gz kernel-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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 338da80006b6..8d035b65d967 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -255,6 +255,8 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev) if (i == AMDGPU_MAX_UVD_HANDLES) return 0; + cancel_delayed_work_sync(&adev->uvd.idle_work); + size = amdgpu_bo_size(adev->uvd.vcpu_bo); ptr = adev->uvd.cpu_addr; |
