drm/amdgpu: stop using the ring index in the SA
authorChristian König <christian.koenig@amd.com>
Fri, 11 Mar 2016 13:50:08 +0000 (14:50 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Mar 2016 17:43:27 +0000 (13:43 -0400)
commit6ba60b891cf82ae5fd2634badaa2d6752837def6
tree70ac872e5d36aa7295186529b5ed95f8d4c7d6b4
parentf4247c5046cdea4e166620f41c0bd3b475e98fff
drm/amdgpu: stop using the ring index in the SA

The ring index will always collide as hash into the fence list, so use
the context number instead. That can still cause collisions, but they
are less likely than using ring indices.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c