From patchwork Thu Dec 20 09:31:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eunchul Kim X-Patchwork-Id: 1899011 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 1F3DADF23A for ; Thu, 20 Dec 2012 09:38:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 18155E5F9B for ; Thu, 20 Dec 2012 01:38:18 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 13426E5CC7 for ; Thu, 20 Dec 2012 01:31:38 -0800 (PST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFB001CBP3OJCT0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 18:31:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.43]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B4.07.01231.FEAD2D05; Thu, 20 Dec 2012 18:31:27 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-bd-50d2daef0945 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 23.07.01231.FEAD2D05; Thu, 20 Dec 2012 18:31:27 +0900 (KST) Received: from localhost.localdomain ([10.90.54.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFB0040GP41LE10@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 18:31:27 +0900 (KST) From: Eunchul Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH 7/8] drm/exynos: fixed unnormal interrupt in m2m operation. Date: Thu, 20 Dec 2012 18:31:34 +0900 Message-id: <1355995895-16355-8-git-send-email-chulspro.kim@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1355995895-16355-1-git-send-email-chulspro.kim@samsung.com> References: <1355995895-16355-1-git-send-email-chulspro.kim@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsVy+t8zbd33ty4FGPz5rGVx5et7NgdGj/vd x5kCGKO4bFJSczLLUov07RK4MmbdWM1SsJe74v66T4wNjPc4uxg5OSQETCR6dv1mg7DFJC7c Ww9mCwksY5RYco8Dpmb+33+MXYxcQPHpjBKtLxcxQzgrmCQef30K1sEmoCNx5FYzM4gtImAp 8WDrb7AiZoGfjBLrnpxlBUkIC3hLTHmwFMxmEVCVOLX9OQuIzSvgIXF8wW4miHUKEq3LDrGD 2JwCnhJLJjYAxTmAtnlIXOzhgWgVkPg2+RALSFhCQFZi0wGwVRICt9kk1uxexQIxRlLi4Iob LBMYhRcwMqxiFE0tSC4oTkrPNdQrTswtLs1L10vOz93ECAlCqR2MKxssDjEKcDAq8fAumnYp QIg1say4MvcQowQHs5II78JbFwOEeFMSK6tSi/Lji0pzUosPMfoAXTKRWUo0OR8YIXkl8YbG BsaGhpaGZqaWpgY4hJXEeZs9UgKEBNITS1KzU1MLUotgxjFxcEo1MIpvZA1j+eln9kPSy89W 89Dpqqr8vODlGoezlTKrzm3IrOtp+++UOz3uwqdMt4hJVxYcZ/jI+syrpnP3keaIVqnjvDfu q0g9EBOU39Cy4J3Raqer4YWzfh+1WpctUuw6+fTfC+b/ts0/p3HHc8dD965Z8RyqTziqGib6 +uyPnnf1EUfTi1lzCpRYijMSDbWYi4oTAazfOD5vAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+xoO77W5cCDH79U7W48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBmzbqxmKdjLXXF/3SfG BsZ7nF2MnBwSAiYS8//+Y4SwxSQu3FvP1sXIxSEkMJ1RovXlImYIZwWTxOOvT9lAqtgEdCSO 3GpmBrFFBCwlHmz9DVbELPCTUWLdk7OsIAlhAW+JKQ+WgtksAqoSp7Y/ZwGxeQU8JI4v2M0E sU5BonXZIXYQm1PAU2LJxAagOAfQNg+Jiz08Exh5FzAyrGIUTS1ILihOSs811CtOzC0uzUvX S87P3cQIDvJnUjsYVzZYHGIU4GBU4uFdNO1SgBBrYllxZe4hRgkOZiUR3oW3LgYI8aYkVlal FuXHF5XmpBYfYvQBOmois5Rocj4wAvNK4g2NTcyMLI3MjE3MjY1xCCuJ8zZ7pAQICaQnlqRm p6YWpBbBjGPi4JRqYFSeq1T77sD9+5LKc6cv2+W/qbtt34PAneskYlf/DuSy9lfbe1789rOD nBl8Qc+L9dbE7zZzKIrmOmGma79f93z6qcK/b6tuPsvgPTBx8bmFaQfK42489Q0ryVLva85Z cPH7Vb95LhOzt/hKCMQtCFM8lX54y4SGAz7HipPyKljSAlY9/tTNYaXEUpyRaKjFXFScCABd P8vsnwIAAA== X-CFilter-Loop: Reflected Cc: jy0.jeon@samsung.com, sw0312.kim@samsung.com, jaejoon.seo@samsung.com, kyungmin.park@samsung.com, jmock.shin@samsung.com, lsmin.lee@samsung.com, th908.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 From: Jinyoung Jeon This patch fixed unnormal interrupt at m2m operation sometimes. m2m operation called s/w reset during every frame. but m2m occured interrupt after s/w reset sometimes. so, we cleared dma operation and capture operation. Signed-off-by: Jinyoung Jeon Signed-off-by: Eunchul Kim --- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c index 67e1b88..c9eaa81 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c @@ -169,10 +169,23 @@ static void fimc_sw_reset(struct fimc_context *ctx) DRM_DEBUG_KMS("%s\n", __func__); + /* stop dma operation */ + cfg = fimc_read(EXYNOS_CISTATUS); + if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) { + cfg = fimc_read(EXYNOS_MSCTRL); + cfg &= ~EXYNOS_MSCTRL_ENVID; + fimc_write(cfg, EXYNOS_MSCTRL); + } + cfg = fimc_read(EXYNOS_CISRCFMT); cfg |= EXYNOS_CISRCFMT_ITU601_8BIT; fimc_write(cfg, EXYNOS_CISRCFMT); + /* disable image capture */ + cfg = fimc_read(EXYNOS_CIIMGCPT); + cfg &= ~(EXYNOS_CIIMGCPT_IMGCPTEN_SC | EXYNOS_CIIMGCPT_IMGCPTEN); + fimc_write(cfg, EXYNOS_CIIMGCPT); + /* s/w reset */ cfg = fimc_read(EXYNOS_CIGCTRL); cfg |= (EXYNOS_CIGCTRL_SWRST);