aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-06-07 11:31:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2014-06-09 22:06:56 -0400
commit0690a229c69f40a6c9c459ab455c85df49822525 (patch)
tree1f8beba35c15a4cafbf87ca8580848b5fe7d0731
parent65fcf668ee7f2de2fbd580e1297336045f1ef6f4 (diff)
Revert "drm/radeon: use variable UVD clocks"
This caused reduced performance for some users with advanced post processing enabled. We need a better method to pick the UVD state based on the amount of post processing required or tune the advanced post processing to fit within the lower power state envelope. This reverts commit 14a9579ddbf15dd1992a9481a4ec80b0b91656d5. Cc: "3.15" <stable@vger.kernel.org>
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c3
-rw-r--r--drivers/gpu/drm/radeon/radeon_uvd.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index 2bdae61c0ac0..12c663e86ca1 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -984,6 +984,8 @@ void radeon_dpm_enable_uvd(struct radeon_device *rdev, bool enable)
984 if (enable) { 984 if (enable) {
985 mutex_lock(&rdev->pm.mutex); 985 mutex_lock(&rdev->pm.mutex);
986 rdev->pm.dpm.uvd_active = true; 986 rdev->pm.dpm.uvd_active = true;
987 /* disable this for now */
988#if 0
987 if ((rdev->pm.dpm.sd == 1) && (rdev->pm.dpm.hd == 0)) 989 if ((rdev->pm.dpm.sd == 1) && (rdev->pm.dpm.hd == 0))
988 dpm_state = POWER_STATE_TYPE_INTERNAL_UVD_SD; 990 dpm_state = POWER_STATE_TYPE_INTERNAL_UVD_SD;
989 else if ((rdev->pm.dpm.sd == 2) && (rdev->pm.dpm.hd == 0)) 991 else if ((rdev->pm.dpm.sd == 2) && (rdev->pm.dpm.hd == 0))
@@ -993,6 +995,7 @@ void radeon_dpm_enable_uvd(struct radeon_device *rdev, bool enable)
993 else if ((rdev->pm.dpm.sd == 0) && (rdev->pm.dpm.hd == 2)) 995 else if ((rdev->pm.dpm.sd == 0) && (rdev->pm.dpm.hd == 2))
994 dpm_state = POWER_STATE_TYPE_INTERNAL_UVD_HD2; 996 dpm_state = POWER_STATE_TYPE_INTERNAL_UVD_HD2;
995 else 997 else
998#endif
996 dpm_state = POWER_STATE_TYPE_INTERNAL_UVD; 999 dpm_state = POWER_STATE_TYPE_INTERNAL_UVD;
997 rdev->pm.dpm.state = dpm_state; 1000 rdev->pm.dpm.state = dpm_state;
998 mutex_unlock(&rdev->pm.mutex); 1001 mutex_unlock(&rdev->pm.mutex);
diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c
index 1b65ae2433cd..a4ad270e8261 100644
--- a/drivers/gpu/drm/radeon/radeon_uvd.c
+++ b/drivers/gpu/drm/radeon/radeon_uvd.c
@@ -812,7 +812,8 @@ void radeon_uvd_note_usage(struct radeon_device *rdev)
812 (rdev->pm.dpm.hd != hd)) { 812 (rdev->pm.dpm.hd != hd)) {
813 rdev->pm.dpm.sd = sd; 813 rdev->pm.dpm.sd = sd;
814 rdev->pm.dpm.hd = hd; 814 rdev->pm.dpm.hd = hd;
815 streams_changed = true; 815 /* disable this for now */
816 /*streams_changed = true;*/
816 } 817 }
817 } 818 }
818 819