mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
drm/radeon: don't power gate paused UVD streams
Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7f4237c6da
commit
8158eb9e32
2 changed files with 6 additions and 0 deletions
|
@ -924,6 +924,10 @@ void radeon_dpm_enable_uvd(struct radeon_device *rdev, bool enable)
|
|||
|
||||
if (rdev->asic->dpm.powergate_uvd) {
|
||||
mutex_lock(&rdev->pm.mutex);
|
||||
/* don't powergate anything if we
|
||||
have active but pause streams */
|
||||
enable |= rdev->pm.dpm.sd > 0;
|
||||
enable |= rdev->pm.dpm.hd > 0;
|
||||
/* enable/disable UVD */
|
||||
radeon_dpm_powergate_uvd(rdev, !enable);
|
||||
mutex_unlock(&rdev->pm.mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue