drm/xe: Avoid any races around ccs_mode update
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Wed, 1 Nov 2023 19:02:53 +0000 (19:02 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:27 +0000 (11:45 -0500)
commit78e2701a2614720d8c47b3a8490bf61c29718e8a
tree4b99b32833c5fce2f858cc1aa80c99e790ee5915
parentf3bc5bb4d53d2091f03cf43f19e7c9b41db90367
drm/xe: Avoid any races around ccs_mode update

Ensure that there are no drm clients when changing CCS mode.
Allow exec_queue creation only with enabled CCS engines.

v2: Rebase

Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_gt_ccs_mode.c