Skip to content

PMU engine counters

Karol Herbst nouveau 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 0 repliesNew
  2. v2 RFC6 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7pmu/fuc: add macros for pmu engine countersdrm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc+8 -00 replies
2/7pmu/fuc: read out counters and store themdrm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h +2 more+1826 -13460 replies
3/7pmu/fuc: implement GET_SLOTSdrm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h +3 more+1780 -15410 replies
4/7pmu/fuc: implement SET_SLOTdrm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h +3 more+1376 -13590 replies
5/7pmu: add counter_slots fielddrm/nouveau/nvkm/subdev/pmu/gf100.c drm/nouveau/nvkm/subdev/pmu/gf119.c drm/nouveau/nvkm/subdev/pmu/gk104.c +5 more+9 -00 replies
6/7pmu: setup countersdrm/nouveau/include/nvkm/subdev/pmu.h drm/nouveau/nvkm/subdev/pmu/gt215.c+52 -00 replies
7/7nouveau/debugfs: add interface for current loaddrm/nouveau/include/nvif/device.h drm/nouveau/include/nvkm/subdev/pmu.h drm/nouveau/nouveau_debugfs.c +9 more+71 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchMartin Peres
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v3 thread

Cover letter [PATCH v3 0/7] PMU engine counters

I think I am done reworking the series and getting to a point where I think it is basically finished. The configuration of the slots could be improved later on when working on dynamic reclocking, but for now it's good enough to report the current GPU utilization to userspace.

Patches 1-4 imeplement PMU commands to setup and readout the counters. Patches 5-6 lets Nouveau make use of 1-4.
Patch 7 adds a debugfs file to readout basic GPU loads.

In a follow up one could write a nice NVIF based interface for readoung out those values to provide them through GALLIUM_HUD.

This feature is required to implement proper dynamic reclocking on GT215 and newer. On pre GT215 GPUs there is also PCOUNTERS, but this is ugly so that I only focus on dynamic reclocking starting with GT215 for now.

Karol Herbst (7):
pmu/fuc: add macros for pmu engine counters
pmu/fuc: read out counters and store them
pmu/fuc: implement GET_SLOTS
pmu/fuc: implement SET_SLOT
pmu: add counter_slots field
pmu: setup counters
nouveau/debugfs: add interface for current load

 drm/nouveau/include/nvif/device.h            |   1 +
 drm/nouveau/include/nvkm/subdev/pmu.h        |  17 +
 drm/nouveau/nouveau_debugfs.c                |  27 +
 drm/nouveau/nvkm/subdev/pmu/base.c           |   8 +
 drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h | 838 ++++++++++++++++-----------
 drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h | 780 +++++++++++++++----------
 drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h | 732 +++++++++++++----------
 drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h | 736 +++++++++++++----------
 drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc   |   8 +
 drm/nouveau/nvkm/subdev/pmu/fuc/os.h         |  16 +
 drm/nouveau/nvkm/subdev/pmu/fuc/perf.fuc     | 156 +++++
 drm/nouveau/nvkm/subdev/pmu/gf100.c          |   2 +
 drm/nouveau/nvkm/subdev/pmu/gf119.c          |   2 +
 drm/nouveau/nvkm/subdev/pmu/gk104.c          |   2 +
 drm/nouveau/nvkm/subdev/pmu/gk110.c          |   2 +
 drm/nouveau/nvkm/subdev/pmu/gk208.c          |   2 +
 drm/nouveau/nvkm/subdev/pmu/gm107.c          |   2 +
 drm/nouveau/nvkm/subdev/pmu/gt215.c          |  62 ++
 drm/nouveau/nvkm/subdev/pmu/priv.h           |   5 +
 19 files changed, 2137 insertions(+), 1261 deletions(-)
Signature · 6 lines
2.13.0

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau