Skip to contentSkip to conversation

pm: expose name of domains

PATCH New Samuel Pitoiset 1 participant 2 messages Jun 19, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pm: expose name of domains

This is going to be very useful for GF100+ because each GPC can have its own domain of counters.

---
 drm/nouveau/include/nvif/class.h  | 1 +
 drm/nouveau/nvkm/engine/pm/base.c | 1 +
 2 files changed, 2 insertions(+)
drm/nouveau/include/nvif/class.h +1 -0
index 3b7f49f..59d5983 100644
@@ -262,6 +262,7 @@ struct nvif_perfmon_query_domain_v0 {
 	__u8  iter;
 	__u16 signal_nr;
 	__u8  pad05[2];
+	char  name[64];
 };
 
 struct nvif_perfmon_query_signal_v0 {
drm/nouveau/nvkm/engine/pm/base.c +1 -0
index 7866e22..94991d6 100644
@@ -454,6 +454,7 @@ nvkm_perfmon_mthd_query_domain(struct nvkm_object *object, void *data, u32 size)
 
 		args->v0.id         = di;
 		args->v0.signal_nr  = nvkm_perfdom_count_perfsig(dom);
+		strncpy(args->v0.name, dom->name, sizeof(args->v0.name));
 
 		/* Currently only global counters (PCOUNTER) are implemented
 		 * but this will be different for local counters (MP). */
Signature · 6 lines
2.4.3

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

A message that is not in the archive (sent off-list or not yet received): 1434728198-873-1-git-send-email-samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

PATCH 2/2 pm/nv40: rename pcounter domains to 'pc' instead of 'pm'

This trivial patch makes thing more consistent since hardware signals names are prefixed by 'pcXX'.

---
 drm/nouveau/nvkm/engine/pm/nv40.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drm/nouveau/nvkm/engine/pm/nv40.c +1 -1
index 1c6d1ca..5a87f3a 100644
@@ -108,7 +108,7 @@ nv40_pm_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
 	if (ret)
 		return ret;
 
-	ret = nvkm_perfdom_new(&priv->base, "pm", 0, 0, 0, 4, mclass->doms);
+	ret = nvkm_perfdom_new(&priv->base, "pc", 0, 0, 0, 4, mclass->doms);
 	if (ret)
 		return ret;
 
Signature · 6 lines
2.4.3

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