From patchwork Thu Nov 21 10:38:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 11256077 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DF886C1 for ; Thu, 21 Nov 2019 10:38:16 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75AD02088F for ; Thu, 21 Nov 2019 10:38:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75AD02088F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EA8066ED74; Thu, 21 Nov 2019 10:38:15 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 456866ED74 for ; Thu, 21 Nov 2019 10:38:15 +0000 (UTC) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-v2KU_SL4M82QxEvfKpZ39A-1; Thu, 21 Nov 2019 05:38:12 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 53D8F5F9; Thu, 21 Nov 2019 10:38:11 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-67.ams2.redhat.com [10.36.116.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6ECD66CE6C; Thu, 21 Nov 2019 10:38:08 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7201C1747D; Thu, 21 Nov 2019 11:38:07 +0100 (CET) From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org Date: Thu, 21 Nov 2019 11:38:05 +0100 Message-Id: <20191121103807.18424-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: v2KU_SL4M82QxEvfKpZ39A-1 X-Mimecast-Spam-Score: 0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574332694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zey4EFc9y8GuASiUFG0DlVEVpg1oLNuBFXO0/QhaW4Q=; b=TfAXQGuKfYZEOGG8kArIolFBxFFmZbAYc2VQdyzh9tkb8bDWI7NqBKfoXJ2eAlW8xqGy9i Z179Na9abFdP8NMjvipHgny9sxqmMnnOlMT2bnzsnHT6RYLOUwTqSWPvkiJK1qYjlgHrg6 J/I1gCFGM+c9k8CyQM5a7jUcgOvABgE= Subject: [Intel-gfx] [PATCH 0/2] drm: mmap fixups X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, Gerd Hoffmann MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Tested on qemu, with bochs (vram helpers) and cirrus (shmem helpers). Cc'ing intel-gfx for CI coverage. Gerd Hoffmann (2): drm: call drm_gem_object_funcs.mmap with fake offset drm: share address space for dma bufs include/drm/drm_gem.h | 4 +--- drivers/gpu/drm/drm_gem.c | 3 --- drivers/gpu/drm/drm_gem_shmem_helper.c | 3 +++ drivers/gpu/drm/drm_prime.c | 7 ++++++- drivers/gpu/drm/ttm/ttm_bo_vm.c | 7 ------- 5 files changed, 10 insertions(+), 14 deletions(-)