aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2015-06-07 22:40:25 +0200
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:39:59 +1000
commit3bfdde178a959cb5e490e4a3a2433c95a9a1af26 (patch)
tree9f7bb0ae54cae0241b1908dc0af87dcdd3ffc677 /drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
parentdrm/nouveau/pm: implement NVIF_PERFMON_V0_QUERY_SOURCE method (diff)
downloadlinux-dev-3bfdde178a959cb5e490e4a3a2433c95a9a1af26.tar.xz
linux-dev-3bfdde178a959cb5e490e4a3a2433c95a9a1af26.zip
drm/nouveau/pm: allow the userspace to schedule hardware counters
This adds a new method NVIF_PERFCTR_V0_INIT which starts a batch of hardware counters for sampling. This will allow the userspace to start a monitoring session using the INIT method and to stop it with SAMPLE, for example before and after a frame is rendered. This commit temporarily breaks nv_perfmon but this is going to be fixed with the upcoming patch. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h b/drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
index f954c9868594..4ed77ff4922c 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
@@ -6,6 +6,7 @@ struct nvkm_perfctr {
struct nvkm_object base;
struct list_head head;
struct nvkm_perfsig *signal[4];
+ struct nvkm_perfdom *dom;
int slot;
u32 logic_op;
u32 clk;