summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-07-11 11:11:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-07-14 11:06:41 -0400
commitfd971375411542f9d81111bb081e58727eb09138 (patch)
treeb81611703f00af9d12bd5ebeed9fff7c3ff7a266 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parent5cb818b861be114148e8dbeb4259698148019dd1 (diff)
downloadop-kernel-dev-fd971375411542f9d81111bb081e58727eb09138.zip
op-kernel-dev-fd971375411542f9d81111bb081e58727eb09138.tar.gz
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 <jim.qu@amd.com> Acked-by: Jim Qu <Jim.Qu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c3
1 files changed, 2 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud