From patchwork Fri Aug 2 17:29:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 11073997 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 A5CD513B1 for ; Fri, 2 Aug 2019 17:30:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98B1128720 for ; Fri, 2 Aug 2019 17:30:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C461287D2; Fri, 2 Aug 2019 17:30:04 +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 272DF28720 for ; Fri, 2 Aug 2019 17:30:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3043F6EF21; Fri, 2 Aug 2019 17:29:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8733B6EF19 for ; Fri, 2 Aug 2019 17:29:55 +0000 (UTC) Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1htbNJ-0005sQ-Rb; Fri, 02 Aug 2019 19:29:53 +0200 From: Lucas Stach To: etnaviv@lists.freedesktop.org Subject: [PATCH 0/3] etnaviv softpin support Date: Fri, 2 Aug 2019 19:29:50 +0200 Message-Id: <20190802172953.4586-1-l.stach@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org 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: patchwork-lst@pengutronix.de, kernel@pengutronix.de, dri-devel@lists.freedesktop.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, this implements the last missing bits for softpin aka putting userspace in charge of the GPU virtual address space. This builds on top of the per-process address space series. As this is quite a stack of patches now, I'm providing a git branch [1] with all the necessary patches. Please note that I have not yet worked in the feedback I got for the per-process address space patches. The corresponding userspace bits can be found at [2]. The Mesa changes always use softpin where possible and now finally allow GC7000 support to work with a non-horrible UAPI interface. Regards, Lucas [1] https://git.pengutronix.de/git/lst/linux etnaviv/experimental [2] https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1559 Lucas Stach (3): drm/etnaviv: skip command stream validation on PPAS capable GPUs drm/etnaviv: allow to request specific virtual address for gem mapping drm/etnaviv: implement softpin drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_drv.h | 2 ++ drivers/gpu/drm/etnaviv/etnaviv_gem.c | 4 +-- drivers/gpu/drm/etnaviv/etnaviv_gem.h | 3 ++- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 28 ++++++++++++++++++-- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 9 +++++++ drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 16 +++++++++-- drivers/gpu/drm/etnaviv/etnaviv_mmu.h | 2 +- include/uapi/drm/etnaviv_drm.h | 5 +++- 9 files changed, 61 insertions(+), 10 deletions(-)