]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: READ/WRITE_ONCE ct->state
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Mon, 22 Dec 2025 20:20:00 +0000 (20:20 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 23 Dec 2025 21:43:49 +0000 (16:43 -0500)
commitac1317df039d9e4a05e5acac4159e5c2021600aa
treeb4f2e9c60b714f94af13d9c5972aa3490fedc54b
parentb5179dbd1c14743ae80f0aaa28eaaf35c361608f
drm/xe/guc: READ/WRITE_ONCE ct->state

Use READ_ONCE and WRITE_ONCE when operating on ct->state
to prevent the compiler form ignoring important modifications
to its value.

Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251222201957.63245-6-jonathan.cavitt@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c
drivers/gpu/drm/xe/xe_guc_ct.h