From patchwork Tue Mar 14 08:27:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9622721 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 04CA060424 for ; Tue, 14 Mar 2017 08:28:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E667D2837F for ; Tue, 14 Mar 2017 08:28:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB4BF284CF; Tue, 14 Mar 2017 08:28:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82C5F2837F for ; Tue, 14 Mar 2017 08:28:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751147AbdCNI2S (ORCPT ); Tue, 14 Mar 2017 04:28:18 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:61000 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbdCNI2Q (ORCPT ); Tue, 14 Mar 2017 04:28:16 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMS00FRYQ71E250@mailout4.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 14 Mar 2017 08:28:13 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170314082812eucas1p1ef2091bac64e2032b9f80659f544a784~rskCqBnrx2693926939eucas1p14; Tue, 14 Mar 2017 08:28:12 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1.samsung.com (EUCPMTA) with SMTP id 3D.5C.16908.F99A7C85; Tue, 14 Mar 2017 08:28:15 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170314082811eucas1p1c5d00e38d863a54d8fb2585ffde8fa7b~rskCEIHD_2693926939eucas1p11; Tue, 14 Mar 2017 08:28:11 +0000 (GMT) X-AuditID: cbfec7ef-f79d26d00000420c-31-58c7a99fbc5e Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 21.07.06687.00AA7C85; Tue, 14 Mar 2017 08:29:52 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OMS00G2GQ6XHC40@eusync1.samsung.com>; Tue, 14 Mar 2017 08:28:11 +0000 (GMT) From: Andrzej Hajda To: Inki Dae Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , Javier Martinez Canillas Subject: [PATCH 4/5] drm/exynos/fimd: signal frame done interrupt at front porch Date: Tue, 14 Mar 2017 09:27:59 +0100 Message-id: <1489480080-25633-5-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1489480080-25633-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djP87rzVx6PMDg0h8Xi1rpzrBYbZ6xn tbjy9T2bxaT7E1g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5GDg4JAROJo+vcuhg5gUwxiQv31rN1 MXJxCAksYZTYuuYXK4TTyCRxeNdmRpAqNgFNib+bb7KB2CICyhKr9rWzgxQxC2xgkrjbd5IV JCEsECCx4NwUFhCbRUBV4ui5n+wgNq+As0Tj8YdMEOvkJG6e62QGuYJTwEXiz2kFkLAQUMm+ W5PZJjDyLmBkWMUoklpanJueW2yoV5yYW1yal66XnJ+7iREY1NuO/dy8g/HSxuBDjAIcjEo8 vDfmHYsQYk0sK67MPcQowcGsJMK7rel4hBBvSmJlVWpRfnxRaU5q8SFGU6CbJjJLiSbnAyMu ryTe0MTQ3NLQyNjCwtzISEmct+TDlXAhgfTEktTs1NSC1CKYPiYOTqkGRv6y5PsHZwUk8VeI Z2ecSFaRn2IcH3xYpnTpip2Tp84Wc1rmVmqUfmxu43zH06F1kgpbdkceuVPBuvNrU1rnkbjK v4L9mr+Ligubd1u0X3jjyx3ntNj/maPmbvlu0Rlv/2g8rzq19fkxZ3O/h1vzXsVl/8n31z6y v+XaEpl9pWfnzV34p2dluBJLcUaioRZzUXEiAJi8v5OAAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170314082811eucas1p1c5d00e38d863a54d8fb2585ffde8fa7b X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170314082811eucas1p1c5d00e38d863a54d8fb2585ffde8fa7b X-RootMTR: 20170314082811eucas1p1c5d00e38d863a54d8fb2585ffde8fa7b References: <1489480080-25633-1-git-send-email-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP VBLANK interrupt should be signalled as soon as scanout ends, front porch is the best moment. Signed-off-by: Andrzej Hajda --- 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 a3162a4..3f04d72 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -243,7 +243,7 @@ static int fimd_enable_vblank(struct exynos_drm_crtc *crtc) val |= VIDINTCON0_INT_FRAME; val &= ~VIDINTCON0_FRAMESEL0_MASK; - val |= VIDINTCON0_FRAMESEL0_VSYNC; + val |= VIDINTCON0_FRAMESEL0_FRONTPORCH; val &= ~VIDINTCON0_FRAMESEL1_MASK; val |= VIDINTCON0_FRAMESEL1_NONE; }