From patchwork Tue Mar 14 08:27:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9622725 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 66C0060522 for ; Tue, 14 Mar 2017 08:28:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5428A284DC for ; Tue, 14 Mar 2017 08:28:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 491522850F; Tue, 14 Mar 2017 08:28:20 +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 E80F1284DC for ; Tue, 14 Mar 2017 08:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750824AbdCNI2T (ORCPT ); Tue, 14 Mar 2017 04:28:19 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57250 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbdCNI2Q (ORCPT ); Tue, 14 Mar 2017 04:28:16 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMS00GSIQ71ZK50@mailout2.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 20170314082812eucas1p1fc9146accfd7231a3a444ceb6b021a46~rskCeYSu32693926939eucas1p12; Tue, 14 Mar 2017 08:28:12 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id AC.5C.16908.E99A7C85; Tue, 14 Mar 2017 08:28:14 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170314082811eucas1p1094922f9c35cf3ceeefa7d52d3a7259b~rskBrLaJ01238012380eucas1p1v; Tue, 14 Mar 2017 08:28:11 +0000 (GMT) X-AuditID: cbfec7ef-f79d26d00000420c-30-58c7a99e27f3 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 70.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 3/5] drm/exynos/decon5433: signal frame done interrupt at front porch Date: Tue, 14 Mar 2017 09:27:58 +0100 Message-id: <1489480080-25633-4-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+NgFjrHIsWRmVeSWpSXmKPExsWy7djPc7rzVh6PMHj70NTi1rpzrBYbZ6xn tbjy9T2bxaT7E1gs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KXbH26GPWBsY/nF2MnBwSAiYSbw7cYYewxSQu3FvP1sXI xSEksIRR4uGrz1BOI5PE4V2bGUGq2AQ0Jf5uvskGYosIKEus2tfODlLELLCBSeJu30lWkISw QLjEybOrwcayCKhKzO96yAxi8wo4SyyZ+4AFYp2cxM1znUBxDg5OAReJP6cVQMJCQCX7bk1m m8DIu4CRYRWjSGppcW56brGhXnFibnFpXrpecn7uJkZgWG879nPzDsZLG4MPMQpwMCrx8N6Y dyxCiDWxrLgy9xCjBAezkgjvtqbjEUK8KYmVValF+fFFpTmpxYcYTYFumsgsJZqcD4y5vJJ4 QxNDc0tDI2MLC3MjIyVx3pIPV8KFBNITS1KzU1MLUotg+pg4OKUaGDtz2yYbxYn0BXfonAz+ LfDxhsrF/2ujrXRTjTj8Vx1qEpQXSapcEGz+NvOR8POogviaJ9Vtmkc9p2/1clmjnsgTJ28T meBSPEPRU9X78EwXwa2851N0Jp6T8F81O3H/tTczRQ6vPzdzvk3grktTLuT1nXzdapoTqijV UxxibrifZ5dRtHqqEktxRqKhFnNRcSIAFuizPYECAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170314082811eucas1p1094922f9c35cf3ceeefa7d52d3a7259b 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: 20170314082811eucas1p1094922f9c35cf3ceeefa7d52d3a7259b X-RootMTR: 20170314082811eucas1p1094922f9c35cf3ceeefa7d52d3a7259b 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 DECON in case of video mode generates interrupt by default at start of vertical back porch. As this interrupt is used to generate VBLANK events more optimal point is start of vertical front porch. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 2 +- include/video/exynos5433_decon.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index cfe6f8a..a43d0fa 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -105,7 +105,7 @@ static int decon_enable_vblank(struct exynos_drm_crtc *crtc) if (ctx->out_type & IFTYPE_I80) val |= VIDINTCON0_FRAMEDONE; else - val |= VIDINTCON0_INTFRMEN; + val |= VIDINTCON0_INTFRMEN | VIDINTCON0_FRAMESEL_FP; writel(val, ctx->addr + DECON_VIDINTCON0); } diff --git a/include/video/exynos5433_decon.h b/include/video/exynos5433_decon.h index 352fc0d..6b083d3 100644 --- a/include/video/exynos5433_decon.h +++ b/include/video/exynos5433_decon.h @@ -127,6 +127,10 @@ /* VIDINTCON0 */ #define VIDINTCON0_FRAMEDONE (1 << 17) +#define VIDINTCON0_FRAMESEL_BP (0 << 15) +#define VIDINTCON0_FRAMESEL_VS (1 << 15) +#define VIDINTCON0_FRAMESEL_AC (2 << 15) +#define VIDINTCON0_FRAMESEL_FP (3 << 15) #define VIDINTCON0_INTFRMEN (1 << 12) #define VIDINTCON0_INTEN (1 << 0)