]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:fix race condition
authorMonk Liu <Monk.Liu@amd.com>
Fri, 7 Apr 2017 10:39:07 +0000 (18:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 20:38:00 +0000 (16:38 -0400)
commitc76796b09761f8cb2748f333fef065752e9f15ce
tree60d4a49eeb0baf5e3a3181cec53d5c4033af4c97
parente5619248d72e545ea0eb88e917a2e9a75c030fbe
drm/amdgpu:fix race condition

sequence is protected by spinlock so don't access sequence
in paramter seq when invoking this function.

~0 means to get the latest sequence number and 0 means none to
get.

Change-Id: Ib7a03f3cf5594deeb4ad333cc59b47a6bddfd1ad
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
include/uapi/drm/amdgpu_drm.h