drm/amdgpu: allocate queues horizontally across pipes
authorAndres Rodriguez <andresx7@gmail.com>
Fri, 3 Feb 2017 22:31:38 +0000 (17:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 May 2017 20:48:56 +0000 (16:48 -0400)
commite33fec4835b9d2b1f8f8b1eb7c3415ab75a0faf5
treed143f7d1d1744394ebda980e045f36bdc566ad64
parent5e7095625d3ffd74165e5a6f46e894395caeabe8
drm/amdgpu: allocate queues horizontally across pipes

Pipes provide better concurrency than queues, therefore we want to make
sure that apps use queues from different pipes whenever possible.

Optimize for the trivial case where an app will consume rings in order,
therefore we don't want adjacent rings to belong to the same pipe.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c