From: Alex Deucher Date: Tue, 11 Jul 2017 15:11:41 +0000 (-0400) Subject: drm/amdgpu/gfx: keep all compute queues on the same pipe X-Git-Tag: v4.14-rc1~8^2~44^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd971375411542f9d81111bb081e58727eb09138;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu/gfx: keep all compute queues on the same pipe Spreading them causes performance regressions using compute queues on Polaris 11. Cc: Jim Qu Acked-by: Jim Qu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index e26108a..4f6c68f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c @@ -125,7 +125,8 @@ void amdgpu_gfx_compute_queue_acquire(struct amdgpu_device *adev) if (mec >= adev->gfx.mec.num_mec) break; - if (adev->gfx.mec.num_mec > 1) { + /* FIXME: spreading the queues across pipes causes perf regressions */ + if (0) { /* policy: amdgpu owns the first two queues of the first MEC */ if (mec == 0 && queue < 2) set_bit(i, adev->gfx.mec.queue_bitmap);