From: Maxim Levitsky Subject: Re: [PATCH 05/10] nouveau: restore performance mode a bit later. Date: Sun, 09 Oct 2011 23:05:38 +0200 Message-ID: <1318194338.27225.2.camel@maxim-laptop> References: <1318193920-27461-1-git-send-email-maximlevitsky@gmail.com> <1318193920-27461-6-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: <1318193920-27461-6-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 On Sun, 2011-10-09 at 22:58 +0200, Maxim Levitsky wrote: > Otherwice code that responsible for idling the card can't work. > BIOS init tables are supposed to init the clocks to correct values, > so that shouldn't cause any problems (we don't reclock by default anyway) This is true with Martin Peres' code, but won't hurt without it anyway. > Signed-off-by: Maxim Levitsky > --- > drivers/gpu/drm/nouveau/nouveau_drv.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c > index 0d6a199..12ce793 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_drv.c > +++ b/drivers/gpu/drm/nouveau/nouveau_drv.c > @@ -303,8 +303,6 @@ nouveau_pci_resume(struct pci_dev *pdev) > if (ret) > return ret; > > - nouveau_pm_resume(dev); > - > if (dev_priv->gart_info.type == NOUVEAU_GART_AGP) { > ret = nouveau_mem_init_agp(dev); > if (ret) { > @@ -344,6 +342,8 @@ nouveau_pci_resume(struct pci_dev *pdev) > } > } > > + nouveau_pm_resume(dev); > + > NV_INFO(dev, "Restoring mode...\n"); > list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { > struct nouveau_framebuffer *nouveau_fb; -- Best regards, Maxim Levitsky Visit my blog: http://maximlevitsky.wordpress.com Warning: Above blog contains rants.