Skip to content

Add DG2 OA support

Umesh Nerlige Ramappa intel-gfx 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest posting 2/216 patches 3 repliesIn review
  2. v5 posting 3/316 patches 1 replySuperseded
  3. v5 posting 2/316 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v4 posting 2/216 patches2 repliesSuperseded
v6 posting 1/235 of 36 patches20 repliesSuperseded
v316 patches8 repliesSuperseded
v5 posting 1/333 of 34 patches0 repliesSuperseded
v215 patches14 repliesSuperseded
v4 posting 1/217 patches2 repliesSuperseded
v119 patches59 repliesSuperseded

Changes in v6 from the cover letter

- Fix checkpatch issues

Patches in v6 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16drm/i915/perf: Fix OA filtering logic for GuC modedrivers/gpu/drm/i915/gt/intel_lrc.h drivers/gpu/drm/i915/i915_perf.c+127 -190 replies
2/16drm/i915/perf: Add 32-bit OAG and OAR formats for DG2drivers/gpu/drm/i915/i915_perf.c include/uapi/drm/i915_drm.h+11 -00 replies
3/16drm/i915/perf: Fix noa wait predication for DG2drivers/gpu/drm/i915/gt/intel_engine_regs.h drivers/gpu/drm/i915/i915_perf.c+21 -40 replies
4/16drm/i915/perf: Determine gen12 oa ctx offset at runtimedrivers/gpu/drm/i915/gt/intel_gpu_commands.h drivers/gpu/drm/i915/i915_perf.c drivers/gpu/drm/i915/i915_perf_oa_regs.h+127 -250 replies
5/16drm/i915/perf: Enable bytes per clock reporting in OAdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_pci.c drivers/gpu/drm/i915/i915_perf.c +2 more+29 -00 replies
6/16drm/i915/perf: Simply use stream->ctxdrivers/gpu/drm/i915/i915_perf.c+2 -20 replies
7/16drm/i915/perf: Move gt-specific data from i915->perf to gt->perfdrivers/gpu/drm/i915/gt/intel_gt_types.h drivers/gpu/drm/i915/gt/intel_sseu.c drivers/gpu/drm/i915/i915_perf.c +2 more+80 -570 replies
8/16drm/i915/perf: Replace gt->perf.lock with stream->lock for file opsdrivers/gpu/drm/i915/i915_perf.c drivers/gpu/drm/i915/i915_perf_types.h+19 -170 replies
9/16drm/i915/perf: Use gt-specific ggtt for OA and noa-wait buffersdrivers/gpu/drm/i915/i915_perf.c+19 -20 replies
10/16drm/i915/perf: Store a pointer to oa_format in oa_bufferdrivers/gpu/drm/i915/i915_perf.c drivers/gpu/drm/i915/i915_perf_types.h+13 -200 replies
11/16drm/i915/perf: Add Wa_1508761755:dg2drivers/gpu/drm/i915/gt/intel_gt_regs.h drivers/gpu/drm/i915/i915_perf.c+25 -00 replies
12/16drm/i915/perf: Apply Wa_18013179988drivers/gpu/drm/i915/i915_getparam.c drivers/gpu/drm/i915/i915_perf.c drivers/gpu/drm/i915/i915_perf.h +1 more+39 -20 replies
13/16drm/i915/perf: Save/restore EU flex counters across resetdrivers/gpu/drm/i915/gt/uc/intel_guc_ads.c+10 -00 replies
14/16drm/i915/guc: Support OA when Wa_16011777198 is enableddrivers/gpu/drm/i915/gt/uc/abi/guc_actions_slpc_abi.h drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.h +1 more+104 -00 replies
15/16drm/i915/perf: complete programming whitelisting for XEHPSDVdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_pci.c drivers/gpu/drm/i915/i915_perf.c +1 more+17 -00 replies
16/16drm/i915/perf: Enable OA for DG2drivers/gpu/drm/i915/i915_perf.c+0 -60 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

PatchLionel LandwerlinAshutosh Dixit
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b R-b
8/16R-b
9/16R-b
10/16R-b R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [Intel-gfx] [PATCH v6 00/16] Add DG2 OA support

Add OA format support for DG2 and various fixes for DG2.

This series has 2 uapi changes listed below:

1) drm/i915/perf: Add OAG and OAR formats for DG2

DG2 has new OA formats defined that can be selected by the user. The UMD changes that are consumed by GPUvis are:
https://patchwork.freedesktop.org/patch/504456/?series=107633&rev=5

Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893

2) drm/i915/perf: Apply Wa_18013179988

DG2 has a bug where the OA timestamp does not tick at the CS timestamp frequency. Instead it ticks at a multiple that is determined from the CTC_SHIFT value in RPM_CONFIG. Since the timestamp is used by UMD to make sense of all the counters in the report, expose the OA timestamp frequency to the user. The interface is generic and applies to all platforms. On platforms where the bug is not present, this returns the CS timestamp frequency. UMD specific changes consumed by GPUvis are:
https://patchwork.freedesktop.org/patch/504464/?series=107633&rev=5

Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893

v2:
- Add review comments
- Update uapi changes in cover letter
- Drop patches for non-production platforms drm/i915/perf: Use helpers to process reports w.r.t. OA buffer size drm/i915/perf: Add Wa_16010703925:dg2

- Drop 64-bit OA format changes for now drm/i915/perf: Parse 64bit report header formats correctly drm/i915/perf: Add Wa_1608133521:dg2

v3:
- Add review comments to patches 02, 04, 05, 14
- Drop Acks

v4:
- Add review comments to patch 04
- Update R-bs
- Add MR links to patches 02 and 12

v5:
- Drop unrelated comment
- Rebase and fix MCR reg write
- On pre-gen12, EU flex config is saved/restored in the context image, so save/restore EU flex config only for gen12.

v6:
- Fix checkpatch issues

Test-with: [email protected]

Lionel Landwerlin (1):
drm/i915/perf: complete programming whitelisting for XEHPSDV

Umesh Nerlige Ramappa (14):
drm/i915/perf: Fix OA filtering logic for GuC mode drm/i915/perf: Add 32-bit OAG and OAR formats for DG2 drm/i915/perf: Fix noa wait predication for DG2 drm/i915/perf: Determine gen12 oa ctx offset at runtime drm/i915/perf: Enable bytes per clock reporting in OA drm/i915/perf: Simply use stream->ctx
drm/i915/perf: Move gt-specific data from i915->perf to gt->perf drm/i915/perf: Replace gt->perf.lock with stream->lock for file ops drm/i915/perf: Use gt-specific ggtt for OA and noa-wait buffers drm/i915/perf: Store a pointer to oa_format in oa_buffer drm/i915/perf: Add Wa_1508761755:dg2
drm/i915/perf: Apply Wa_18013179988
drm/i915/perf: Save/restore EU flex counters across reset drm/i915/perf: Enable OA for DG2

Vinay Belgaumkar (1):
drm/i915/guc: Support OA when Wa_16011777198 is enabled

 drivers/gpu/drm/i915/gt/intel_engine_regs.h   |   1 +
 drivers/gpu/drm/i915/gt/intel_gpu_commands.h  |   4 +
 drivers/gpu/drm/i915/gt/intel_gt_regs.h       |   1 +
 drivers/gpu/drm/i915/gt/intel_gt_types.h      |   3 +
 drivers/gpu/drm/i915/gt/intel_lrc.h           |   2 +
 drivers/gpu/drm/i915/gt/intel_sseu.c          |   4 +-
 .../drm/i915/gt/uc/abi/guc_actions_slpc_abi.h |   9 +
 drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c    |  10 +
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c   |  66 ++
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.h   |   2 +
 drivers/gpu/drm/i915/i915_drv.h               |   5 +
 drivers/gpu/drm/i915/i915_getparam.c          |   3 +
 drivers/gpu/drm/i915/i915_pci.c               |   2 +
 drivers/gpu/drm/i915/i915_perf.c              | 576 ++++++++++++++----
 drivers/gpu/drm/i915/i915_perf.h              |   2 +
 drivers/gpu/drm/i915/i915_perf_oa_regs.h      |   6 +-
 drivers/gpu/drm/i915/i915_perf_types.h        |  47 +-
 drivers/gpu/drm/i915/intel_device_info.h      |   2 +
 drivers/gpu/drm/i915/selftests/i915_perf.c    |  16 +-
 include/uapi/drm/i915_drm.h                   |  10 +
 20 files changed, 630 insertions(+), 141 deletions(-)
Signature · 1 line
2.25.1