drm/xe: Allow userspace to configure CCS mode
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Wed, 15 Nov 2023 21:59:04 +0000 (21:59 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:27 +0000 (11:45 -0500)
commitf3bc5bb4d53d2091f03cf43f19e7c9b41db90367
tree3fa5ffd313603019dc54d25611a7fbe6590a8f0d
parent0d97ecce16bd26a1f90022cf0466ff15c4a0bd91
drm/xe: Allow userspace to configure CCS mode

Allow user to configure the CCS mode setting through a
'ccs_mode' sysfs interface. Also report the current
CCS mode configuration and number of compute slices
available through this interface.

v2: Rebase, make it platform agnostic
v3: Separte out num_cslices sysfs interface and make
    xe_gt_ccs_mode_sysfs_init() return void

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_gt.c
drivers/gpu/drm/xe/xe_gt_ccs_mode.c
drivers/gpu/drm/xe/xe_gt_ccs_mode.h