]> 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)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 29 Dec 2025 09:49:23 +0000 (10:49 +0100)
commitbed2a6bd20681aacfb063015c1edfab6f58a333e
tree7dfe3571da417f33e57a2a5b9b47401906c67d3a
parent754c23238438600e9236719f7e67aff2c4d02093
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>
(cherry picked from commit b5179dbd1c14743ae80f0aaa28eaaf35c361608f)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c