From patchwork Tue Dec 16 16:53:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 5502081 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6150D9F1D4 for ; Tue, 16 Dec 2014 16:53:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 879C220A24 for ; Tue, 16 Dec 2014 16:53:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DA5320A1E for ; Tue, 16 Dec 2014 16:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162AbaLPQxt (ORCPT ); Tue, 16 Dec 2014 11:53:49 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:64197 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbaLPQxt (ORCPT ); Tue, 16 Dec 2014 11:53:49 -0500 Received: by mail-pa0-f51.google.com with SMTP id ey11so14493789pad.38 for ; Tue, 16 Dec 2014 08:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bgy/w/CIOmgNfjGSEaQ3h7gHKhtqMj/z1U8iImEJ31Q=; b=dmCprODrWmTMyFe5xROhblkh2YatnKtuqwqpBhbugpHyKtSDeqxuYOlCihunG5lrh1 vIfL55mSg1erZyLHwyUrxgbU2/HVHOjJSmhXl5SPpdk/+TnvMqDZmSH76daPWkzahm9M PQTMzl/IPZPiloxJAWoRNupqVCtmjdQLrJGe/siqmhRDVz4jZX2HU/uAVpY2MZ9fU9N3 agcQ0Ueu4PZLnshJmnupaml3tL3aiX9X5l8k9Uynp081Kzd+IlEDxN70RE03iDMJFkN8 7ph5LgGrzOay99hQg5n7Bz3BCutGJy6nsamTymDeGk6dnSMB3kYbjr338fDG1uFeWnaQ SjFw== X-Received: by 10.66.159.164 with SMTP id xd4mr63114299pab.54.1418748828785; Tue, 16 Dec 2014 08:53:48 -0800 (PST) Received: from localhost ([216.228.120.20]) by mx.google.com with ESMTPSA id y7sm1515027pdm.12.2014.12.16.08.53.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Dec 2014 08:53:48 -0800 (PST) From: Thierry Reding To: dri-devel@lists.freedesktop.org Cc: Daniel Vetter , Inki Dae , Philipp Zabel , Gerd Hoffmann , Mark Yao , Benjamin Gaignard , linux-samsung-soc@vger.kernel.org, Joonyoung Shim , Seung-Woo Kim , Kyungmin Park Subject: [PATCH 03/13] drm/exynos: Store correct CRTC index in events Date: Tue, 16 Dec 2014 17:53:25 +0100 Message-Id: <1418748815-15434-3-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1418748815-15434-1-git-send-email-thierry.reding@gmail.com> References: <1418748815-15434-1-git-send-email-thierry.reding@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding A negative pipe causes a special case to be triggered for drivers that don't have proper VBLANK support. Exynos does support VBLANKs, so there is no need for the fallback code. Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Signed-off-by: Thierry Reding --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index 7615bb1b76de..f20fa537945c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -537,7 +537,7 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe) continue; list_del(&e->base.link); - drm_send_vblank_event(dev, -1, e); + drm_send_vblank_event(dev, pipe, e); drm_vblank_put(dev, pipe); atomic_set(&exynos_crtc->pending_flip, 0); wake_up(&exynos_crtc->pending_flip_queue);