From patchwork Fri Sep 14 04:29:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1455331 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 AD167DF280 for ; Fri, 14 Sep 2012 04:29:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75CFEA0F33 for ; Thu, 13 Sep 2012 21:29:47 -0700 (PDT) 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 16F519EAF4 for ; Thu, 13 Sep 2012 21:29:29 -0700 (PDT) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MAB009X0OGWAJG0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 14 Sep 2012 13:29:28 +0900 (KST) X-AuditID: cbfee61b-b7f826d000005fb5-8f-5052b2a8cec9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E1.68.24501.8A2B2505; Fri, 14 Sep 2012 13:29:28 +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 <0MAB0090GOH47J40@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 14 Sep 2012 13:29:28 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 1/4] drm/exynos: add pid to g2d_runqueue_node Date: Fri, 14 Sep 2012 13:29:27 +0900 Message-id: <1347596967-12477-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJJMWRmVeSWpSXmKPExsVy+t9jAd0Vm4ICDDomyFpc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujB2butgL+jkqFq6QbWB8w9bFyMkhIWAicWLJeShbTOLCvfVg tpDAIkaJzlNGXYxcQPZ6JonmmTvBEmwCqhITV9wHs0UETCU6Ji1lAbGZBQolFvY8BbOFBWwl vvx/yQhiswDVf/zQzQRi8wq4SJx4uxRqmYLEgntv2SYwci9gZFjFKJpakFxQnJSea6RXnJhb XJqXrpecn7uJEezBZ9I7GFc1WBxiFOBgVOLhjWANChBiTSwrrsw9xCjBwawkwmurDRTiTUms rEotyo8vKs1JLT7EKM3BoiTOK/wpMEBIID2xJDU7NbUgtQgmy8TBKdXAuNRIz8CQk+P0ZPfg rIq+ZTZRc2ZPe8axpitF8ORep+TX+xKTwibvn/zrSA5TzbKfvpkHlY89NvWUYvtyXeXbzq12 0a/Dz9w0TlT3LDlX9bSB+f+tC1pXpu+K+TBz2473zTJWvL9YDWYbr33usHNp1qrg8FJOgbKL /4tFYuoWsc/Y67qXw+OVohJLcUaioRZzUXEiADyQiJLcAQAA Cc: kyungmin.park@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 adds pid to g2d_runqueue_node as member to identify which process owns this node. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 1065e90..dcbc4cb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -122,6 +122,7 @@ struct g2d_runqueue_node { struct list_head list; struct list_head run_cmdlist; struct list_head event_list; + pid_t pid; struct completion complete; int async; }; @@ -679,6 +680,7 @@ int exynos_g2d_exec_ioctl(struct drm_device *drm_dev, void *data, } mutex_lock(&g2d->runqueue_mutex); + runqueue_node->pid = current->pid; list_add_tail(&runqueue_node->list, &g2d->runqueue); if (!g2d->runqueue_node) g2d_exec_runqueue(g2d);