]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca935f93cb04f269d6fe2d2be63eba1bb3ecf2a3
treed143f7d1d1744394ebda980e045f36bdc566ad64
parentb7abda4f1006f9e2687bcfcfcc8b30fa774b86c3
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