summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_perf.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-17 16:11:31 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-09-20 16:02:36 +1000
commit4fd2847e9bfa592ef8f76d5ec8a5c809682c323d (patch)
tree2ba114c48a713a7eb512d2a0042ede73f5e93d38 /drivers/gpu/drm/nouveau/nouveau_perf.c
parentca94a71fc4d99c99871dfca528a88aab1557641c (diff)
drm/nva3/pm: parse/reclock vdec/41a0 clocks
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_perf.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_perf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_perf.c b/drivers/gpu/drm/nouveau/nouveau_perf.c
index b0e995fdcbad..b00cf4b5046b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_perf.c
+++ b/drivers/gpu/drm/nouveau/nouveau_perf.c
@@ -291,6 +291,8 @@ nouveau_perf_init(struct drm_device *dev)
perflvl->core = ROM16(subent(0)) & 0xfff;
perflvl->shader = ROM16(subent(1)) & 0xfff;
perflvl->memory = ROM16(subent(2)) & 0xfff;
+ perflvl->vdec = ROM16(subent(3)) & 0xfff;
+ perflvl->unka0 = ROM16(subent(4)) & 0xfff;
} else {
perflvl->shader = ROM16(subent(3)) & 0xfff;
perflvl->core = perflvl->shader / 2;
@@ -302,6 +304,8 @@ nouveau_perf_init(struct drm_device *dev)
perflvl->shader *= 1000;
perflvl->memory *= 1000;
perflvl->unk0a *= 1000;
+ perflvl->vdec *= 1000;
+ perflvl->unka0 *= 1000;
break;
}