From patchwork Tue Aug 13 19:38:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2843985 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5507A9F239 for ; Tue, 13 Aug 2013 19:55:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 524E0204D3 for ; Tue, 13 Aug 2013 19:55:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 48A94204D2 for ; Tue, 13 Aug 2013 19:55:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A1DCE66F3 for ; Tue, 13 Aug 2013 12:55:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id ACD51E7C68 for ; Tue, 13 Aug 2013 12:40:13 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d51so4340068eek.23 for ; Tue, 13 Aug 2013 12:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZAQjRfCb+FkxsUH3p0xkdzLzBjo8gL8h7Gkvse/zDbc=; b=pybFvyPu7pm2sy3nfbXMMO18J5f+GbmOXAbITBhfNllNeD3+QM/bXw+y2Z0c78LWjX jypUrZRkheYFCmPgRbEfViYeAoB7gjdxSXFI7lCLwLyqUR4Ysjo0mmCqqeMmHyKwQjQN GI33DMyK7I52VPRQTBv7Wl/hBbkzpaLVD6elsZ8B2yABubDcsIJMGU+nOKd5OGK6G8OR RDRPw2DOyaPwbcgdXxOR6Tk+Ap63OwV+El5XdMxvBWqcb/YN9VFNlhfDIIoPGBYwWHTt UCwZ1IDn4/wrRBY0Wbv+yQMHtnSlze82W9lLAHyVRUzjgqjXFbqHewiNFMOQPaySZI7V zKzw== X-Received: by 10.14.212.6 with SMTP id x6mr4739248eeo.67.1376422812886; Tue, 13 Aug 2013 12:40:12 -0700 (PDT) Received: from localhost.localdomain (stgt-5f71b8eb.pool.mediaWays.net. [95.113.184.235]) by mx.google.com with ESMTPSA id a1sm68812938eem.1.2013.08.13.12.40.11 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 12:40:11 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 12/16] drm/exynos: enable GEM mmap access management Date: Tue, 13 Aug 2013 21:38:33 +0200 Message-Id: <1376422717-12229-13-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1376422717-12229-1-git-send-email-dh.herrmann@gmail.com> References: <1376422717-12229-1-git-send-email-dh.herrmann@gmail.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 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set DRIVER_GEM_MMAP to make GEM core track buffer accesses via the DRM VMA Offset Manager. Cc: Inki Dae Signed-off-by: David Herrmann --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index df81d3c..1d7f7cf 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -256,7 +256,8 @@ static const struct file_operations exynos_drm_driver_fops = { static struct drm_driver exynos_drm_driver = { .driver_features = DRIVER_HAVE_IRQ | DRIVER_MODESET | - DRIVER_GEM | DRIVER_PRIME, + DRIVER_GEM | DRIVER_PRIME | + DRIVER_GEM_MMAP, .load = exynos_drm_load, .unload = exynos_drm_unload, .open = exynos_drm_open,