[Nouveau] [PATCH 2/4] nv50: Power down VDEC when reclocking card. This allows to save lot of power and untill support for video decoding is implemented, its best way to make use of this engine
Maxim Levitsky
maximlevitsky at gmail.com
Sat Jan 21 14:14:25 PST 2012
Signed-off-by: Maxim Levitsky <maximlevitsky at gmail.com>
---
drivers/gpu/drm/nouveau/nv50_pm.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv50_pm.c b/drivers/gpu/drm/nouveau/nv50_pm.c
index 0901e56..2527298 100644
--- a/drivers/gpu/drm/nouveau/nv50_pm.c
+++ b/drivers/gpu/drm/nouveau/nv50_pm.c
@@ -595,6 +595,7 @@ calc_mclk(struct drm_device *dev,
hwsq_wr32(hwsq, 0x611200, 0x00003330); /* enable scanout */
hwsq_fini(hwsq);
+
*pmast = mast;
return 0;
}
@@ -678,6 +679,10 @@ nv50_pm_clocks_pre(struct drm_device *dev, struct nouveau_pm_level *perflvl)
}
}
+ /* I don't use vdec - so I disable it */
+ mast &= ~0x00000f00;
+ mast |= 0x00000500;
+
/* dom6: nfi what this is, but we're limited to various combinations
* of the host clock frequency
*/
--
1.7.5.4
More information about the Nouveau
mailing list