]> 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)
commit7b18d7250e2044e597fefb7376e65722a4d4a8e5
treed143f7d1d1744394ebda980e045f36bdc566ad64
parent8ffec8a6f2d7962067878882352c48fd5b051a75
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