From patchwork Wed Jun 19 07:25:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Hellstr=C3=B6m_=28VMware=29?= X-Patchwork-Id: 11003633 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C38D76 for ; Wed, 19 Jun 2019 07:26:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EEFF28B4D for ; Wed, 19 Jun 2019 07:26:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 206FB28B53; Wed, 19 Jun 2019 07:26:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 81C2628B4D for ; Wed, 19 Jun 2019 07:26:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 405376E2C8; Wed, 19 Jun 2019 07:26:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from ste-pvt-msa1.bahnhof.se (ste-pvt-msa1.bahnhof.se [213.80.101.70]) by gabe.freedesktop.org (Postfix) with ESMTPS id 70A646E2C8 for ; Wed, 19 Jun 2019 07:26:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 520F240974; Wed, 19 Jun 2019 09:26:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H4ND-lMKx3Rj; Wed, 19 Jun 2019 09:26:40 +0200 (CEST) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 424F13F6D0; Wed, 19 Jun 2019 09:26:39 +0200 (CEST) Received: from localhost.localdomain.localdomain (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) by mail1.shipmail.org (Postfix) with ESMTPSA id 8218736017D; Wed, 19 Jun 2019 09:26:39 +0200 (CEST) From: =?utf-8?q?Thomas_Hellstr=C3=B6m_=28VMware=29?= To: airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [git pull] vmwgfx-next Date: Wed, 19 Jun 2019 09:25:31 +0200 Message-Id: <20190619072531.4026-1-thomas@shipmail.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1560929199; bh=7rHwlXkr2jwVnaah2RaN5a9P6hQ/QW8DI4kn5sGwU8w=; h=From:To:Cc:Subject:Date:From; b=ibfzESxqP7cM7bpF3BkDLDMONIR0dyWqe8TREx/NioqCmBI2NaO2irnPzoEO9hRGu 5lxU/10iDo8zUoj8+M4/+D3r8Lx5uBCxFsD/a5oDRmq8cfDkhz1hQ1uUjGxd/9NZ25 Jfv5JRrnATEMA6TwEbLZtDX+270iPBxm3KHAXAT0= X-Mailman-Original-Authentication-Results: ste-pvt-msa1.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b=ibfzESxq; dkim-atps=neutral X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pv-drivers@vmware.com, =?utf-8?q?Thomas_Hellstr=C3=B6m?= , linux-graphics-maintainer@vmware.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Dave, Daniel - The coherent memory changes including mm changes. - Some vmwgfx debug fixes. - Removal of vmwgfx legacy security checks. The following changes since commit 561564bea3248293398dc32ec36da40fb71faed0: Merge tag 'omapdrm-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next (2019-06-11 13:29:33 +0200) are available in the Git repository at: git://people.freedesktop.org/~thomash/linux/ vmwgfx-next for you to fetch changes up to 9bbfda544ed79e8e9abde27bfe2c85428d582e7b: drm/vmwgfx: Kill unneeded legacy security features (2019-06-18 15:22:48 +0200) ---------------------------------------------------------------- Deepak Rawat (2): drm/vmwgfx: Add debug message for layout change ioctl drm/vmwgfx: Use VMW_DEBUG_KMS for vmwgfx mode-setting user errors Thomas Hellstrom (11): drm/vmwgfx: Assign eviction priorities to resources mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem mm: Add an apply_to_pfn_range interface mm: Add write-protect and clean utilities for address space ranges drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct drm/ttm: TTM fault handler helpers drm/vmwgfx: Implement an infrastructure for write-coherent resources drm/vmwgfx: Use an RBtree instead of linked list for MOB resources drm/vmwgfx: Implement an infrastructure for read-coherent resources drm/vmwgfx: Add surface dirty-tracking callbacks drm/vmwgfx: Kill unneeded legacy security features MAINTAINERS | 1 + drivers/gpu/drm/ttm/ttm_bo.c | 1 + drivers/gpu/drm/ttm/ttm_bo_vm.c | 169 +++++--- drivers/gpu/drm/vmwgfx/Kconfig | 1 + drivers/gpu/drm/vmwgfx/Makefile | 2 +- .../drm/vmwgfx/device_include/svga3d_surfacedefs.h | 233 +++++++++- drivers/gpu/drm/vmwgfx/ttm_lock.c | 100 ----- drivers/gpu/drm/vmwgfx/ttm_lock.h | 30 -- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 12 +- drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 4 + drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c | 13 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 167 +------- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 139 ++++-- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 1 - drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 23 +- drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c | 472 +++++++++++++++++++++ drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 245 +++++++++-- drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h | 15 + drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 405 +++++++++++++++++- drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | 74 +++- drivers/gpu/drm/vmwgfx/vmwgfx_validation.h | 16 +- include/drm/ttm/ttm_bo_api.h | 10 + include/drm/ttm/ttm_bo_driver.h | 6 + include/linux/mm.h | 19 +- include/uapi/drm/vmwgfx_drm.h | 4 +- mm/Kconfig | 3 + mm/Makefile | 1 + mm/as_dirty_helpers.c | 300 +++++++++++++ mm/memory.c | 145 +++++-- 30 files changed, 2136 insertions(+), 483 deletions(-) create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c create mode 100644 mm/as_dirty_helpers.c