From patchwork Mon Nov 30 13:53:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 57450 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1486161lbb; Mon, 30 Nov 2015 05:53:53 -0800 (PST) X-Received: by 10.98.70.138 with SMTP id o10mr71384809pfi.17.1448891630092; Mon, 30 Nov 2015 05:53:50 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id 85si2895485pfl.178.2015.11.30.05.53.49; Mon, 30 Nov 2015 05:53:50 -0800 (PST) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D5266E5AC; Mon, 30 Nov 2015 05:53:48 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id F3E996E5AD for ; Mon, 30 Nov 2015 05:53:47 -0800 (PST) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NYM009RXRXMABB0@mailout2.w1.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 30 Nov 2015 13:53:46 +0000 (GMT) X-AuditID: cbfec7f5-f79b16d000005389-c3-565c54eadc24 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 45.68.21385.AE45C565; Mon, 30 Nov 2015 13:53:46 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NYM007NRRXFE700@eusync2.samsung.com>; Mon, 30 Nov 2015 13:53:46 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 05/22] drm/exynos: exynos7-decon: remove excessive check Date: Mon, 30 Nov 2015 14:53:20 +0100 Message-id: <1448891617-18830-6-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1448891617-18830-1-git-send-email-m.szyprowski@samsung.com> References: <1448891617-18830-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJLMWRmVeSWpSXmKPExsVy+t/xK7qvQmLCDH606FvcWneO1WLjjPWs Fle+vmez2PlgF7vFpPsTWCzevF3DZPHi3kUWi9cvDC1mnN/HZLH2yF12ixmTX7JZtK3+wGqx atcfRgdej52z7rJ73O8+zuTx7xi7x5Z+IG/npL1MHn1bVjF6fN4kF8AexWWTkpqTWZZapG+X wJXR8vk0c8Eknoolk+YzNjDO4epi5OCQEDCROLhYtouRE8gUk7hwbz1bFyMXh5DAUkaJg1c/ M0E4TUwSf1fdZAOpYhMwlOh62wVmiwi4STQdnskKYjMLHGaWODy1DsQWFvCWWLO5iRHEZhFQ lVh/dApYDa+Ah8STvV+YILbJSfx/uQLM5hTwlHhy9jQ7iC0EVLNhxjGmCYy8CxgZVjGKppYm FxQnpeca6RUn5haX5qXrJefnbmKEBOjXHYxLj1kdYhTgYFTi4ZUwiw4TYk0sK67MPcQowcGs JMIbaBoTJsSbklhZlVqUH19UmpNafIhRmoNFSZx35q73IUIC6YklqdmpqQWpRTBZJg5OqQbG 6wfWxkrusXUx3z3BJLV6x4qEnpP8t8LNKuSPnOj7uFk6s7Q+50tW/AOz2bfO6E0znuPjK/O0 JEhQaZUHr/TZAgUj8dssa34UKxsYnnS/7K1wXMM0/f/X5MnbTi1N/6f2LetB6tYE3SeG/MyP TX/OPd64dN88VYMZAfIzj3IfvvTrxkXld0nVSizFGYmGWsxFxYkAJ5rdz0wCAAA= Cc: Javier Martinez Canillas , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Andrzej Hajda , Tobias Jakobi , Marek Szyprowski X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display area is already checked by exynos plane core, so there is no need for such check in driver code. Signed-off-by: Marek Szyprowski Reviewed-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos7_drm_decon.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c index 38d7762ebdcb..4db04f244c17 100644 --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c @@ -394,7 +394,6 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, struct exynos_drm_plane *plane) { struct decon_context *ctx = crtc->ctx; - struct drm_display_mode *mode = &crtc->base.state->adjusted_mode; struct drm_plane_state *state = plane->base.state; int padding; unsigned long val, alpha; @@ -436,15 +435,6 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, DRM_DEBUG_KMS("ovl_width = %d, ovl_height = %d\n", plane->crtc_w, plane->crtc_h); - /* - * OSD position. - * In case the window layout goes of LCD layout, DECON fails. - */ - if ((plane->crtc_x + plane->crtc_w) > mode->hdisplay) - plane->crtc_x = mode->hdisplay - plane->crtc_w; - if ((plane->crtc_y + plane->crtc_h) > mode->vdisplay) - plane->crtc_y = mode->vdisplay - plane->crtc_h; - val = VIDOSDxA_TOPLEFT_X(plane->crtc_x) | VIDOSDxA_TOPLEFT_Y(plane->crtc_y); writel(val, ctx->regs + VIDOSD_A(win));