From patchwork Wed Jun 18 11:34:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 4375581 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A9E8EBEEAA for ; Wed, 18 Jun 2014 11:39:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0715A202AE for ; Wed, 18 Jun 2014 11:38:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C3CE22034E for ; Wed, 18 Jun 2014 11:38:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966280AbaFRLi4 (ORCPT ); Wed, 18 Jun 2014 07:38:56 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:25307 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966279AbaFRLiy (ORCPT ); Wed, 18 Jun 2014 07:38:54 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7D00J7O4CTRT00@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 18 Jun 2014 20:38:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id EA.B4.24374.D4A71A35; Wed, 18 Jun 2014 20:38:53 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-6a-53a17a4d5bec Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 2B.31.08203.D4A71A35; Wed, 18 Jun 2014 20:38:53 +0900 (KST) Received: from localhost.localdomain ([107.108.83.245]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7D00KA047K8A70@mmp1.samsung.com>; Wed, 18 Jun 2014 20:38:52 +0900 (KST) From: Rahul Sharma To: dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com, kgene.kim@samsung.com, joshi@samsung.com, r.sh.open@gmail.com, Rahul Sharma Subject: [PATCH 5/5] drm/exynos: enable vsync interrupt while waiting for vblank Date: Wed, 18 Jun 2014 17:04:53 +0530 Message-id: <1403091293-15058-6-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1403091293-15058-1-git-send-email-rahul.sharma@samsung.com> References: <1403091293-15058-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsWyRsSkVte3amGwwZO/fBZXvr5ns5h0fwKL xfddX9gtehdcZbOYcX4fk8XCF/EWUxYdZnVg99g56y67x/3u40wefVtWMXp83iQXwBLFZZOS mpNZllqkb5fAlTH9hk7BG46KN8emMTYwHmTvYuTkkBAwkfi86hqULSZx4d56ti5GLg4hgaWM EveeX2KBKbrVPo8NxBYSWMQosWp1DERRO5PEtb7fYEVsAroSsw8+YwSxRQSUJf5OXMUIUsQs sJxR4uXmFrBuYYEAicknNoGtYxFQlVg1YzlYM6+Ah8TLi1+BbA6gbQoScybZgIQ5BTwlZj+5 zgyx2EPi/fyJLCAzJQQms0v8/vieBWKOgMS3yYegemUlNh1ghjhaUuLgihssExiFFzAyrGIU TS1ILihOSi8y1CtOzC0uzUvXS87P3cQIDOzT/5717mC8fcD6EGMy0LiJzFKiyfnAyMgriTc0 NjOyMDUxNTYytzQjTVhJnDfpYVKQkEB6Yklqdm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6upe8vJNapK7EUZyQaajEXFScCAN9dqHPfAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 mixer_wait_for_vblank function expects that the upcoming vsync interrupt handler routine will clear the wait_vsync_event atomic variable. For this to happen, interrupts should be enabled and disabled properly. Signed-off-by: Rahul Sharma --- drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 6f18581..7927f2e 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -1019,6 +1019,8 @@ static void mixer_wait_for_vblank(struct exynos_drm_manager *mgr) } mutex_unlock(&mixer_ctx->mixer_mutex); + mixer_enable_vblank(mgr); + atomic_set(&mixer_ctx->wait_vsync_event, 1); /* @@ -1029,6 +1031,8 @@ static void mixer_wait_for_vblank(struct exynos_drm_manager *mgr) !atomic_read(&mixer_ctx->wait_vsync_event), HZ/20)) DRM_DEBUG_KMS("vblank wait timed out.\n"); + + mixer_disable_vblank(mgr); } static void mixer_window_suspend(struct exynos_drm_manager *mgr)