From patchwork Fri Nov 14 02:36:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonyoung Shim X-Patchwork-Id: 5302701 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 0EEA39F8B3 for ; Fri, 14 Nov 2014 02:36:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 46F51201F4 for ; Fri, 14 Nov 2014 02:36:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF5A4201C7 for ; Fri, 14 Nov 2014 02:36:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934582AbaKNCgM (ORCPT ); Thu, 13 Nov 2014 21:36:12 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:60774 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934664AbaKNCgL (ORCPT ); Thu, 13 Nov 2014 21:36:11 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NF0006N3CKA0670@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 14 Nov 2014 11:36:10 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id B1.FC.11124.49A65645; Fri, 14 Nov 2014 11:36:04 +0900 (KST) X-AuditID: cbfee68e-f79b46d000002b74-95-54656a94a7c5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F2.FD.20081.49A65645; Fri, 14 Nov 2014 11:36:04 +0900 (KST) Received: from localhost.localdomain ([10.88.100.151]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NF0001L7CK3RZ30@mmp2.samsung.com>; Fri, 14 Nov 2014 11:36:04 +0900 (KST) From: Joonyoung Shim To: dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com, sw0312.kim@samsung.com, yj44.cho@samsung.com Subject: [PATCH 2/2] drm/exynos: use irq_flags instead of triggering Date: Fri, 14 Nov 2014 11:36:04 +0900 Message-id: <1415932564-16463-3-git-send-email-jy0922.shim@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1415932564-16463-1-git-send-email-jy0922.shim@samsung.com> References: <1415932564-16463-1-git-send-email-jy0922.shim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWyRsSkQHdKVmqIwb97KhZXvr5ns5h0fwKL xYzz+5gsZkx+yWaxd+dkRgdWj/vdx5k8+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK+PwnWNM BU3sFT9+CjYw/mftYuTkkBAwkXh8/gMbhC0mceHeeiCbi0NIYCmjxP95S+CKvr4/zgSRmM4o 8fp+PzOE08YksWj/CmaQKjYBPYk720CqODlEBJQl/k5cxQhiMwtkS2zcuQpskrCAi8Stz/PY uxg5OFgEVCU6/3ODhHkF3CVOn9sHtUxO4uSxyWA2p4CHxLL1F9lBbCGgmuZHu9hB9koIfGeT WL7xMgtIgkVAQOLb5EMsIDMlBGQlNh1ghpgjKXFwxQ2WCYzCCxgZVjGKphYkFxQnpRcZ6RUn 5haX5qXrJefnbmIEBu/pf8/6djDePGB9iFGAg1GJh5fBLTVEiDWxrLgy9xCjKdCGicxSosn5 wBjJK4k3NDYzsjA1MTU2Mrc0UxLnTZD6GSwkkJ5Ykpqdmlq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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=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The drm_handle_vblank should be called whenever be vsync, te interrupt means vsync on i80 interface. Signed-off-by: Joonyoung Shim --- Based on lastest exynos-drm-next branch and patch of Youngjun Cho ("drm/exynos: fimd: move handle vblank position in TE handler"). drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 033b18b..5cc57f7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -984,7 +984,7 @@ static void fimd_te_handler(struct exynos_drm_manager *mgr) wake_up(&ctx->wait_vsync_queue); } - if (!atomic_read(&ctx->triggering)) + if (test_bit(0, &ctx->irq_flags)) drm_handle_vblank(ctx->drm_dev, ctx->pipe); }