Skip to content

Add OA functionality to Xe

Ashutosh Dixit intel-xe 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesNew
  2. v110 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/xe/oa: Introduce OA uapiinclude/uapi/drm/xe_drm.h+256 -10 replies
2/10drm/xe/oa: Add OA typesdrivers/gpu/drm/xe/xe_oa_types.h+295 -00 replies
3/10drm/xe/oa: Add registers and GPU commands used by OAdrivers/gpu/drm/xe/regs/xe_engine_regs.h drivers/gpu/drm/xe/regs/xe_gpu_commands.h drivers/gpu/drm/xe/regs/xe_oa_regs.h+205 -00 replies
4/10drm/xe/oa: Module init/exit and probe/removedrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_device_types.h +5 more+355 -00 replies
5/10drm/xe/oa: Add/remove config ioctl'sdrivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_oa.c drivers/gpu/drm/xe/xe_oa.h+387 -10 replies
6/10drm/xe/oa: Start implementing OA stream open ioctldrivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_oa.c drivers/gpu/drm/xe/xe_oa.h+243 -00 replies
7/10drm/xe/oa: OA stream initializationdrivers/gpu/drm/xe/xe_oa.c+677 -30 replies
8/10drm/xe/oa: Expose OA stream fddrivers/gpu/drm/xe/xe_oa.c+387 -00 replies
9/10drm/xe/oa: Read file_operationdrivers/gpu/drm/xe/xe_oa.c+359 -00 replies
10/10drm/xe/oa: Implement queriesdrivers/gpu/drm/xe/xe_oa.c drivers/gpu/drm/xe/xe_oa.h drivers/gpu/drm/xe/xe_query.c+18 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Intel-xe] [PATCH v2 00/10] Add OA functionality to Xe

This patchset is the initial port of i915 perf/OA functionality to the Xe driver. It has been tested against the following IGT patch:

https://patchwork.freedesktop.org/series/121082/

The following features in i915 have not been ported and will be added (as new patches) if/as they are needed:

* NOA wait
* GuC ctx id (guc_sw_ctx_id)
* CTX_R_PWR_CLK_STATE/GEN8_R_PWR_CLK_STATE
* hold_preemption (DRM_XE_OA_PROP_HOLD_PREEMPTION)
* sseu_config (DRM_XE_OA_PROP_GLOBAL_SSEU)
* Override gucrc (override_gucrc_mode)
* MTL bios_c6_setup
* ratelimits
* compat ioctl

I am providing the following additional HAX patch (not part of this series) to help review these patches:

https://patchwork.freedesktop.org/patch/548718/?series=120100&rev=3

The commit message in the above patch explains how it can be useful for reviewing this series.

Test-with: [email protected]

Ashutosh Dixit (10):
drm/xe/oa: Introduce OA uapi
drm/xe/oa: Add OA types
drm/xe/oa: Add registers and GPU commands used by OA drm/xe/oa: Module init/exit and probe/remove drm/xe/oa: Add/remove config ioctl's drm/xe/oa: Start implementing OA stream open ioctl drm/xe/oa: OA stream initialization drm/xe/oa: Expose OA stream fd
drm/xe/oa: Read file_operation
drm/xe/oa: Implement queries

 drivers/gpu/drm/xe/Makefile               |    1 +
 drivers/gpu/drm/xe/regs/xe_engine_regs.h  |    5 +
 drivers/gpu/drm/xe/regs/xe_gpu_commands.h |   27 +
 drivers/gpu/drm/xe/regs/xe_oa_regs.h      |  173 ++
 drivers/gpu/drm/xe/xe_device.c            |   16 +
 drivers/gpu/drm/xe/xe_device_types.h      |    4 +
 drivers/gpu/drm/xe/xe_gt_types.h          |    4 +
 drivers/gpu/drm/xe/xe_hw_engine_types.h   |    2 +
 drivers/gpu/drm/xe/xe_module.c            |    5 +
 drivers/gpu/drm/xe/xe_oa.c                | 2358 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_oa.h                |   28 +
 drivers/gpu/drm/xe/xe_oa_types.h          |  295 +++
 drivers/gpu/drm/xe/xe_query.c             |    5 +-
 include/uapi/drm/xe_drm.h                 |  257 ++-
 14 files changed, 3178 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/regs/xe_oa_regs.h
 create mode 100644 drivers/gpu/drm/xe/xe_oa.c
 create mode 100644 drivers/gpu/drm/xe/xe_oa.h
 create mode 100644 drivers/gpu/drm/xe/xe_oa_types.h
Signature · 1 line
2.41.0