From patchwork Thu Apr 11 14:29:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 2429001 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 63AE93FD8C for ; Thu, 11 Apr 2013 14:32:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F047E6630 for ; Thu, 11 Apr 2013 07:32:59 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com [209.85.215.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 4049CE5FFC for ; Thu, 11 Apr 2013 07:30:53 -0700 (PDT) Received: by mail-ea0-f176.google.com with SMTP id h10so763838eaj.7 for ; Thu, 11 Apr 2013 07:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=s0pPKcgpsnfB5hyhgmiDA1rY4wHMsSKS/Jqak+bd4pE=; b=WSIqAK95UW7dgSEjmIwHXpWriOW6GLfypvORqraNho5TN6qUVm+qHHGbe/6tQpsr6j gqCeye5dXRTH3VVL7BJD12gzk4nGeHwDlgnvjCz+P9ejLMGe0LzVxhUnfm4tQxUljMDm XZxj7Bky7lt3Mor8uHZNztop9hGEOSVx2ZTog= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=s0pPKcgpsnfB5hyhgmiDA1rY4wHMsSKS/Jqak+bd4pE=; b=iEPAwUuVFRdGP9cBSZls1P3RV5f1RXsft0z0K4EHoYvr1tQCD3FQ8SYe6sWVKLcT5M EDuWGnXME60YPJtfuqEY2zpVYMs6H/JUkogJ+fPAbSHY+1EMG7Iuzj0NZbUV7H5ZeLCt /lF9mBHMnV/rAiVvsFoVWv+sA9akavy9Qt5Mwpy6GaZLgQLS5YoVgJSQG58+MkJ8DTCH ufsjo1zQJUw1P26ujYtl3AgjraMI8T/QyNGn+rwK+r02cgoqI6ZovCMqR8X8yFw03ksC E879lF88Ai/JRkBXMY0ndIGG26RBeXdMbDnItC1U5674jfM5iC7/EPUtJg+aR+8jAw6z DjlQ== X-Received: by 10.15.32.67 with SMTP id z43mr17673095eeu.24.1365690652363; Thu, 11 Apr 2013 07:30:52 -0700 (PDT) Received: from gina.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPS id a41sm5965845eei.4.2013.04.11.07.30.50 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Apr 2013 07:30:51 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Thu, 11 Apr 2013 16:29:08 +0200 Message-Id: <1365690550-5716-5-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1365690550-5716-1-git-send-email-daniel.vetter@ffwll.ch> References: <1365690550-5716-1-git-send-email-daniel.vetter@ffwll.ch> X-Gm-Message-State: ALoCoQkCdWF8/2do1ZYpGoBPtakTSn7udGRD2oQjEXD3HYYXOuRs7qoptCY8TJxrsowgqP/3lxMV Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH 5/7] drm/i915: drop redundant vblank waits 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 Just blows through 50ms for naught, since the pipe is off. Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/intel_display.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 4f9f846..e91e01c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -4632,8 +4632,6 @@ static int i9xx_crtc_mode_set(struct drm_crtc *crtc, i9xx_set_pipeconf(intel_crtc); - intel_wait_for_vblank(dev, pipe); - I915_WRITE(DSPCNTR(plane), dspcntr); POSTING_READ(DSPCNTR(plane)); @@ -5605,8 +5603,6 @@ static int ironlake_crtc_mode_set(struct drm_crtc *crtc, ironlake_set_pipeconf(crtc, adjusted_mode, dither); - intel_wait_for_vblank(dev, pipe); - /* Set up the display plane register */ I915_WRITE(DSPCNTR(plane), DISPPLANE_GAMMA_ENABLE); POSTING_READ(DSPCNTR(plane));