[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220411215849.297838-1-robdclark@gmail.com>
Date: Mon, 11 Apr 2022 14:58:29 -0700
From: Rob Clark <robdclark@...il.com>
To: dri-devel@...ts.freedesktop.org
Cc: linux-arm-msm@...r.kernel.org, freedreno@...ts.freedesktop.org,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Dmitry Osipenko <dmitry.osipenko@...labora.com>,
Rob Clark <robdclark@...omium.org>,
Abhinav Kumar <quic_abhinavk@...cinc.com>,
Akhil P Oommen <quic_akhilpo@...cinc.com>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Christian König <christian.koenig@....com>,
Dan Carpenter <dan.carpenter@...cle.com>,
Dmitry Osipenko <digetx@...il.com>,
Jonathan Marek <jonathan@...ek.ca>,
Jordan Crouse <jordan@...micpenguin.net>,
linux-kernel@...r.kernel.org (open list),
Viresh Kumar <viresh.kumar@...aro.org>,
Vladimir Lypak <vladimir.lypak@...il.com>,
Wang Qing <wangqing@...o.com>,
Yangtao Li <tiny.windzz@...il.com>
Subject: [PATCH v4 00/10] drm/msm: Userspace allocated GPU addresses
From: Rob Clark <robdclark@...omium.org>
The first six paches are various cleanups and simplifications. The
next two get rid of redundant vma lookups in the submit and retire
paths. Following that, fenced vma lets us indicate a fence value
following which the vma is no longer used, which is needed because
otherwise userspace could observe the signaled fence prior to
retire_submits() finishing. (With userspace allocated GPU addresses
userspace is tracking when a buffer is no longer used and it's vma can
be deleted.) And finally the last patch adds the new uabi for user-
space allocated iova.
v2: Fix inuse check in last patch, split GEM_WARN_ON() conversion to
separate patch, and nits
v3: Fix nested fb prepares in 06/10, return -EBUSY if trying to set
iova on buffer that already has one in 10/10
v4: Fix race condition in 09/10
Rob Clark (10):
drm/msm/gem: Move prototypes
drm/msm/gpu: Drop duplicate fence counter
drm/msm/gem: Convert some missed GEM_WARN_ON()s
drm/msm/gem: Split out inuse helper
drm/msm/gem: Drop PAGE_SHIFT for address space mm
drm/msm: Drop msm_gem_iova()
drm/msm/gem: Rework vma lookup and pin
drm/msm/gem: Split vma lookup and pin
drm/msm/gem: Add fenced vma unpin
drm/msm: Add a way for userspace to allocate GPU iova
drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +-
drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +-
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +-
drivers/gpu/drm/msm/adreno/adreno_gpu.c | 14 ++-
drivers/gpu/drm/msm/msm_drv.c | 21 ++++
drivers/gpu/drm/msm/msm_drv.h | 23 ----
drivers/gpu/drm/msm/msm_fb.c | 20 +++-
drivers/gpu/drm/msm/msm_fence.c | 6 +-
drivers/gpu/drm/msm/msm_fence.h | 3 +
drivers/gpu/drm/msm/msm_gem.c | 151 ++++++++++++++----------
drivers/gpu/drm/msm/msm_gem.h | 52 +++++++-
drivers/gpu/drm/msm/msm_gem_submit.c | 32 ++---
drivers/gpu/drm/msm/msm_gem_vma.c | 61 +++++++---
drivers/gpu/drm/msm/msm_gpu.c | 8 +-
drivers/gpu/drm/msm/msm_gpu.h | 2 +-
drivers/gpu/drm/msm/msm_ringbuffer.c | 13 +-
drivers/gpu/drm/msm/msm_ringbuffer.h | 1 -
include/uapi/drm/msm_drm.h | 3 +
18 files changed, 277 insertions(+), 139 deletions(-)
--
2.35.1
Powered by blists - more mailing lists