From patchwork Thu Mar 12 14:10:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyungwon Hwang X-Patchwork-Id: 5995331 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A38BB9F399 for ; Thu, 12 Mar 2015 14:10:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF89820397 for ; Thu, 12 Mar 2015 14:10:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 009C020381 for ; Thu, 12 Mar 2015 14:10:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 610FC6E9A8; Thu, 12 Mar 2015 07:10:48 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 90E906E9A8 for ; Thu, 12 Mar 2015 07:10:46 -0700 (PDT) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NL300262RDXZID0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 12 Mar 2015 23:10:45 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 61.43.18484.56E91055; Thu, 12 Mar 2015 23:10:45 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-92-55019e654e1d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C1.FB.20081.56E91055; Thu, 12 Mar 2015 23:10:45 +0900 (KST) Received: from localhost.localdomain ([10.252.82.145]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NL30040KRDUMS90@mmp2.samsung.com>; Thu, 12 Mar 2015 23:10:45 +0900 (KST) From: Hyungwon Hwang To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: fix the number of overlay planes Date: Thu, 12 Mar 2015 23:10:41 +0900 Message-id: <1426169441-4119-1-git-send-email-human.hwang@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsWyRsSkUDd1HmOoQfN2DYsrX9+zWSyd0cdq Men+BBaLF/cusljMmPySzYHV4373cSaPvi2rGAOYorhsUlJzMstSi/TtErgyHl72LNjJVtH8 +wl7A+Nq1i5GTg4JAROJox/XsEDYYhIX7q1n62Lk4hASWMoosf3uNCaYoue3PjJDJKYzSuzc MIMVwmljktj3rYMdpIpNQE9iwbUfYLaIgLLE34mrGEFsZoFSiTvzFzOD2MICthItR98ATeXg YBFQlWi6rwgS5hVwk3hx5g8bxDI5iZPHJoPNlxC4zybxfv0JsPNYBAQkvk0+xALSKyEgK7Hp ADNEvaTEwRU3WCYwCi5gZFjFKJpakFxQnJReZKxXnJhbXJqXrpecn7uJERiEp/8969/BePeA 9SFGAQ5GJR7eC98ZQoVYE8uKK3MPMZoCbZjILCWanA8M9bySeENjMyMLUxNTYyNzSzMlcd6F Uj+DhQTSE0tSs1NTC1KL4otKc1KLDzEycXBKNTA2Fh3dkN5hL7FtW6HtF8Fvch5hBXqrrt9l nct1Me1xdtsu9Q/r5JssJp2bsLBI/460admC3ohMTSGR9+qHZieJuCUL7fZu5FmQypDBX3Sx s50p1efNOz9FdyWV8rKJWqET9NJ+vVwo8EmDu3/dAYfvkwwzLMLCZh/NezarKvPUZIcnPxrd Y5RYijMSDbWYi4oTAejMCEg9AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsVy+t9jQd3UeYyhBvOWKVhc+fqezWLpjD5W i0n3J7BYvLh3kcVixuSXbA6sHve7jzN59G1ZxRjAFNXAaJORmpiSWqSQmpecn5KZl26r5B0c 7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkDtE9JoSwxpxQoFJBYXKykb4dpQmiIm64FTGOE rm9IEFyPkQEaSFjDmPHwsmfBTraK5t9P2BsYV7N2MXJySAiYSDy/9ZEZwhaTuHBvPVsXIxeH kMB0RomdG2awQjhtTBL7vnWwg1SxCehJLLj2A8wWEVCW+DtxFSOIzSxQKnFn/mKwScICthIt R98wdTFycLAIqEo03VcECfMKuEm8OPOHDWKZnMTJY5NZJzByL2BkWMUomlqQXFCclJ5rqFec mFtcmpeul5yfu4kRHOLPpHYwrmywOMQowMGoxMNb8ZUhVIg1say4MvcQowQHs5IIb2k7Y6gQ b0piZVVqUX58UWlOavEhRlOg5ROZpUST84Hxl1cSb2hsYmZkaWRuaGFkbK4kzqtk3xYiJJCe WJKanZpakFoE08fEwSnVwNi/X3zT6uzrkTf4X35aa1j+fKX1r0g5ZV3Hc1vONx6YrF7bJyV/ 0PJ8/mL/bbWhf2UKJpiFvX/oFrntkOf3+FW9n3/XeLz5H31Mg3O/YRX7vexf87Y8C9UTe1gq vFivX/fkGe09Wv9WiX60TDOJWF8kzjO/4VnOEuZ2Q2td75X3/WVcH7+aEa3EUpyRaKjFXFSc CADW5JBYhwIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: sw0312.kim@samsung.com, Hyungwon Hwang 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" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The number of overlay planes is one less than the maximum number of planes, because the one is used for primary plane. Signed-off-by: Hyungwon Hwang --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 90168d7..98a239a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -81,7 +81,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) exynos_drm_mode_config_init(dev); - for (nr = 0; nr < MAX_PLANE; nr++) { + for (nr = 0; nr < MAX_PLANE - 1; nr++) { struct drm_plane *plane; unsigned long possible_crtcs = (1 << MAX_CRTC) - 1;