From patchwork Wed Mar 15 14:41:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9625845 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 C0BD66048C for ; Wed, 15 Mar 2017 14:44:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B496A28624 for ; Wed, 15 Mar 2017 14:44:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9AC42862A; Wed, 15 Mar 2017 14:44:43 +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 CC0C928635 for ; Wed, 15 Mar 2017 14:44:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753463AbdCOOmS (ORCPT ); Wed, 15 Mar 2017 10:42:18 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:65240 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753891AbdCOOlU (ORCPT ); Wed, 15 Mar 2017 10:41:20 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMV00GXJ24TD950@mailout2.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 15 Mar 2017 14:41:17 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170315144117eucas1p257c639b12f687f09f2dde39ceafcf3ec~sFTEeCPJg1360913609eucas1p2Y; Wed, 15 Mar 2017 14:41:17 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id 9B.FC.16908.F8259C85; Wed, 15 Mar 2017 14:41:19 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170315144116eucas1p152c8b138c3635d9e9e2f1fff58cca15e~sFTDzS8_E0088800888eucas1p1L; Wed, 15 Mar 2017 14:41:16 +0000 (GMT) X-AuditID: cbfec7ef-f79d26d00000420c-34-58c9528f071b Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 05.63.10233.99259C85; Wed, 15 Mar 2017 14:41:29 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OMV00GPG24OBF60@eusync2.samsung.com>; Wed, 15 Mar 2017 14:41:16 +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 v3 08/10] drm/exynos/decon5433: kill DECON_UPDATE workaround Date: Wed, 15 Mar 2017 15:41:08 +0100 Message-id: <1489588870-7785-9-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1489588870-7785-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djPc7r9QScjDDonW1ncWneO1WLjjPWs Fle+vmezmHR/AovFm7drmCzO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YwNPFyMHh4SAicSUm2ZdjJxAppjEhXvr2boY uTiEBJYwSsw7/oUJwmlkkth97gEzSBWbgKbE38032UBsEQFliVX72tlBipgFNjBJ3O07yQqS EBbwkbi94R87iM0ioCrx5P1hsAZeASeJjk9fWCHWyUncPNcJNpRTwFli/bnZTCC2EFDNq+bD TBMYeRcwMqxiFEktLc5Nzy020itOzC0uzUvXS87P3cQIDOptx35u2cHY9S74EKMAB6MSD+8E 35MRQqyJZcWVuYcYJTiYlUR49wUChXhTEiurUovy44tKc1KLDzGaAh01kVlKNDkfGHF5JfGG JobmloZGxhYW5kZGSuK8Uz9cCRcSSE8sSc1OTS1ILYLpY+LglGpgbBdjm39OJWGZ7NnqxSXF Re2rLz/JssypWL3jaPatL1u5Vpw+xpxQmHBBv010lfiyI5lbbPr3BqheKxa8XPAu4tM1za8X ON33HnBaMHGxBY/AVWv1qOh5MRY3aqY5zzk6VensN23rYnPuwv8MxhmL1SYuqDK9nfo4fdmv P5aVTfsDQm3aqy8/VmIpzkg01GIuKk4EAHjTYPOAAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170315144116eucas1p152c8b138c3635d9e9e2f1fff58cca15e X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 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: 20170315144116eucas1p152c8b138c3635d9e9e2f1fff58cca15e X-RootMTR: 20170315144116eucas1p152c8b138c3635d9e9e2f1fff58cca15e References: <1489588870-7785-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 Since fixing CMU code (drm/exynos/decon5433: fix CMU programming) DECON started behave predictable and does not need special care during DECON_UPDATE writes. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index a91f46b..8a2cd4f 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -51,8 +51,7 @@ enum decon_flag_bits { BIT_CLKS_ENABLED, BIT_IRQS_ENABLED, BIT_WIN_UPDATED, - BIT_SUSPENDED, - BIT_REQUEST_UPDATE + BIT_SUSPENDED }; struct decon_context { @@ -399,7 +398,6 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, /* window enable */ decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, ~0); - set_bit(BIT_REQUEST_UPDATE, &ctx->flags); } static void decon_disable_plane(struct exynos_drm_crtc *crtc, @@ -412,7 +410,6 @@ static void decon_disable_plane(struct exynos_drm_crtc *crtc, return; decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, 0); - set_bit(BIT_REQUEST_UPDATE, &ctx->flags); } static void decon_atomic_flush(struct exynos_drm_crtc *crtc) @@ -429,8 +426,7 @@ static void decon_atomic_flush(struct exynos_drm_crtc *crtc) for (i = ctx->first_win; i < WINDOWS_NR; i++) decon_shadow_protect_win(ctx, i, false); - if (test_and_clear_bit(BIT_REQUEST_UPDATE, &ctx->flags)) - decon_set_bits(ctx, DECON_UPDATE, STANDALONE_UPDATE_F, ~0); + decon_set_bits(ctx, DECON_UPDATE, STANDALONE_UPDATE_F, ~0); if (ctx->out_type & IFTYPE_I80) set_bit(BIT_WIN_UPDATED, &ctx->flags);