projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d533c
)
drm/amd/powerplay: workaround for UVD clock issue
author
Rex Zhu
<
[email protected]
>
Tue, 28 Jun 2016 08:22:07 +0000
(16:22 +0800)
committer
Alex Deucher
<
[email protected]
>
Wed, 29 Jun 2016 16:12:26 +0000
(12:12 -0400)
workaround issue that when uvd dpm disabled,
uvd clock remain high on polaris10. Manually turn
off the clocks.
Signed-off-by: Rex Zhu <
[email protected]
>
Reviewed-by: Ken Wang <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
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 e19520c4b4b6e3cd6bd4285c008885998e87187f..d9c88d13f8db5efbc958b1571ac844bc091a76f4 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
@@
-1106,6
+1106,10
@@
static void amdgpu_uvd_idle_work_handler(struct work_struct *work)
if (fences == 0 && handles == 0) {
if (adev->pm.dpm_enabled) {
amdgpu_dpm_enable_uvd(adev, false);
+ /* just work around for uvd clock remain high even
+ * when uvd dpm disabled on Polaris10 */
+ if (adev->asic_type == CHIP_POLARIS10)
+ amdgpu_asic_set_uvd_clocks(adev, 0, 0);
} else {
amdgpu_asic_set_uvd_clocks(adev, 0, 0);
}