diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-06-29 13:23:25 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-05 16:39:57 -0500 |
commit | 9fc15f5fc836712b173f04e143b8d77fdded1a37 (patch) | |
tree | fb3b276b6668f04e491a6f3faf196555bf843f12 /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
parent | 860c15e903327f9af269d2ee7011454624dfcb90 (diff) | |
download | linux-stable-9fc15f5fc836712b173f04e143b8d77fdded1a37.tar.gz linux-stable-9fc15f5fc836712b173f04e143b8d77fdded1a37.tar.bz2 linux-stable-9fc15f5fc836712b173f04e143b8d77fdded1a37.zip |
drm/amdgpu: fix user fence write race condition
The buffer object backing the user fence is reserved using the non-user
fence, i.e., as soon as the non-user fence is signaled, the user fence
buffer object can be moved or even destroyed.
Therefore, emit the user fence first.
Both fences have the same cache invalidation behavior, so this should
have no user-visible effect.
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
0 files changed, 0 insertions, 0 deletions