drm/amdgpu: map compute rings by least recently used pipe
authorAndres Rodriguez <andresx7@gmail.com>
Tue, 26 Sep 2017 21:43:14 +0000 (17:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2017 20:03:22 +0000 (16:03 -0400)
commit35161bbc135a748dd0a3c822030b3341cdefbd33
tree5b732d2d0b22b194c1a3436b6bef8355ad6cd265
parent4a75aefe3feb99ff87c1ea594b4db377b98f50e8
drm/amdgpu: map compute rings by least recently used pipe

This patch provides a guarantee that the first n queues allocated by
an application will be on different pipes. Where n is the number of
pipes available from the hardware.

This helps avoid ring aliasing which can result in work executing in
time-sliced mode instead of truly parallel mode.

Reviewed-by: Alex Deucher <alexander.deucher@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_queue_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h