From patchwork Wed Nov 14 12:11:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1741101 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id E59DADF264 for ; Wed, 14 Nov 2012 12:12:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B27F9A0231 for ; Wed, 14 Nov 2012 04:12:01 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F9AA9E969 for ; Wed, 14 Nov 2012 04:11:49 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDH00EAS8JHB980@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 14 Nov 2012 21:11:48 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.42]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 06.85.12699.48A83A05; Wed, 14 Nov 2012 21:11:48 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-6f-50a38a84f9fe Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C5.85.12699.38A83A05; Wed, 14 Nov 2012 21:11:47 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.51.53]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDH005C58JN4210@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 14 Nov 2012 21:11:47 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: fix overlay updating issue Date: Wed, 14 Nov 2012 21:11:47 +0900 Message-id: <1352895107-16412-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t8zLd2WrsUBBg2L2SyufH3P5sDocb/7 OFMAYxSXTUpqTmZZapG+XQJXxsWdE9gKvrFXHNnziqWB8QJbFyMnh4SAicTsI1OZIGwxiQv3 1gPFuTiEBJYxSjxcfoUdpuj04T5WiMQiRom7x58xQzjrmSS+rF3ECFLFJqAqMXHFfbCxIgKm Eh2TlrKA2MwChRILe56C2cIC5hK3VoA0c3KwANV/v70VrJ5XwEVi6/y9jBDbFCQW3HvLBlEj IPFt8iGgXg6guKzEpgPMECVb2CQWf02HsCUlDq64wTKBUXABI8MqRtHUguSC4qT0XCO94sTc 4tK8dL3k/NxNjJCgkt7BuKrB4hCjAAejEg9vQP+iACHWxLLiytxDjBIczEoivG4liwOEeFMS K6tSi/Lji0pzUosPMfoAHTKRWUo0OR8Y8Hkl8YbGBsaGhpaGZqaWpgY4hJXEeZs9UgKEBNIT S1KzU1MLUotgxjFxcEo1MBYt1dZJ3Hf1zPdp/ybOkz7Pnp31t2LvOl2Vv0dZjG5zton3Zn1w +RCocecd9w7Dz/OfxC09fc5fbcVdmUkTJiV8e8/0JbOh6lpwUXBOjkSqSx1f1zvX7RvaokSK lkjuOSzh6Xki9i+P3tPb6mwaiTIN81iNlRkurX7dYyJ3vrwuX+DOsdsOUUosxRmJhlrMRcWJ AAci/tRXAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsVy+t9jAd3mrsUBBjO22Fhc+fqezYHR4373 caYAxqgGRpuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wc oLFKCmWJOaVAoYDE4mIlfTtME0JD3HQtYBojdH1DguB6jAzQQMI6xoyLOyewFXxjrziy5xVL A+MFti5GTg4JAROJ04f7WCFsMYkL99YDxbk4hAQWMUrcPf6MGcJZzyTxZe0iRpAqNgFViYkr 7oN1iwiYSnRMWsoCYjMLFEos7HkKZgsLmEvcWgHSzMnBAlT//fZWsHpeAReJrfP3MkJsU5BY cO8t2wRG7gWMDKsYRVMLkguKk9JzjfSKE3OLS/PS9ZLzczcxgoP2mfQOxlUNFocYBTgYlXh4 A/oXBQixJpYVV+YeYpTgYFYS4XUrWRwgxJuSWFmVWpQfX1Sak1p8iNEHaPtEZinR5HxgROWV xBsam5gZWRqZGZuYGxvjEFYS5232SAkQEkhPLEnNTk0tSC2CGcfEwSnVwMi9pX9e1v3QeRmz E6o4+K6JdNUZZ6QKaeZmrz37/LnG27eyqjMmt19TFmSLtrYxcTFJfhzDIG2RajQhe21c3x7J N9N2ltgzbf/+yT09fovt01LdA2lz2df8+tdnt1zlwNprF97IOpZzqSS2Oa9OLebWCe6yDPpi abwi8Gtcz7Lr6k/X3JR+qcRSnJFoqMVcVJwIAA7oHOWHAgAA X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org This patch fixes a issue that overlay data aren't applied to real hardware when dpms off goes to on after setcrtc was requested like below, dpms off -> setcrtc -> dpms off -> dpms on For this, it makes encoder's dpms to be updated when setcrtc is requested. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_encoder.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c index 241ad1e..d971c95 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c +++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c @@ -423,6 +423,8 @@ void exynos_drm_encoder_crtc_dpms(struct drm_encoder *encoder, void *data) if (!encoder->crtc) manager->pipe = -1; } + + exynos_encoder->dpms = mode; } void exynos_drm_encoder_crtc_pipe(struct drm_encoder *encoder, void *data)