From patchwork Tue Aug 13 19:38:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2843990 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47D08BF546 for ; Tue, 13 Aug 2013 19:58:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52C5920529 for ; Tue, 13 Aug 2013 19:58:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9673E2052C for ; Tue, 13 Aug 2013 19:58:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 91792E76BD for ; Tue, 13 Aug 2013 12:58:53 -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 EA996E7C59 for ; Tue, 13 Aug 2013 12:40:15 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d51so4362699eek.37 for ; Tue, 13 Aug 2013 12:40:14 -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=qDSqiiJk8Ng7YpeSCUNN8d0kb6DuZ+LCbuxv43nMhAU=; b=T8s24cRtAcQR+OsEzZvlijYdQMeFL1+Z+A2hmsjrWEyVPggzAe70FmxllSNwGAaMUk 4FBaEJT4fanxhwGG1qPVEBHihH7nmbOnfhquyH9i2WMX6vhiekh5VVnoAxtpVrEgcKpi Z/n25A4I7xXao+Xagxmo2yOuqKHmfht2yhRJ3feQHu3c6ID9uz3DZcUaDLuZ/rLzA1E+ cJq79dZ++MUa8CAw1JdamLqUU4ndpbxbiBEp3ahfcDkkhOLRZTcYEVEb7BGrI10CwiOh BacoFwbWf6jYEsURMUwddEB8y8XYKug4/EurAmJRv5S0tyPDh+IABi02ifRuFZdNJYFU 0cog== X-Received: by 10.14.9.129 with SMTP id 1mr5434152eet.59.1376422814606; Tue, 13 Aug 2013 12:40:14 -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.12 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 12:40:13 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 13/16] drm/gma500: enable GEM mmap access management Date: Tue, 13 Aug 2013 21:38:34 +0200 Message-Id: <1376422717-12229-14-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: Patrik Jakobsson Signed-off-by: David Herrmann --- drivers/gpu/drm/gma500/psb_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index d13c2fc..58790f4 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -628,7 +628,8 @@ static const struct file_operations psb_gem_fops = { static struct drm_driver driver = { .driver_features = DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | \ - DRIVER_IRQ_VBL | DRIVER_MODESET | DRIVER_GEM , + DRIVER_IRQ_VBL | DRIVER_MODESET | DRIVER_GEM | + DRIVER_GEM_MMAP, .load = psb_driver_load, .unload = psb_driver_unload,