]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gfx9: allocate queues horizontally across pipes
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jun 2017 14:58:56 +0000 (10:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jun 2017 21:01:37 +0000 (17:01 -0400)
commitb3f68236dd8a5bd9dfae243854efb7b3cf1cc2fb
tree81e32718e2dd6aff3085a8b22b85dc5fd722ab94
parent22eeeb32e9e231375d01a5fc4d841543b33a25b9
drm/amdgpu/gfx9: 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.

gfx9 was missed when these patches were rebased.

Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c