diff options
author | Nicolai Hähnle <[email protected]> | 2018-06-29 13:23:25 +0200 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2018-07-05 16:39:57 -0500 |
commit | 9fc15f5fc836712b173f04e143b8d77fdded1a37 (patch) | |
tree | fb3b276b6668f04e491a6f3faf196555bf843f12 /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |
parent | 860c15e903327f9af269d2ee7011454624dfcb90 (diff) |
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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
0 files changed, 0 insertions, 0 deletions