From patchwork Fri Oct 30 06:41:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Lutomirski X-Patchwork-Id: 56573 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9U6fXFo020519 for ; Fri, 30 Oct 2009 06:41:33 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5894E9F6B2; Thu, 29 Oct 2009 23:41:32 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by gabe.freedesktop.org (Postfix) with ESMTP id 71E8F9F5EE for ; Thu, 29 Oct 2009 23:41:27 -0700 (PDT) Received: by fg-out-1718.google.com with SMTP id e21so2457100fga.12 for ; Thu, 29 Oct 2009 23:41:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.4.84 with SMTP id 20mr151858faq.97.1256884887058; Thu, 29 Oct 2009 23:41:27 -0700 (PDT) Date: Fri, 30 Oct 2009 02:41:26 -0400 X-Google-Sender-Auth: c983db9a513de309 Message-ID: From: Andrew Lutomirski To: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH] restore render clock gating on resume X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 9c67f06..82385df 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -374,6 +374,8 @@ typedef struct drm_i915_private { u32 saveCACHE_MODE_0; u32 saveD_STATE; u32 saveDSPCLK_GATE_D; + u32 saveRENCLK_GATE_D1; + u32 saveRENCLK_GATE_D2; u32 saveMI_ARB_STATE; u32 saveSWF0[16]; u32 saveSWF1[16]; diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c index 992d561..d2fd6b2 100644 --- a/drivers/gpu/drm/i915/i915_suspend.c +++ b/drivers/gpu/drm/i915/i915_suspend.c @@ -723,6 +723,8 @@ int i915_save_state(struct drm_device *dev) /* Clock gating state */ dev_priv->saveD_STATE = I915_READ(D_STATE); dev_priv->saveDSPCLK_GATE_D = I915_READ(DSPCLK_GATE_D); /* Not sure about this */ + dev_priv->saveRENCLK_GATE_D1 = I915_READ(RENCLK_GATE_D1); + dev_priv->saveRENCLK_GATE_D2 = I915_READ(RENCLK_GATE_D2); /* Cache mode state */