aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorZbigniew Kempczyński <[email protected]>2025-08-20 08:39:04 +0000
committerRodrigo Vivi <[email protected]>2025-08-26 14:12:11 +0000
commit04e1f683cd28dc9407b238543871a6e09a570dc0 (patch)
tree814b445ebeb01ac21b4a200cf0592453046a6e26 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentLinux 6.17-rc3 (diff)
downloadkernel-04e1f683cd28dc9407b238543871a6e09a570dc0.tar.gz
kernel-04e1f683cd28dc9407b238543871a6e09a570dc0.zip
drm/xe/xe_sync: avoid race during ufence signaling
Marking ufence as signalled after copy_to_user() is too late. Worker thread which signals ufence by memory write might be raced with another userspace vm-bind call. In map/unmap scenario unmap may still see ufence is not signalled causing -EBUSY. Change the order of marking / write to user-fence fixes this issue. Fixes: 977e5b82e090 ("drm/xe: Expose user fence from xe_sync_entry") Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5536 Signed-off-by: Zbigniew Kempczyński <[email protected]> Cc: Matthew Brost <[email protected]> Cc: Matthew Auld <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Signed-off-by: Matthew Brost <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 8ae04fe9ffc93d6bc3bc63ac08375427d69cee06) Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions