From patchwork Thu Dec 3 17:52:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barnes X-Patchwork-Id: 64587 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 nB3HrLgI013687 for ; Thu, 3 Dec 2009 17:53:21 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 45FA99F6C6; Thu, 3 Dec 2009 09:53:21 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from outbound-mail-154.bluehost.com (outbound-mail-154.bluehost.com [67.222.39.34]) by gabe.freedesktop.org (Postfix) with SMTP id 069999E9D9 for ; Thu, 3 Dec 2009 09:53:18 -0800 (PST) Received: (qmail 5814 invoked by uid 0); 3 Dec 2009 17:53:18 -0000 Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by outboundproxy5.bluehost.com with SMTP; 3 Dec 2009 17:53:18 -0000 Received: from [75.111.28.251] (helo=jbarnes-piketon) by box514.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1NGFrh-0001sF-Mn; Thu, 03 Dec 2009 10:53:17 -0700 Date: Thu, 3 Dec 2009 09:52:43 -0800 From: Jesse Barnes To: Arjan van de Ven , intel-gfx@lists.freedesktop.org, eric@anholt.net, Shaohua Li Message-ID: <20091203095243.68bcb1f6@jbarnes-piketon> In-Reply-To: <20091202194406.5d6251df@infradead.org> References: <20091202094920.707b2b18@jbarnes-piketon> <20091202194406.5d6251df@infradead.org> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.3; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 75.111.28.251 authed with jbarnes@virtuousgeek.org} Subject: Re: [Intel-gfx] [PATCH] drm/i915: warn if Pineview CxSR can't be enabled 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/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 65b76ff..951b2e9 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -4730,6 +4730,13 @@ void intel_modeset_init(struct drm_device *dev) (unsigned long)dev); intel_setup_overlay(dev); + + if (IS_IGD(dev) && !intel_get_cxsr_latency(IS_IGDG(dev), + dev_priv->fsb_freq, + dev_priv->mem_freq)) + DRM_INFO("failed to find known CxSR latency " + "(found fsb freq %d, mem freq %d), disabling CxSR\n", + dev_priv->fsb_freq, dev_priv->mem_freq); } void intel_modeset_cleanup(struct drm_device *dev)