aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index ad2e0bba5c93..1370b3980791 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -1464,9 +1464,15 @@ static void gfx_v8_0_compute_queue_acquire(struct amdgpu_device *adev)
1464 if (mec >= adev->gfx.mec.num_mec) 1464 if (mec >= adev->gfx.mec.num_mec)
1465 break; 1465 break;
1466 1466
1467 /* policy: amdgpu owns the first two queues of the first MEC */ 1467 if (adev->gfx.mec.num_mec > 1) {
1468 if (mec == 0 && queue < 2) 1468 /* policy: amdgpu owns the first two queues of the first MEC */
1469 set_bit(i, adev->gfx.mec.queue_bitmap); 1469 if (mec == 0 && queue < 2)
1470 set_bit(i, adev->gfx.mec.queue_bitmap);
1471 } else {
1472 /* policy: amdgpu owns all queues in the first pipe */
1473 if (mec == 0 && pipe == 0)
1474 set_bit(i, adev->gfx.mec.queue_bitmap);
1475 }
1470 } 1476 }
1471 1477
1472 /* update the number of active compute rings */ 1478 /* update the number of active compute rings */