drm/xe: Use the filelist from drm for ccs_mode change
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Tue, 8 Oct 2024 07:36:28 +0000 (13:06 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 1 Nov 2024 12:19:09 +0000 (05:19 -0700)
commit1c35f1ed1fe3c649f8c16214d0d3dd828b5265d9
tree236a5c7a05449d06937431b36ac334e7ebaa125a
parent23ea2c7572d4735ef66beb1e4feb8ae510b78247
drm/xe: Use the filelist from drm for ccs_mode change

Drop the exclusive client count tracking and use the filelist from the
drm to track the active clients. This also ensures the clients created
internally by the driver won't block changing the ccs mode.

Fixes: ce8c161cbad4 ("drm/xe: Add ref counting for xe_file")
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241008073628.377433-3-balasubramani.vivekanandan@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@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