search for: 9f4ce6a

Displaying 1 result from an estimated 1 matches for "9f4ce6a".

2015 Oct 26
0
[PATCH v2 4/4] nouveau/debugfs: add interface for current load
...vbios.rom", nouveau_debugfs_vbios_image, 0, NULL }, + { "current_load", nouveau_debugfs_current_load, 0, NULL }, }; #define NOUVEAU_DEBUGFS_ENTRIES ARRAY_SIZE(nouveau_debugfs_list) diff --git a/drm/nouveau/nvkm/subdev/pmu/base.c b/drm/nouveau/nvkm/subdev/pmu/base.c index d95eb86..9f4ce6a 100644 --- a/drm/nouveau/nvkm/subdev/pmu/base.c +++ b/drm/nouveau/nvkm/subdev/pmu/base.c @@ -140,6 +140,24 @@ nvkm_pmu_recv(struct work_struct *work) process, message, data0, data1); } +#define get_counter_index(v, i) (((v) >> ((i)*8)) & 0xff) + +int +nvkm_pmu_get_perf_data(struct...