drm/xe/guc: Flush G2H handler when turning off CTs
authorMatthew Brost <matthew.brost@intel.com>
Mon, 22 Jan 2024 21:01:56 +0000 (13:01 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 26 Jan 2024 20:14:01 +0000 (15:14 -0500)
commitd688b86a290ecb9ca1a413f01da056be4b7a4914
tree594cf094a0c462814b680d4df9419eefbbac0948
parent83a7173bacc9eb627b04e23c3d15cbe0fa656497
drm/xe/guc: Flush G2H handler when turning off CTs

Make sure G2H handler is not running when changing the CT state to drop
messages or disabled. This will help prevent races in the code ensuring
that G2H are not being processed after changing the state.

v2:
- s/flush_g2h_handler/stop_g2h_handler (Michal)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[Rodrigo remove the extra line while pushing]
Link: https://patchwork.freedesktop.org/patch/msgid/20240122210156.1517444-4-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c