All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add pdaemon load counters
@ 2015-10-26 18:13 Karol Herbst
       [not found] ` <1445883189-4407-1-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Karol Herbst @ 2015-10-26 18:13 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

this series makes use of the load counters we can use to get information about
the current load of the gpu.

This series includes the needed pmu bits and a debugfs interface to read them
out. Currently the values are between 0 and 255, because it is much easier to
implement it this way on the pmu.

Karol Herbst (4):
  subdev/pmu/fuc: add gk104
  pmu/fuc: add macros for pdaemon pwr counters
  subdev/pmu/fuc: implement perf
  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 |  788 ++++++-----
 drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h |  740 +++++-----
 drm/nouveau/nvkm/subdev/pmu/fuc/gk104.fuc4   |   70 +
 drm/nouveau/nvkm/subdev/pmu/fuc/gk104.fuc4.h | 1869 ++++++++++++++++++++++++++
 drm/nouveau/nvkm/subdev/pmu/fuc/gk208.fuc5.h |  710 ++++++----
 drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h |  755 ++++++-----
 drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc   |   24 +
 drm/nouveau/nvkm/subdev/pmu/fuc/os.h         |    4 +
 drm/nouveau/nvkm/subdev/pmu/fuc/perf.fuc     |  148 ++
 drm/nouveau/nvkm/subdev/pmu/gk104.c          |    4 +-
 drm/nouveau/nvkm/subdev/pmu/gk110.c          |    6 +-
 15 files changed, 3879 insertions(+), 1291 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.6.2

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/4] PMU engine counters
@ 2016-02-08 11:43 Karol Herbst
       [not found] ` <1454931798-5406-1-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Karol Herbst @ 2016-02-08 11:43 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

Anyway there are still some issues I would like to discuss:
1. currently the value rangeof the values is 0-0xff
   I choosed to do this to simplify the code on the pmu, but 0-0xffff is also
   easy to do. Higher accuracy would involve doing more PMU requests and it
   would make the code bigger in size with no real benefit
2. Because these counters are used for dynamic reclocking, these can't be
   reconfigured at runtime. This means we have to fill slots with meaningfull
   configurations. On [GT215-GF100) we have only 4 slots, which means we can't
   do much with them anyway. Since GF100 there are 8 slots, leaving 3 for other
   stuff we might want to add to decide better on new clocks
3. I want to expose those loads through NVIF, but I don't have a good idea how
   to do that. Anyway the debugfs file will be a wrapper around the nvif stuff
   then for convenience

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                |   24 +
 drm/nouveau/nvkm/subdev/pmu/base.c           |   18 +
 drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h |  401 +++---
 drm/nouveau/nvkm/subdev/pmu/fuc/gf119.fuc4.h |  735 +++++-----
 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 |  713 +++++-----
 drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h |  730 ++++++----
 drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc   |   25 +
 drm/nouveau/nvkm/subdev/pmu/fuc/os.h         |    4 +
 drm/nouveau/nvkm/subdev/pmu/fuc/perf.fuc     |  137 ++
 drm/nouveau/nvkm/subdev/pmu/gk104.c          |    4 +-
 drm/nouveau/nvkm/subdev/pmu/gk110.c          |    6 +-
 15 files changed, 3626 insertions(+), 1118 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

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-02-14 22:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 18:13 [PATCH 0/4] Add pdaemon load counters Karol Herbst
     [not found] ` <1445883189-4407-1-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2015-10-26 18:13   ` [PATCH 1/4] subdev/pmu/fuc: add gk104 Karol Herbst
     [not found]     ` <1445883189-4407-2-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2016-02-14 21:10       ` Martin Peres
2015-10-26 18:13   ` [PATCH 2/4] pmu/fuc: add macros for pdaemon pwr counters Karol Herbst
     [not found]     ` <1445883189-4407-3-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2016-02-14 21:14       ` Martin Peres
2015-10-26 18:13   ` [PATCH 3/4] subdev/pmu/fuc: implement perf Karol Herbst
     [not found]     ` <1445883189-4407-4-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2015-10-26 19:19       ` Roy Spliet
2016-02-14 22:02       ` Martin Peres
2015-10-26 18:13   ` [PATCH 4/4] nouveau/debugfs: add interface for current load Karol Herbst
     [not found]     ` <1445883189-4407-5-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2015-10-26 18:17       ` Ilia Mirkin
     [not found]         ` <CAKb7UvjGYgXGCG-SjictQS=GvL1QdDYAY6A4nZYHP6=RFMyxeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-14 22:36           ` Martin Peres
  -- strict thread matches above, loose matches on Subject: below --
2016-02-08 11:43 [PATCH 0/4] PMU engine counters Karol Herbst
     [not found] ` <1454931798-5406-1-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2016-02-08 11:43   ` [PATCH 1/4] subdev/pmu/fuc: add gk104 Karol Herbst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.