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)
commit1361f45531e7bd820182c70306f79234088d2a5b
tree81e32718e2dd6aff3085a8b22b85dc5fd722ab94
parentb1e8b9c5b19c58e3159c2acc77167f4a4c74621f
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