[Nouveau] [PATCH v2 0/4] PMU engine counters
Karol Herbst
nouveau at karolherbst.de
Tue Feb 16 16:54:16 UTC 2016
these are usually used for dynamic reclocking on gt215 and newer
The counters are used to get the load of the core, memory, video and pcie loads
currently I expose the loads through a debugfs "current_load" file, but I want
to move that to nvif and just add a wrapper around that in debugfs for
convenience. Using nvif would have the advantage, that userspace tools can
easily get loads without requiring root access.
Karol Herbst (4):
subdev/pmu/fuc: add gk104
pmu/fuc: add macros for pdaemon pwr counters
subdev/pmu/fuc: implement counter readout
nouveau/debugfs: add interface for current load
drm/nouveau/include/nvif/device.h | 1 +
drm/nouveau/include/nvkm/subdev/pmu.h | 10 +
drm/nouveau/nouveau_debugfs.c | 23 +
drm/nouveau/nvkm/subdev/pmu/base.c | 18 +
drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h | 411 +++---
drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h | 745 +++++-----
drm/nouveau/nvkm/subdev/pmu/fuc/gk104.fuc4 | 70 +
drm/nouveau/nvkm/subdev/pmu/fuc/gk104.fuc4.h | 1866 ++++++++++++++++++++++++++
drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h | 725 ++++++----
drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h | 732 ++++++----
drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc | 25 +
drm/nouveau/nvkm/subdev/pmu/fuc/os.h | 10 +
drm/nouveau/nvkm/subdev/pmu/fuc/perf.fuc | 156 +++
drm/nouveau/nvkm/subdev/pmu/gk104.c | 4 +-
drm/nouveau/nvkm/subdev/pmu/gk110.c | 6 +-
15 files changed, 3699 insertions(+), 1103 deletions(-)
create mode 100644 drm/nouveau/nvkm/subdev/pmu/fuc/gk104.fuc4
create mode 100644 drm/nouveau/nvkm/subdev/pmu/fuc/gk104.fuc4.h
--
2.7.1
More information about the Nouveau
mailing list