[Intel-xe] [RFC v3 0/2] drm/xe/pvc: Enable fixed CCS mode

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Tue Nov 14 00:46:02 UTC 2023


Allow static assignment of compute slices to a user selected
number of compute engines. Add a per-tile 'ccs_mode' sysfs
interface for user selection. By default assign all compute
resources to the first available compute engine. User must
ensure the tile is idle while changing the ccs mode as this
causes a tile reset. User must also ensure that there are no
open exec queues while changing the ccs mode. Also, error will
be returned for exec queue creation with disabled ccs engines. 

Support this mode for PVC which can be extended to other
platforms in future.

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

v2: Fixed issue with HW config, ensure no exec queue is created
    with disabled CCS engines.
v3: Make ccs_mode a per 'gt' entry instead of per tile (Matt Roper)
    Allow ccs_mode update only when there are no drm clients.

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

Niranjana Vishwanathapura (2):
  drm/xe: Enable Fixed CCS mode setting
  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           | 10 ++++
 drivers/gpu/drm/xe/xe_gt.h           |  2 +
 drivers/gpu/drm/xe/xe_gt_ccs_mode.c  | 73 ++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_ccs_mode.h  | 22 +++++++++
 drivers/gpu/drm/xe/xe_gt_sysfs.c     | 62 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_types.h     | 14 ++++++
 drivers/gpu/drm/xe/xe_guc_ads.c      |  3 ++
 drivers/gpu/drm/xe/xe_hw_engine.c    | 20 ++++++++
 12 files changed, 239 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