From patchwork Wed Mar 8 14:58:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9611417 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 6913760414 for ; Wed, 8 Mar 2017 15:13:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EEDC27DA4 for ; Wed, 8 Mar 2017 15:13:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13DAD285C4; Wed, 8 Mar 2017 15:13:17 +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 9B3F927DA4 for ; Wed, 8 Mar 2017 15:13:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751332AbdCHPNP (ORCPT ); Wed, 8 Mar 2017 10:13:15 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:65274 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbdCHPMp (ORCPT ); Wed, 8 Mar 2017 10:12:45 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMI008T94AG8T90@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 08 Mar 2017 14:59:04 +0000 (GMT) Received: from eusmges4.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170308145903eucas1p18e329c9923c32dbcc4d1e1f3b1b07efe~p8BlctcoF0819608196eucas1p1F; Wed, 8 Mar 2017 14:59:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges4.samsung.com (EUCPMTA) with SMTP id 3D.0E.28517.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 20170308145902eucas1p2ef76c359292764dfe2a04312a1ee8dfb~p8Bky-01Z2371523715eucas1p24; Wed, 8 Mar 2017 14:59:02 +0000 (GMT) X-AuditID: cbfec7f4-f79716d000006f65-f3-58c01c370c09 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 46.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:02 +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 05/12] drm/exynos/decon5433: signal frame done interrupt at front porch Date: Wed, 08 Mar 2017 15:58:39 +0100 Message-id: <1488985126-25288-6-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+NgFrrAIsWRmVeSWpSXmKPExsWy7djP87rmMgciDH4cEbS4te4cq8XGGetZ La58fc9mMen+BBa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jKXXFt+haWBsY/nF2MnBwSAiYS3x5NY4ewxSQu3FvP1sXI xSEksIRRYueD16wQTiOTxIZbl1lBqtgENCX+br7JBmKLCChLrNrXzg5SxCywgUnibt9JsCJh gRiJhlcHwWwWAVWJDVcOM4PYvALOEsv23YBaJydx81wnWJxTwEWi7+NkIJsDaJuzxNJ+nQmM vAsYGVYxiqSWFuem5xYb6hUn5haX5qXrJefnbmIEhvW2Yz8372C8tDH4EKMAB6MSD6+A8IEI IdbEsuLK3EOMEhzMSiK8F77ujxDiTUmsrEotyo8vKs1JLT7EaAp000RmKdHkfGDM5ZXEG5oY mlsaGhlbWJgbGSmJ85Z8uBIuJJCeWJKanZpakFoE08fEwSnVwOi57t6tEkZ3rcmPp9Qfktk4 pbFdNeDps2yZi0umdk7cxf9BL+xg9Y4pOuwPz7hNTPTRKsu/mnLPy7sgJStuzuc40y8fv/Qv ufTn+64YhiOXrt6J/dl6Qm25x8og/cS5FTfX3nvuUxwt+v775qyDLqK+gncdnG5OT5x9In1V 19udP8wfRP9w2sCqxFKckWioxVxUnAgAEP7CaYECAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170308145902eucas1p2ef76c359292764dfe2a04312a1ee8dfb 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: 20170308145902eucas1p2ef76c359292764dfe2a04312a1ee8dfb X-RootMTR: 20170308145902eucas1p2ef76c359292764dfe2a04312a1ee8dfb 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 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 60ff81b..319f557 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)