projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8daf94e
)
drm/amdgpu: restore uvd fence seq in uvd resume
author
Jim Qu
<Jim.Qu@amd.com>
Mon, 18 Dec 2017 02:08:38 +0000
(10:08 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 18 Dec 2017 16:52:39 +0000
(11:52 -0500)
otherwise, uvd block will be never powered up in ring begin_use()
callback. uvd ring test will be fail in resume in rumtime pm.
Signed-off-by: Jim Qu <Jim.Qu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
index
2b47c0d
..
b2eae86
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
@@
-346,6
+346,8
@@
int amdgpu_uvd_resume(struct amdgpu_device *adev)
ptr += le32_to_cpu(hdr->ucode_size_bytes);
}
memset_io(ptr, 0, size);
+ /* to restore uvd fence seq */
+ amdgpu_fence_driver_force_completion(&adev->uvd.ring);
}
return 0;