From patchwork Tue Aug 13 19:38:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2843989 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 DBEF59F239 for ; Tue, 13 Aug 2013 19:58:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD2DB20524 for ; Tue, 13 Aug 2013 19:58:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 71F2120520 for ; Tue, 13 Aug 2013 19:58:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B327E64A1 for ; Tue, 13 Aug 2013 12:58:06 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by gabe.freedesktop.org (Postfix) with ESMTP id C150EE7382 for ; Tue, 13 Aug 2013 12:40:18 -0700 (PDT) Received: by mail-ee0-f45.google.com with SMTP id c50so4436151eek.18 for ; Tue, 13 Aug 2013 12:40:17 -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=Jr308QyfxAgeZBVGqtjG9B4lFq3+uPty8TtgqS7B+v8=; b=AO+1bCfzzlOtTZ0KlXiobTHlwCY9dLSInrrrS8Y5EdDp607AmGHqdpoX0nOjytZMrO C+8pW4nL5IYMTBIUZt6yCDZZFWPDfUDg4RRPjT2QKDdS80Y9Y728rq3xdW5hUtPDgKe4 BdOFXuGMDvc8Vwzs2FlPK3xZT2/SMM2sywLmvgUs9aixa+wVB5KTgb3/XR2Vu7gToXh9 UsJoy0j/Y4nqmokYjOUihUUt0NRCQEAuQk5DSGcsf3JZDHDiL/AUVybh2jANj+N9wKGe 1ELAotcTqrak6BoDkhKc5Iv/Vmlr7dMzkb6P5oiWJMLgFRMLbPiRugsvX/Nypxdf0KXZ +0uw== X-Received: by 10.15.63.75 with SMTP id l51mr6007147eex.32.1376422817700; Tue, 13 Aug 2013 12:40:17 -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.16 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 12:40:16 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 15/16] drm/udl: enable GEM mmap access management Date: Tue, 13 Aug 2013 21:38:36 +0200 Message-Id: <1376422717-12229-16-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: David Airlie Signed-off-by: David Herrmann --- drivers/gpu/drm/udl/udl_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c index bb0af58..145a8e1 100644 --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c @@ -73,7 +73,8 @@ static const struct file_operations udl_driver_fops = { }; static struct drm_driver driver = { - .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME, + .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | + DRIVER_GEM_MMAP, .load = udl_driver_load, .unload = udl_driver_unload,