diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c index 199bc89a4d01..a76175a9f878 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |||
@@ -320,6 +320,9 @@ static void amdgpu_vce_idle_work_handler(struct work_struct *work) | |||
320 | container_of(work, struct amdgpu_device, vce.idle_work.work); | 320 | container_of(work, struct amdgpu_device, vce.idle_work.work); |
321 | unsigned i, count = 0; | 321 | unsigned i, count = 0; |
322 | 322 | ||
323 | if (amdgpu_sriov_vf(adev)) | ||
324 | return; | ||
325 | |||
323 | for (i = 0; i < adev->vce.num_rings; i++) | 326 | for (i = 0; i < adev->vce.num_rings; i++) |
324 | count += amdgpu_fence_count_emitted(&adev->vce.ring[i]); | 327 | count += amdgpu_fence_count_emitted(&adev->vce.ring[i]); |
325 | 328 | ||
@@ -350,6 +353,9 @@ void amdgpu_vce_ring_begin_use(struct amdgpu_ring *ring) | |||
350 | struct amdgpu_device *adev = ring->adev; | 353 | struct amdgpu_device *adev = ring->adev; |
351 | bool set_clocks; | 354 | bool set_clocks; |
352 | 355 | ||
356 | if (amdgpu_sriov_vf(adev)) | ||
357 | return; | ||
358 | |||
353 | mutex_lock(&adev->vce.idle_mutex); | 359 | mutex_lock(&adev->vce.idle_mutex); |
354 | set_clocks = !cancel_delayed_work_sync(&adev->vce.idle_work); | 360 | set_clocks = !cancel_delayed_work_sync(&adev->vce.idle_work); |
355 | if (set_clocks) { | 361 | if (set_clocks) { |