From patchwork Tue Aug 13 19:38:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2843991 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 9EA76BF546 for ; Tue, 13 Aug 2013 19:59:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D900D20529 for ; Tue, 13 Aug 2013 19:59:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0D67A20524 for ; Tue, 13 Aug 2013 19:59:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0547DE6A49 for ; Tue, 13 Aug 2013 12:59:47 -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 42F8FE7C01 for ; Tue, 13 Aug 2013 12:40:20 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d51so4340119eek.23 for ; Tue, 13 Aug 2013 12:40:20 -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 :mime-version:content-type:content-transfer-encoding; bh=EQEcFXSRjXI0CJCeIztbveRB080hADgPL96+tF+TyGM=; b=YuLs9DrxvXCWbAgcRbYkLQN2YBVxBLiC2k2lQ+lq7f2RLsEwWs/lz8SqPkMFRRgKp0 5fOwAx9etDTKxaxLThOQNyDb2xxzA11GtIYh/eRzHi3VDNQDy1Wpt5ihUiF/hMqy6auL KmPDT0Iure+N7wYsa1Hr1MngAJMJnTCXlb6pPWZ7Oqd2pxap/rnbp1F1SvFyDAzaOmZY fnqdDsn/q9Zipxw/BYh1eZMUuN8Q8oy8uzlhTWA5lFRpf3MvSy+sF6YImqEuw7bdAV3J ZnzdySBjwI8CdEYVsanRcNtrXwalWcMnrYpvyIDnLmyhfHZvjfwU+Grem5QU7jIRqCbH 5pxA== X-Received: by 10.15.33.132 with SMTP id c4mr8701765eev.2.1376422820032; Tue, 13 Aug 2013 12:40:20 -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.17 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 12:40:19 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 16/16] drm/host1x: enable GEM mmap access management Date: Tue, 13 Aug 2013 21:38:37 +0200 Message-Id: <1376422717-12229-17-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> MIME-Version: 1.0 Cc: =?UTF-8?q?Terje=20Bergstr=C3=B6m?= , Arto Merilainen 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: , 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: Thierry Reding Cc: "Terje Bergström" Cc: Arto Merilainen Signed-off-by: David Herrmann --- drivers/gpu/host1x/drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c index b128b90..1371a2b 100644 --- a/drivers/gpu/host1x/drm/drm.c +++ b/drivers/gpu/host1x/drm/drm.c @@ -613,7 +613,7 @@ static void tegra_debugfs_cleanup(struct drm_minor *minor) #endif struct drm_driver tegra_drm_driver = { - .driver_features = DRIVER_MODESET | DRIVER_GEM, + .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_GEM_MMAP, .load = tegra_drm_load, .unload = tegra_drm_unload, .open = tegra_drm_open,