diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-04-07 18:39:07 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-28 16:38:00 -0400 |
commit | d7b1eeb2ca039d04f1a1fcb241920cb112b4b52a (patch) | |
tree | 60d4a49eeb0baf5e3a3181cec53d5c4033af4c97 /include | |
parent | 5e78835abdabc303ba980f50e9f71039e7689cc9 (diff) | |
download | linux-stable-d7b1eeb2ca039d04f1a1fcb241920cb112b4b52a.tar.gz linux-stable-d7b1eeb2ca039d04f1a1fcb241920cb112b4b52a.tar.bz2 linux-stable-d7b1eeb2ca039d04f1a1fcb241920cb112b4b52a.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/drm/amdgpu_drm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index 516a9f285730..92262d81d41e 100644 --- a/include/uapi/drm/amdgpu_drm.h +++ b/include/uapi/drm/amdgpu_drm.h @@ -295,7 +295,10 @@ union drm_amdgpu_gem_wait_idle { }; struct drm_amdgpu_wait_cs_in { - /** Command submission handle */ + /* Command submission handle + * handle equals 0 means none to wait for + * handle equal ~0ull meanas wait for the latest sequence number + */ __u64 handle; /** Absolute timeout to wait */ __u64 timeout; |