From patchwork Thu Nov 15 18:24:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barnes X-Patchwork-Id: 1751371 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id D799D3FCA5 for ; Thu, 15 Nov 2012 18:23:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 93DCC9EC4F for ; Thu, 15 Nov 2012 10:23:37 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from oproxy12-pub.bluehost.com (50-87-16-10.unifiedlayer.com [50.87.16.10]) by gabe.freedesktop.org (Postfix) with SMTP id 3EF179E96F for ; Thu, 15 Nov 2012 10:23:27 -0800 (PST) Received: (qmail 23039 invoked by uid 0); 15 Nov 2012 18:23:26 -0000 Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by oproxy12.bluehost.com with SMTP; 15 Nov 2012 18:23:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuousgeek.org; s=default; h=Message-Id:Date:Subject:To:From; bh=v5aQdwaYSlcziBG4yhRgl61OUdbxh8Z5ay8xMW2+kc0=; b=rP82xB78WXxvgRNtgU6pWa9Fz6PUqKpkxRcu2OiEp8/7LaLQTpB8R1XGF3KCnRc7saK4iLbURHcIx1sqps01wCuWMUooKuRR1q7OQGA38MWblIUqKPCJXAKz/Pa0nL2n; Received: from [67.161.37.189] (port=55642 helo=jbarnes-desktop.intel.com) by box514.bluehost.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1TZ462-0003KO-Db for intel-gfx@lists.freedesktop.org; Thu, 15 Nov 2012 11:23:26 -0700 From: Jesse Barnes To: intel-gfx@lists.freedesktop.org Date: Thu, 15 Nov 2012 10:24:03 -0800 Message-Id: <1353003843-22947-1-git-send-email-jbarnes@virtuousgeek.org> X-Mailer: git-send-email 1.7.9.5 X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 67.161.37.189 authed with jbarnes@virtuousgeek.org} Subject: [Intel-gfx] [PATCH] drm/i915: reset GPU after clock gating init X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org This is needed for SNB at least after disabling CSunit clock gating, and shouldn't hurt on other platforms either. This fixes an issue on James's machine where RC6 wouldn't always get enabled. Tested-by: James Kukunas Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 6d8a5ed..2fccd8f 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -8718,6 +8718,7 @@ void intel_modeset_init_hw(struct drm_device *dev) intel_prepare_ddi(dev); intel_init_clock_gating(dev); + intel_gpu_reset(dev); mutex_lock(&dev->struct_mutex); intel_enable_gt_powersave(dev);