[PATCH 00/11] drm/xe: initial changes for XE OA
Ashutosh Dixit
ashutosh.dixit at intel.com
Fri Jul 21 00:06:22 UTC 2023
This patchset is the initial port of i915 perf/OA functionality to the Xe
driver. The following IGT series is provided for testing this patchset:
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
This series contains an additional HAX patch to help review these patches.
The additional HAX patch contains:
a. Incomplete ports of the features listed above which are not included in
this patchset
b. FIXME highlighting significant changes between i915 and xe, and
c. FIXME contains author comments about implementation caveats
Therefore FIXME's (and associated comments) in the HAX patch should guide
in reviewing this Xe OA patchset.
Ashutosh Dixit (11):
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
HAX: drm/xe/oa: Incomplete features and FIXME's
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 | 3085 +++++++++++++++++++++
drivers/gpu/drm/xe/xe_oa.h | 35 +
drivers/gpu/drm/xe/xe_oa_types.h | 357 +++
drivers/gpu/drm/xe/xe_query.c | 5 +-
include/uapi/drm/xe_drm.h | 259 +-
14 files changed, 3976 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
--
2.41.0
More information about the Intel-gfx-trybot
mailing list