From patchwork Wed Mar 8 14:58:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9611485 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 B5128604DD for ; Wed, 8 Mar 2017 16:15:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4EA028613 for ; Wed, 8 Mar 2017 16:15:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C83A32861A; Wed, 8 Mar 2017 16:15:24 +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 18B8C28613 for ; Wed, 8 Mar 2017 16:15:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbdCHQOj (ORCPT ); Wed, 8 Mar 2017 11:14:39 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:63089 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbdCHQOf (ORCPT ); Wed, 8 Mar 2017 11:14:35 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMI007UA4AHV690@mailout3.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 08 Mar 2017 14:59:05 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170308145904eucas1p24db2cd6403e34a618d4d182b6bafd64f~p8Bl91G7X0049700497eucas1p2Q; Wed, 8 Mar 2017 14:59:04 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 71.CB.30614.73C10C85; Wed, 8 Mar 2017 14:59:03 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170308145903eucas1p27b43f06a1c172d33d7143df9f10ce1b0~p8BlLQPWy2371623716eucas1p2b; Wed, 8 Mar 2017 14:59:03 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-5e-58c01c37b9b6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D6.F4.06687.79C10C85; Wed, 8 Mar 2017 15:00:39 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OMI0059P4AC5T30@eusync3.samsung.com>; Wed, 08 Mar 2017 14:59:03 +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 v2 06/12] drm/exynos/fimd: signal frame done interrupt at front porch Date: Wed, 08 Mar 2017 15:58:40 +0100 Message-id: <1488985126-25288-7-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1488985126-25288-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsWy7djPc7rmMgciDGZ2GVjcWneO1WLjjPWs Fle+vmezmHR/AovFm7drm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sYOTkkBEwkDq1sZoewxSQu3FvP1sXI xSEksIRR4ur398wQTiOTxIL/P1hAqtgENCX+br7JBmKLCChLrNrXzg5SxCywgUnibt9JsLHC AuESV4/dAhvLIqAq8fHaBiYQm1fAWeLztassEOvkJG6e62QGsTkFXCT6Pk4GsjmAtjlLLO3X mcDIu4CRYRWjSGppcW56brGhXnFibnFpXrpecn7uJkZgWG879nPzDsZLG4MPMQpwMCrx8AoI H4gQYk0sK67MPcQowcGsJMJ74ev+CCHelMTKqtSi/Pii0pzU4kOMpkA3TWSWEk3OB8ZcXkm8 oYmhuaWhkbGFhbmRkZI4b8mHK+FCAumJJanZqakFqUUwfUwcnFINjBMzj3DEP1COXtq0YL/h 4Xdrc/ZPiO6Lvn5tSiWfz1XvwpigSSrmBh6XlbvCZuZXnXk9a07M99Rnv9eI353TL2V0zjD4 3mQr2a0tm6aIR7XbtP7P9N4iNOPA5iSB31eWnTOOm/l0niv7mtcu07O/7a6UD1i44Ka6Ju+y tjm929eIhup5sa9lrFdiKc5INNRiLipOBABpzBLEgQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170308145903eucas1p27b43f06a1c172d33d7143df9f10ce1b0 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: 20170308145903eucas1p27b43f06a1c172d33d7143df9f10ce1b0 X-RootMTR: 20170308145903eucas1p27b43f06a1c172d33d7143df9f10ce1b0 References: <1488985126-25288-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 69ebed0..eb4cd82 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -257,7 +257,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; }