drm/xe: Enable Fixed CCS mode setting
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Mon, 9 Oct 2023 20:10:27 +0000 (13:10 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:26 +0000 (11:45 -0500)
commit0d97ecce16bd26a1f90022cf0466ff15c4a0bd91
tree54054df933f7fa114dc31f3f72b1b84ea73da897
parentb279b53015079bda2a311b48892dff362ac8ebc3
drm/xe: Enable Fixed CCS mode setting

Disable dynamic HW load balancing of compute resource assignment
to engines and instead enabled fixed mode of mapping compute
resources to engines on all platforms with more than one compute
engine.

By default enable only one CCS engine with all compute slices
assigned to it. This is the desired configuration for common
workloads.

PVC platform supports only the fixed CCS mode (workaround 16016805146).

v2: Rebase, make it platform agnostic
v3: Minor code refactoring

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/Makefile
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt.h
drivers/gpu/drm/xe/xe_gt_ccs_mode.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_ccs_mode.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_types.h
drivers/gpu/drm/xe/xe_guc_ads.c
drivers/gpu/drm/xe/xe_hw_engine.c