[Intel-xe] [PATCH v3 0/3] drm/xe: Enable fixed CCS mode

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Mon Dec 4 05:37:06 UTC 2023


Allow static assignment of compute slices to a user selected
number of compute engines. Add a per-gt 'ccs_mode' sysfs
interface for user selection. By default assign all compute
resources to the first available compute engine. User must
ensure that there are no open drm clients while updating
CCS mode through this interface. Enable this for all platforms
with more than one compute engine.

IGT: https://patchwork.freedesktop.org/series/125873/

v2: Rebase, make it platform agnostic
v3: Minor code refactoring, separate num_cslices sysfs interface

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>

Niranjana Vishwanathapura (3):
  drm/xe: Enable Fixed CCS mode setting
  drm/xe: Allow userspace to configure CCS mode
  drm/xe: Avoid any races around ccs_mode update

 drivers/gpu/drm/xe/Makefile          |   1 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h |  14 ++
 drivers/gpu/drm/xe/xe_device.c       |   9 ++
 drivers/gpu/drm/xe/xe_device_types.h |   9 ++
 drivers/gpu/drm/xe/xe_gt.c           |  13 ++
 drivers/gpu/drm/xe/xe_gt.h           |   2 +
 drivers/gpu/drm/xe/xe_gt_ccs_mode.c  | 191 +++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_ccs_mode.h  |  24 ++++
 drivers/gpu/drm/xe/xe_gt_types.h     |   8 ++
 drivers/gpu/drm/xe/xe_guc_ads.c      |   3 +
 drivers/gpu/drm/xe/xe_hw_engine.c    |  20 +++
 11 files changed, 294 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/xe_gt_ccs_mode.c
 create mode 100644 drivers/gpu/drm/xe/xe_gt_ccs_mode.h

-- 
2.21.0.rc0.32.g243a4c7e27



More information about the Intel-xe mailing list