From patchwork Wed Mar 13 09:03:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 2262421 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 9ED53DF215 for ; Wed, 13 Mar 2013 09:06:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 60062E681B for ; Wed, 13 Mar 2013 02:06:44 -0700 (PDT) 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 DFBB2E6805 for ; Wed, 13 Mar 2013 02:03:56 -0700 (PDT) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJL00KBTD4KCCX0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 13 Mar 2013 18:03:56 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.45]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id DF.7D.12250.CF040415; Wed, 13 Mar 2013 18:03:56 +0900 (KST) X-AuditID: cbfee691-b7f5f6d000002fda-dc-514040fca66e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D0.74.17838.CF040415; Wed, 13 Mar 2013 18:03:56 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.8.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 <0MJL00ESHD6J2J30@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 13 Mar 2013 18:03:56 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 2/7] drm/exynos: clear node object type at gem unmap Date: Wed, 13 Mar 2013 18:03:55 +0900 Message-id: <1363165435-7414-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsVy+t8zXd0/Dg6BBrNvi1hc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujF+/DQtmsVe8OZXcwNjM1sXIySEhYCLx/EI/lC0mceHeeiCb i0NIYBmjxIEzc1lginY+ec4MkVjEKNG3bSo7hLOOSWJZ039WkCo2AVWJiSvug40SETCV6Ji0 lAWkiFmgm1Hi+YO/YEXCAi4SB0/cYgSxWYAaft96yAxi8wo4S1zdtpsZYp2CxIJ7b8HukBDY wibx4tlPNogGAYlvkw8BTeUASshKbDoAVS8pcXDFDZYJjIILGBlWMYqmFiQXFCelF5nqFSfm Fpfmpesl5+duYoQE1cQdjPcPWB9iTAYaN5FZSjQ5HxiUeSXxhsZmRhamJqbGRuaWZqQJK4nz qrdYBwoJpCeWpGanphakFsUXleakFh9iZOLglGpgrGA8w+Y9oWTB7k6j3VNXnc+tUr769m3+ va6N8bIuIjPt5soYNRQ5PmTRvOcmu3Ga9nbRtc6vv955GF/9YplLIMtGjwual5+aZnyt37S0 5Ib1e11N34sLWhjkY1i+3X7m8GDvrPmu6edqnA771fn9MWdJKeCprl2tYH9PzTWslvNXfriq Ku8aJZbijERDLeai4kQAhb7GGkACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xgO4fB4dAg3XLBCyufH3P5sDocb/7 OFMAY1QDo01GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO 0FglhbLEnFKgUEBicbGSvh2mCaEhbroWMI0Rur4hQXA9RgZoIGEdY8av34YFs9gr3pxKbmBs Zuti5OSQEDCR2PnkOTOELSZx4d56oDgXh5DAIkaJvm1T2SGcdUwSy5r+s4JUsQmoSkxccR+s W0TAVKJj0lIWkCJmgW5GiecP/oIVCQu4SBw8cYsRxGYBavh96yHYCl4BZ4mr23ZDrVOQWHDv LdsERu4FjAyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MYJD9pnUDsaVDRaHGAU4GJV4eAW+ 2gcKsSaWFVfmHmKU4GBWEuH9ZuMQKMSbklhZlVqUH19UmpNafIgxGWj7RGYp0eR8YDzllcQb GpuYGVkamRmbmBsbkyasJM57oNU6UEggPbEkNTs1tSC1CGYLEwenVAPjufnh1rOeTJifIaf0 57uH7SrzqHsbjzn1Caj1ivPaT+7XZlx/JkuAY8/2gry/jNwab1NP/+1452GbWftHYn+bwP2+ zcwuu/ZLrHnktGeS86Sfnn2J6ryxb+6vvMAz1/I//7YLJacO1jyMz3TVYtB6eDvm+2aXhwY3 Ziy5qXn281Q1wfQZ+s73lViKMxINtZiLihMBpICYmp0CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS 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 From: YoungJun Cho This patch clears node object type in G2D unmap cmdlist. The obj_type of cmdlist node has to be cleared in g2d_unmap_cmdlist_gem() so that the node can be reused in g2d_map_cmdlist_gem(). Signed-off-by: YoungJun Cho Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 28b7112..095520f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -576,6 +576,7 @@ static void g2d_unmap_cmdlist_gem(struct g2d_data *g2d, false); node->handles[i] = 0; + node->obj_type[i] = 0; } node->map_nr = 0;