]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: READ/WRITE_ONCE g2h_fence->done
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Mon, 22 Dec 2025 20:19:59 +0000 (20:19 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 23 Dec 2025 21:43:49 +0000 (16:43 -0500)
commitb5179dbd1c14743ae80f0aaa28eaaf35c361608f
treeadde034c4841c05e2663b39f2d5cb4f623445f15
parentc3a613a03902dc09a9b50d2f6ae67005908f4a7e
drm/xe/guc: READ/WRITE_ONCE g2h_fence->done

Use READ_ONCE and WRITE_ONCE when operating on g2h_fence->done
to prevent the compiler from ignoring important modifications
to its value.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251222201957.63245-5-jonathan.cavitt@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c