From: Maxim Levitsky Subject: [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 Date: Sun, 22 Jan 2012 00:14:25 +0200 Message-ID: <1327184067-25936-3-git-send-email-maximlevitsky@gmail.com> References: <1327184067-25936-1-git-send-email-maximlevitsky@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327184067-25936-1-git-send-email-maximlevitsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org Signed-off-by: Maxim Levitsky --- 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