diff options
author | 2022-04-12 16:24:49 -0400 | |
---|---|---|
committer | 2022-04-14 15:29:13 -0400 | |
commit | 250e64a3f06c42e993e7b8c6f727d43b5b9f8c96 (patch) | |
tree | 469d936f31dc90ae9a295ffcf0e9e5bda8501251 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | Revert "drm/amd/display: Pass HostVM enable flag into DCN3.1 DML" (diff) | |
download | wireguard-linux-250e64a3f06c42e993e7b8c6f727d43b5b9f8c96.tar.xz wireguard-linux-250e64a3f06c42e993e7b8c6f727d43b5b9f8c96.zip |
drm/amdkfd: fix race condition in kfd_wait_on_events
Add the waiters to the wait queue during initialization, while holding the
event spinlock. Otherwise the waiter will not get activated if the event
signals before being added to the wait queue.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang<Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions