From patchwork Fri Dec 21 04:20:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eunchul Kim X-Patchwork-Id: 1902051 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 E5837DFAC4 for ; Fri, 21 Dec 2012 04:26:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E1297E677A for ; Thu, 20 Dec 2012 20:26:18 -0800 (PST) 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 CA95BE5FD3 for ; Thu, 20 Dec 2012 20:20:33 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFD006865DYVMK0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 21 Dec 2012 13:20:29 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.44]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D8.24.12699.D83E3D05; Fri, 21 Dec 2012 13:20:29 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-53-50d3e38d6947 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 68.24.12699.D83E3D05; Fri, 21 Dec 2012 13:20:29 +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 <0MFD009P95E1VT50@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 21 Dec 2012 13:20:29 +0900 (KST) From: Eunchul Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH v2 7/8] drm/exynos: fixed unnormal interrupt in m2m operation. Date: Fri, 21 Dec 2012 13:20:47 +0900 Message-id: <1356063648-12447-8-git-send-email-chulspro.kim@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1356063648-12447-1-git-send-email-chulspro.kim@samsung.com> References: <1356063648-12447-1-git-send-email-chulspro.kim@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsVy+t8zHd3ex5cDDGa+MrO48vU9mwOjx/3u 40wBjFFcNimpOZllqUX6dglcGeu2f2Qt2Mtdcff9dpYGxnucXYycHBICJhI7pnQyQdhiEhfu rWfrYuTiEBJYxigxcdILRpiij/vesoPYQgLTGSWenzKEsFcwSbScVQWx2QR0JI7camYGsUUE LCUebP3NDDKIWeAno8S6J2dZQRLCAn4Sd34tBLNZBFQlZr7cxAZi8wp4SLxbfokVYpmCROuy Q2DLOAU8JZq2fWGFWOYhcb7nNxtEr4DEt8mHWLoYOYDqZSU2HWCGaD3DJvH4pQaELSlxcMUN lgmMwgsYGVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525ihISg9A7GVQ0WhxgFOBiVeHgjLS4H CLEmlhVX5h5ilOBgVhLhfb4EKMSbklhZlVqUH19UmpNafIjRB+iQicxSosn5wPjIK4k3NDYw NjS0NDQztTQ1wCGsJM7b7JESICSQnliSmp2aWpBaBDOOiYNTqoGRdaVt7yIFe/0JP3/y3G2d HbnpleS/olqm8JDFjGdm/5f5UBv58PQR7x9f7xVpODrWPXgvfewsv7+2W8ADzuXW7R1/J2sU fnh8M/xmnvO8BZclX8QYX+DYfft7vLOQP++eKyxJwjtk1iatWeGdxpVcu2rnbuVsi8KVcyVn yV51zV1/w27XoXXXlFiKMxINtZiLihMB4DNeZm4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xoG7v48sBBt2nDC2ufH3P5sDocb/7 OFMAY1QDo01GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO 0FglhbLEnFKgUEBicbGSvh2mCaEhbroWMI0Rur4hQXA9RgZoIGEdY8a67R9ZC/ZyV9x9v52l gfEeZxcjJ4eEgInEx31v2SFsMYkL99azgdhCAtMZJZ6fMoSwVzBJtJxVBbHZBHQkjtxqZgax RQQsJR5s/Q1kc3EwC/xklFj35CwrSEJYwE/izq+FYDaLgKrEzJebwIbyCnhIvFt+iRVimYJE 67JDYIs5BTwlmrZ9YYVY5iFxvuc32wRG3gWMDKsYRVMLkguKk9JzjfSKE3OLS/PS9ZLzczcx gkP8mfQOxlUNFocYBTgYlXh4Iy0uBwixJpYVV+YeYpTgYFYS4X2+BCjEm5JYWZValB9fVJqT WnyI0QfoqonMUqLJ+cD4yyuJNzQ2MTOyNDIzNjE3NsYhrCTO2+yREiAkkJ5YkpqdmlqQWgQz jomDU6qB0cWZOzBbNFL+8KxlR91m/nLbyp1Xced3/KENMQ/cNVS/f/itN1l54vyf0+fc/ewq 3uhvXeraN3/35ysftbPWSM2vbF0t/mb/45sOt5ZftL7lODfksYGmrVhi4pZjerYyTLZHtaJi PGPaopIe9tvtvDP7jfMjvttP2poY8qvi8jZ92BX3amYctxJLcUaioRZzUXEiAJtHPqWeAgAA 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 a99ceef..9f52b7f 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);