diff options
| author | Leo Liu <[email protected]> | 2018-07-09 15:59:01 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-07-10 19:18:35 +0000 |
| commit | 7b4e54a9729d0a57cf036af801aa1e78ef315982 (patch) | |
| tree | e34f8c1b417915c89f63dc13bcc3b3d353bf1b72 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
| parent | drm/ttm: Replace ttm_bo_unref() with ttm_bo_put() (diff) | |
| download | kernel-7b4e54a9729d0a57cf036af801aa1e78ef315982.tar.gz kernel-7b4e54a9729d0a57cf036af801aa1e78ef315982.zip | |
drm/amdgpu: Take VCN jpeg ring into account in idle work handler
VCN won't get power off when only jpeg active
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index a66cd521a875..4a3457236e85 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -211,6 +211,8 @@ static void amdgpu_vcn_idle_work_handler(struct work_struct *work) fences += amdgpu_fence_count_emitted(&adev->vcn.ring_enc[i]); } + fences += amdgpu_fence_count_emitted(&adev->vcn.ring_jpeg); + if (fences == 0) { if (adev->pm.dpm_enabled) amdgpu_dpm_enable_uvd(adev, false); |
